PHP Class Ouzo\Db\StatementExecutor

Afficher le fichier Open project: letsdrink/ouzo Class Usage Examples

Méthodes publiques

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

Méthode Description
__construct ( $dbHandle, $sql, $boundValues, $pdoExecutor )
_execute ( $afterCallback )

Method Details

_createPdoStatement() public méthode

public _createPdoStatement ( )

_internalExecute() public méthode

public _internalExecute ( $afterCallback )

execute() public méthode

Returns number of affected rows
public execute ( )

executeAndFetch() public méthode

public executeAndFetch ( $function, $fetchStyle )

fetch() public méthode

public fetch ( $fetchMode = PDO::FETCH_ASSOC )

fetchAll() public méthode

public fetchAll ( $fetchMode = PDO::FETCH_ASSOC )

fetchIterator() public méthode

public fetchIterator ( )

prepare() public static méthode

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