Definition at line 25 of file DatabaseConnection.php.
Public Member Functions | |
| autoCommit ($mode) | |
| query ($sql, $params=array()) | |
| begin () | |
| commit () | |
| rollback () | |
| getOne ($sql, $params=array()) | |
| getRow ($sql, $params=array()) | |
| getAll ($sql, $params=array()) | |
| Auth_OpenID_DatabaseConnection.autoCommit | ( | $ | mode | ) |
Sets auto-commit mode on this database connection.
| bool | $mode True if auto-commit is to be used; false if not. |
Definition at line 32 of file DatabaseConnection.php.
| Auth_OpenID_DatabaseConnection.query | ( | $ | sql, | |
| $ | params = array() | |||
| ) |
Run an SQL query with the specified parameters, if any.
| string | $sql An SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection. | |
| array | $params An array of parameters to insert into the SQL string using this connection's escaping mechanism. |
Definition at line 51 of file DatabaseConnection.php.
| Auth_OpenID_DatabaseConnection.begin | ( | ) |
Starts a transaction on this connection, if supported.
Definition at line 58 of file DatabaseConnection.php.
| Auth_OpenID_DatabaseConnection.commit | ( | ) |
Commits a transaction on this connection, if supported.
Definition at line 65 of file DatabaseConnection.php.
| Auth_OpenID_DatabaseConnection.rollback | ( | ) |
Performs a rollback on this connection, if supported.
Definition at line 72 of file DatabaseConnection.php.
| Auth_OpenID_DatabaseConnection.getOne | ( | $ | sql, | |
| $ | params = array() | |||
| ) |
Run an SQL query and return the first column of the first row of the result set, if any.
| string | $sql An SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection. | |
| array | $params An array of parameters to insert into the SQL string using this connection's escaping mechanism. |
Definition at line 91 of file DatabaseConnection.php.
| Auth_OpenID_DatabaseConnection.getRow | ( | $ | sql, | |
| $ | params = array() | |||
| ) |
Run an SQL query and return the first row of the result set, if any.
| string | $sql An SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection. | |
| array | $params An array of parameters to insert into the SQL string using this connection's escaping mechanism. |
Definition at line 109 of file DatabaseConnection.php.
| Auth_OpenID_DatabaseConnection.getAll | ( | $ | sql, | |
| $ | params = array() | |||
| ) |
Run an SQL query with the specified parameters, if any.
| string | $sql An SQL string with placeholders. The placeholders are assumed to be specific to the database engine for this connection. | |
| array | $params An array of parameters to insert into the SQL string using this connection's escaping mechanism. |
Definition at line 126 of file DatabaseConnection.php.
1.5.5