PHP Class RedBeanPHP\Adapter\DBAdapter

Author: Gabor de Mooij and the RedBeanPHP Community.
Inheritance: extends RedBeanPHP\Observable, implements RedBeanPHP\Adapter
Mostrar archivo Open project: gabordemooij/redbean Class Usage Examples

Public Methods

Method Description
__construct ( RedBeanPHP\Driver $database ) Constructor.
close ( )
commit ( )
exec ( $sql, $bindings = [], $noevent = FALSE )
get ( $sql, $bindings = [] )
getAffectedRows ( )
getAssoc ( $sql, $bindings = [] )
getAssocRow ( $sql, $bindings = [] )
getCell ( $sql, $bindings = [], $noSignal = NULL )
getCol ( $sql, $bindings = [] )
getCursor ( $sql, $bindings = [] )
getDatabase ( )
getInsertID ( )
getRow ( $sql, $bindings = [] )
getSQL ( ) : string Returns a string containing the most recent SQL query processed by the database adapter, thus conforming to the interface:
rollback ( )
startTransaction ( )

Method Details

__construct() public method

Creates an instance of the RedBean Adapter Class. This class provides an interface for RedBean to work with ADO compatible DB instances.
public __construct ( RedBeanPHP\Driver $database )
$database RedBeanPHP\Driver ADO Compatible DB Instance

close() public method

public close ( )

commit() public method

See also: Adapter::commit
public commit ( )

exec() public method

See also: Adapter::exec
public exec ( $sql, $bindings = [], $noevent = FALSE )

get() public method

See also: Adapter::get
public get ( $sql, $bindings = [] )

getAffectedRows() public method

See also: Adapter::getAffectedRows
public getAffectedRows ( )

getAssoc() public method

See also: Adapter::getAssoc
public getAssoc ( $sql, $bindings = [] )

getAssocRow() public method

See also: Adapter::getAssocRow
public getAssocRow ( $sql, $bindings = [] )

getCell() public method

See also: Adapter::getCell
public getCell ( $sql, $bindings = [], $noSignal = NULL )

getCol() public method

See also: Adapter::getCol
public getCol ( $sql, $bindings = [] )

getCursor() public method

See also: Adapter::getCursor
public getCursor ( $sql, $bindings = [] )

getDatabase() public method

See also: Adapter::getDatabase
public getDatabase ( )

getInsertID() public method

See also: Adapter::getInsertID
public getInsertID ( )

getRow() public method

See also: Adapter::getRow
public getRow ( $sql, $bindings = [] )

getSQL() public method

Returns a string containing the most recent SQL query processed by the database adapter, thus conforming to the interface:
See also: Adapter::getSQL Methods like get(), getRow() and exec() cause this SQL cache to get filled. If no SQL query has been processed yet this function will return an empty string.
public getSQL ( ) : string
return string

rollback() public method

See also: Adapter::rollback
public rollback ( )

startTransaction() public method

See also: Adapter::startTransaction
public startTransaction ( )