PHP Class RedBeanPHP\Adapter\DBAdapter

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

Méthodes publiques

Méthode 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 méthode

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 méthode

public close ( )

commit() public méthode

See also: Adapter::commit
public commit ( )

exec() public méthode

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

get() public méthode

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

getAffectedRows() public méthode

See also: Adapter::getAffectedRows
public getAffectedRows ( )

getAssoc() public méthode

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

getAssocRow() public méthode

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

getCell() public méthode

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

getCol() public méthode

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

getCursor() public méthode

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

getDatabase() public méthode

See also: Adapter::getDatabase
public getDatabase ( )

getInsertID() public méthode

See also: Adapter::getInsertID
public getInsertID ( )

getRow() public méthode

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

getSQL() public méthode

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
Résultat string

rollback() public méthode

See also: Adapter::rollback
public rollback ( )

startTransaction() public méthode

See also: Adapter::startTransaction
public startTransaction ( )