Overview

Namespaces

  • None
  • RedBeanPHP
    • Adapter
    • BeanHelper
    • Cursor
    • Driver
    • Logger
      • RDefault
    • QueryWriter
    • RedException
    • Repository
    • Util

Classes

  • SimpleFacadeBeanHelper
  • Overview
  • Namespace
  • Class

Class SimpleFacadeBeanHelper

Bean Helper.

The Bean helper helps beans to access access the toolbox and FUSE models. This Bean Helper makes use of the facade to obtain a reference to the toolbox.

RedBeanPHP\BeanHelper\SimpleFacadeBeanHelper implements RedBeanPHP\BeanHelper
Namespace: RedBeanPHP\BeanHelper
Copyright:

(c) copyright G.J.G.T. (Gabor) de Mooij and the RedBeanPHP Community This source file is subject to the BSD/GPLv2 License that is bundled with this source code in the file license.txt.


License: BSD/GPLv2
Author: Gabor de Mooij and the RedBeanPHP Community
File: RedBeanPHP/BeanHelperFacade.php
Located at BeanHelper/SimpleFacadeBeanHelper.php
Methods summary
public static SimpleModel
# factory( string $modelClassName )

Factory method using a customizable factory function to create the instance of the Simple Model.

Factory method using a customizable factory function to create the instance of the Simple Model.

Parameters

$modelClassName
name of the class

Returns

SimpleModel
public static
# setFactoryFunction( Closure $factory )

Sets the factory function to create the model when using FUSE to connect a bean to a model.

Sets the factory function to create the model when using FUSE to connect a bean to a model.

Parameters

$factory
factory function
public ToolBox
# getToolbox( )

Returns

ToolBox

See

BeanHelper::getToolbox

Implementation of

RedBeanPHP\BeanHelper::getToolbox()
public SimpleModel|CustomModel|null
# getModelForBean( RedBeanPHP\OODBBean $bean )

Parameters

$bean
bean to obtain the corresponding model of

Returns

SimpleModel|CustomModel|null

See

BeanHelper::getModelForBean

Implementation of

RedBeanPHP\BeanHelper::getModelForBean()
public array
# getExtractedToolbox( )

Returns

array

See

BeanHelper::getExtractedToolbox

Implementation of

RedBeanPHP\BeanHelper::getExtractedToolbox()
API documentation generated by ApiGen