PHP Интерфейс RedBeanPHP\BeanHelper

Interface for Bean Helper. A little bolt that glues the whole machinery together.
Автор: Gabor de Mooij and the RedBeanPHP Community
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

getExtractedToolbox() публичный Метод

This method returns a list with all toolbox items in Toolbox Constructor order: OODB, adapter, writer and finally the toolbox itself!.
public getExtractedToolbox ( ) : array
Результат array

getModelForBean() публичный Метод

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
Результат redbeanphp\SimpleModel | CustomModel | null

getToolbox() публичный Метод

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
Результат ToolBox