Class ToolBox
ToolBox.
The toolbox is an integral part of RedBeanPHP providing the basic architectural building blocks to manager objects, helpers and additional tools like plugins. A toolbox contains the three core components of RedBeanPHP: the adapter, the query writer and the core functionality of RedBeanPHP in OODB.
Copyright:
copyright (c) 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/ToolBox.php
Located at ToolBox.php
public
|
#
__construct(
Constructor. The toolbox is an integral part of RedBeanPHP providing the basic architectural building blocks to manager objects, helpers and additional tools like plugins. A toolbox contains the three core components of RedBeanPHP: the adapter, the query writer and the core functionality of RedBeanPHP in OODB. |
public
|
|
public
|
#
getRedBean( )
Returns the OODB instance in this toolbox. OODB is responsible for creating, storing, retrieving and deleting single beans. Other components rely on OODB for their basic functionality. |
public
|
#
getDatabaseAdapter( )
Returns the database adapter in this toolbox. The adapter is responsible for executing the query and binding the values. The adapter also takes care of transaction handling. |
protected
|
$oodb
|
|
protected
|
$writer
|
|
protected
|
$adapter
|