\RedBeanPHPBeanHelper

Bean Helper Interface.

Interface for Bean Helper. A little bolt that glues the whole machinery together. The Bean Helper is passed to the OODB RedBeanPHP Object to facilitate the creation of beans and providing them with a toolbox. The Helper also facilitates the FUSE feature, determining how beans relate to their models. By overriding the getModelForBean method you can tune the FUSEing to fit your business application needs.

Summary

Methods
Constants
getToolbox()
getExtractedToolbox()
getModelForBean()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getToolbox()

getToolbox() : \RedBeanPHP\ToolBox

Returns a toolbox to empower the bean.

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.

Returns

\RedBeanPHP\ToolBox

getExtractedToolbox()

getExtractedToolbox() : array

Does approximately the same as getToolbox but also extracts the toolbox for you.

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

Returns

array

getModelForBean()

getModelForBean(\RedBeanPHP\OODBBean  $bean) : \RedBeanPHP\SimpleModel|\RedBeanPHP\CustomModel|NULL

Given a certain bean this method will return the corresponding model.

Parameters

\RedBeanPHP\OODBBean $bean

bean to obtain the corresponding model of

Returns

\RedBeanPHP\SimpleModel|\RedBeanPHP\CustomModel|NULL