|
Stud.IP
2.4 Revision 48548
|


Public Member Functions | |
| __construct ($db, $query, $options) | |
| setStatement (PDOStatement $statement) | |
| bindColumn ($column, &$param) | |
| bindParam ($parameter, &$variable, $data_type=PDO::PARAM_STR) | |
| bindValue ($parameter, $value, $data_type=PDO::PARAM_STR) | |
| __call ($name, array $arguments) | |
| getIterator () | |
| execute ($input_parameters=NULL) | |
| fetchGrouped ($fetch_style=PDO::FETCH_ASSOC, $fetch_argument=0) | |
Protected Member Functions | |
| replaceParam ($matches) | |
Protected Attributes | |
| $db | |
| $query | |
| $options | |
| $columns | |
| $params | |
| $count | |
| $stmt | |
This is a "fake" PDOStatement implementation that behaves mostly like a real statement object, but has some additional features:
| __construct | ( | $db, | |
| $query, | |||
| $options | |||
| ) |
Initializes a new StudipPDOStatement instance.
| __call | ( | $name, | |
| array | $arguments | ||
| ) |
Forwards all unknown methods to the actual statement object.
| bindColumn | ( | $column, | |
| & | $param | ||
| ) |
Arranges to have a particular variable bound to a given column in the result-set from a query. Each call to fetch() or fetchAll() will update all the variables that are bound to columns.
| bindParam | ( | $parameter, | |
| & | $variable, | ||
$data_type = PDO::PARAM_STR |
|||
| ) |
Binds a PHP variable to a corresponding named or question mark place- holder in the SQL statement that was used to prepare the statement. Unlike bindValue(), the variable is bound as a reference and will only be evaluated at the time that execute() is called.
| bindValue | ( | $parameter, | |
| $value, | |||
$data_type = PDO::PARAM_STR |
|||
| ) |
Binds a value to a corresponding named or question mark placeholder in the SQL statement that was used to prepare the statement.

| execute | ( | $input_parameters = NULL | ) |
Executes the prepared statement and returns a PDOStatement object.
Reimplemented in StudipDebugPDOStatement.

| fetchGrouped | ( | $fetch_style = PDO::FETCH_ASSOC, |
|
$fetch_argument = 0 |
|||
| ) |
Returns the result set rows as a grouped associative array. The first field of each row is used as the array's keys.
| int | $fetch_style | Either PDO::FETCH_ASSOC or PDO::FETCH_COLUMN |
| mixed | $fetch_argument | Unused for FETCH_ASSOC, field index to fetch for FETCH_COLUMN |
| getIterator | ( | ) |
Forwards all Iterator methods to the actual statement object.
|
protected |
Replaces a placeholder with the corresponding parameter value. Throws an exception if there is no corresponding value.
| setStatement | ( | PDOStatement | $statement | ) |
Injects a PDOStatement
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |