PHP Class Facile\DoctrineMySQLComeBack\Doctrine\DBAL\Statement

Inheritance: implements IteratorAggregate, implements Doctrine\DBAL\Driver\Statement
Show file Open project: facile-it/doctrine-mysql-come-back

Protected Properties

Property Type Description
$conn Connection
$sql string
$stmt Doctrine\DBAL\Statement

Public Methods

Method Description
__construct ( $sql, Connection $conn )
bindParam ( string $name, mixed &$var, integer $type = PDO::PARAM_STR, integer | null $length = null ) : boolean
bindValue ( string $name, mixed $value, mixed $type = null ) : boolean
closeCursor ( ) : boolean
columnCount ( ) : integer
errorCode ( ) : integer
errorInfo ( ) : array
execute ( array | null $params = null ) : boolean
fetch ( integer | null $fetchMode = null ) : mixed
fetchAll ( integer | null $fetchMode = null, integer $fetchArgument ) : mixed
fetchColumn ( integer $columnIndex ) : mixed
getIterator ( ) : Traversable
getWrappedStatement ( ) : Statement
rowCount ( ) : integer
setFetchMode ( integer $fetchMode, mixed $arg2 = null, mixed $arg3 = null ) : boolean

Private Methods

Method Description
createStatement ( ) Create Statement.

Method Details

__construct() public method

public __construct ( $sql, Connection $conn )
$sql
$conn Connection

bindParam() public method

public bindParam ( string $name, mixed &$var, integer $type = PDO::PARAM_STR, integer | null $length = null ) : boolean
$name string
$var mixed
$type integer
$length integer | null
return boolean

bindValue() public method

public bindValue ( string $name, mixed $value, mixed $type = null ) : boolean
$name string
$value mixed
$type mixed
return boolean

closeCursor() public method

public closeCursor ( ) : boolean
return boolean

columnCount() public method

public columnCount ( ) : integer
return integer

errorCode() public method

public errorCode ( ) : integer
return integer

errorInfo() public method

public errorInfo ( ) : array
return array

execute() public method

public execute ( array | null $params = null ) : boolean
$params array | null
return boolean

fetch() public method

public fetch ( integer | null $fetchMode = null ) : mixed
$fetchMode integer | null
return mixed

fetchAll() public method

public fetchAll ( integer | null $fetchMode = null, integer $fetchArgument ) : mixed
$fetchMode integer | null
$fetchArgument integer
return mixed

fetchColumn() public method

public fetchColumn ( integer $columnIndex ) : mixed
$columnIndex integer
return mixed

getIterator() public method

public getIterator ( ) : Traversable
return Traversable

getWrappedStatement() public method

public getWrappedStatement ( ) : Statement
return Doctrine\DBAL\Statement

rowCount() public method

public rowCount ( ) : integer
return integer

setFetchMode() public method

public setFetchMode ( integer $fetchMode, mixed $arg2 = null, mixed $arg3 = null ) : boolean
$fetchMode integer
$arg2 mixed
$arg3 mixed
return boolean

Property Details

$conn protected property

protected Connection,Facile\DoctrineMySQLComeBack\Doctrine\DBAL $conn
return Connection

$sql protected property

protected string $sql
return string

$stmt protected property

protected Statement,Doctrine\DBAL $stmt
return Doctrine\DBAL\Statement