PHP Interface RedBeanPHP\BeanHelper

Interface for Bean Helper. A little bolt that glues the whole machinery together.
Author: Gabor de Mooij and the RedBeanPHP Community
Show file Open project: gabordemooij/redbean Interface Usage Examples

Public Methods

Method Description
getExtractedToolbox ( ) : array Does approximately the same as getToolbox but also extracts the toolbox for you.
getModelForBean ( RedBeanPHP\OODBBean $bean ) : redbeanphp\SimpleModel | CustomModel | null Given a certain bean this method will return the corresponding model.
getToolbox ( ) : ToolBox Returns a toolbox to empower the bean.

Method Details

getExtractedToolbox() public method

This method returns a list with all toolbox items in Toolbox Constructor order: OODB, adapter, writer and finally the toolbox itself!.
public getExtractedToolbox ( ) : array
return array

getModelForBean() public method

If no model is returned (NULL), RedBeanPHP might ask again.
public getModelForBean ( RedBeanPHP\OODBBean $bean ) : redbeanphp\SimpleModel | CustomModel | null
$bean RedBeanPHP\OODBBean bean to obtain the corresponding model of
return redbeanphp\SimpleModel | CustomModel | null

getToolbox() public method

This allows beans to perform OODB operations by themselves, as such the bean is a proxy for OODB. This allows beans to implement their magic getters and setters and return lists.
public getToolbox ( ) : ToolBox
return ToolBox