Public Member Functions | |
| connect () | |
| selectDatabase ($database) | |
| exec ($sql) | |
| query ($sql) | |
| pager ($sql) | |
| affectedRows () | |
| insertId () | |
| escape ($str) | |
| quote ($str) | |
Database_Connection generic interface
Definition at line 49 of file database.lib.php.
| affectedRows | ( | ) |
Returns the number of rows affected by the last query
| Database_Connection_Exception |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
| connect | ( | ) |
Connect to the database
| Database_Connection_Exception |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
| escape | ( | $ | str | ) |
Escape dangerous characters in the given string
| string | $str |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
| exec | ( | $ | sql | ) |
Execute a query and returns the number of affected rows
| Database_Connection_Exception |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
| insertId | ( | ) |
Get the ID generated from the previous INSERT operation
| Database_Connection_Exception |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
| pager | ( | $ | sql | ) |
Get a pager for the query
| Database_Connection_Exception |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
| query | ( | $ | sql | ) |
Execute a query and returns the result set
| Database_Connection_Exception |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
| quote | ( | $ | str | ) |
Escape dangerous characters and enquote the given string
| string | $str |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
| selectDatabase | ( | $ | database | ) |
Select a database
| string | $database database name |
| Database_Connection_Exception | on failure |
Implemented in Mysql_Database_Connection, and Claroline_Database_Connection.
1.6.3