MIOLO20
|
Membros públicos | |
__construct ($sql, Connection $conn) | |
bindValue ($name, $value, $type=null) | |
bindParam ($name, &$var, $type=PDO::PARAM_STR) | |
execute ($params=null) | |
closeCursor () | |
columnCount () | |
errorCode () | |
errorInfo () | |
fetch ($fetchStyle=PDO::FETCH_BOTH) | |
fetchAll ($fetchStyle=PDO::FETCH_BOTH, $columnIndex=0) | |
fetchColumn ($columnIndex=0) | |
rowCount () | |
getWrappedStatement () | |
![]() | |
fetchAll ($fetchStyle=PDO::FETCH_BOTH) | |
A thin wrapper around a Doctrine\DBAL\Driver\Statement that adds support for logging, DBAL mapping types, etc.
Definido na linha 35 do ficheiro Statement.php.
__construct | ( | $sql, | |
Connection | $conn ) |
Creates a new Statement
for the given SQL and Connection
.
string | $sql | The SQL of the statement. |
Doctrine |
DBAL\Connection The connection on which the statement should be executed.
Definido na linha 64 do ficheiro Statement.php.
bindParam | ( | $name, | |
& | $var, | ||
$type = PDO::PARAM_STR ) |
Binds a parameter to a value by reference.
Binding a parameter by reference does not support DBAL mapping types.
string | $name | The name or position of the parameter. |
mixed | $value | The reference to the variable to bind |
integer | $type | The PDO binding type. |
Implementa Statement.
Definido na linha 114 do ficheiro Statement.php.
bindValue | ( | $name, | |
$value, | |||
$type = null ) |
Binds a parameter value to the statement.
The value can optionally be bound with a PDO binding type or a DBAL mapping type. If bound with a DBAL mapping type, the binding type is derived from the mapping type and the value undergoes the conversion routines of the mapping type before being bound.
$name | The name or position of the parameter. | |
$value | The value of the parameter. | |
mixed | $type | Either a PDO binding type or a DBAL mapping type name or instance. |
Implementa Statement.
Definido na linha 85 do ficheiro Statement.php.
closeCursor | ( | ) |
Closes the cursor, freeing the database resources used by this statement.
Implementa Statement.
Definido na linha 145 do ficheiro Statement.php.
columnCount | ( | ) |
Returns the number of columns in the result set.
Implementa Statement.
Definido na linha 155 do ficheiro Statement.php.
errorCode | ( | ) |
Fetches the SQLSTATE associated with the last operation on the statement.
Implementa Statement.
Definido na linha 165 do ficheiro Statement.php.
errorInfo | ( | ) |
Fetches extended error information associated with the last operation on the statement.
Implementa Statement.
Definido na linha 175 do ficheiro Statement.php.
execute | ( | $params = null | ) |
Executes the statement with the currently bound parameters.
Implementa Statement.
Definido na linha 124 do ficheiro Statement.php.
fetch | ( | $fetchStyle = PDO::FETCH_BOTH | ) |
Fetches the next row from a result set.
integer | $fetchStyle |
Implementa Statement.
Definido na linha 187 do ficheiro Statement.php.
fetchAll | ( | $fetchStyle = PDO::FETCH_BOTH, | |
$columnIndex = 0 ) |
Returns an array containing all of the result set rows.
integer | $fetchStyle | |
integer | $columnIndex |
Definido na linha 199 do ficheiro Statement.php.
fetchColumn | ( | $columnIndex = 0 | ) |
Returns a single column from the next row of a result set.
integer | $columnIndex |
Implementa Statement.
Definido na linha 213 do ficheiro Statement.php.
getWrappedStatement | ( | ) |
Gets the wrapped driver statement.
Definido na linha 233 do ficheiro Statement.php.
rowCount | ( | ) |
Returns the number of rows affected by the last execution of this statement.
Implementa Statement.
Definido na linha 223 do ficheiro Statement.php.