|
Stud.IP
2.4 Revision 48548
|


Public Member Functions | |
| quote ($value, $type=NULL) | |
| exec ($statement) | |
| query ($statement, $mode=NULL, $arg1=NULL, $arg2=NULL) | |
| prepare ($statement, $driver_options=array()) | |
| prepareStatement ($statement, $driver_options=array()) | |
Data Fields | |
| const | PARAM_ARRAY = 100 |
| const | PARAM_COLUMN = 101 |
Protected Member Functions | |
| verify ($statement) | |
Static Protected Member Functions | |
| static | replaceStrings ($statement) |
This is a special variant of the standard PDO class that does not allow multiple statement execution.
| exec | ( | $statement | ) |
Executes an SQL statement and returns the number of affected rows.
| string | SQL statement |
Reimplemented in StudipDebugPDO.

| prepare | ( | $statement, | |
$driver_options = array() |
|||
| ) |
Prepares a statement for execution and returns a statement object.
| string | SQL statement |
Reimplemented in StudipDebugPDO.


| prepareStatement | ( | $statement, | |
$driver_options = array() |
|||
| ) |
This method is intended only for use by the StudipPDOStatement class.
| string | SQL statement |

| query | ( | $statement, | |
$mode = NULL, |
|||
$arg1 = NULL, |
|||
$arg2 = NULL |
|||
| ) |
Executes an SQL statement, returning a result set as a statement object.
| string | SQL statement |
| int | fetch mode (optional) |
| mixed | fetch mode parameter (see PDOStatement::setFetchMode) |
| mixed | fetch mode parameter (see PDOStatement::setFetchMode) |
Reimplemented in StudipDebugPDO.

| quote | ( | $value, | |
$type = NULL |
|||
| ) |
Quotes the given value in a form appropriate for the type. If no explicit type is given, the value's PHP type is used.
| string | PHP value to quote |
| int | parameter type (e.g. PDO::PARAM_STR) |
|
staticprotected |
Replaces all string literals in the statement with placeholders.
| string | SQL statement |
|
protected |
Verifies that the given SQL query only contains a single statement.
| string | SQL statement to check |
| PDOException | when the query contains multiple statements |

| const PARAM_ARRAY = 100 |
| const PARAM_COLUMN = 101 |