PHP Class Ouzo\Db\StatementExecutor

Exibir arquivo Open project: letsdrink/ouzo Class Usage Examples

Public Methods

Method Description
_createPdoStatement ( )
_internalExecute ( $afterCallback )
execute ( ) Returns number of affected rows
executeAndFetch ( $function, $fetchStyle )
fetch ( $fetchMode = PDO::FETCH_ASSOC )
fetchAll ( $fetchMode = PDO::FETCH_ASSOC )
fetchIterator ( )
prepare ( $dbHandle, $sql, $boundValues, $options )

Private Methods

Method Description
__construct ( $dbHandle, $sql, $boundValues, $pdoExecutor )
_execute ( $afterCallback )

Method Details

_createPdoStatement() public method

public _createPdoStatement ( )

_internalExecute() public method

public _internalExecute ( $afterCallback )

execute() public method

Returns number of affected rows
public execute ( )

executeAndFetch() public method

public executeAndFetch ( $function, $fetchStyle )

fetch() public method

public fetch ( $fetchMode = PDO::FETCH_ASSOC )

fetchAll() public method

public fetchAll ( $fetchMode = PDO::FETCH_ASSOC )

fetchIterator() public method

public fetchIterator ( )

prepare() public static method

public static prepare ( $dbHandle, $sql, $boundValues, $options )