PDO Abstraction Layer
Parent class for any of our database classes that use PDO.
Located in /classes/Database/PDO/Common.php (line 23)
Object | --Database_Common | --Database_PDO_Common
Class | Description |
---|---|
Database_PDO_MySQL | MySQL Database Abstraction Layer |
Database_PDO_SQLite | SQLite Database Abstraction Layer |
Database_PDO_PostgreSQL | PostgreSQL Database Abstraction Layer |
PDO Attributes
DSN format
Inherited from Database_Common
Database_Common::$connection
Database_Common::$database
Database_Common::$driver
Database_Common::$hostname
Database_Common::$password
Database_Common::$port
Database_Common::$results
Database_Common::$socket
Database_Common::$username
Inherited from Object
Object::$config
Object::$instances
Constructor
Closes database connection
Sets the connection to null regardless of state.
Executes an SQL Statement
Executes a standard or prepared query based on passed parameters. All queries are logged to a file as well as timed and logged in the execution time is over 1 second.
Fetch a single row from the database
Fetches all rows as an array
Fetch a single column from the database
This method assumes you want the first column in your select. If you need 2 or more columns you should simply use fetch().
Opens database connection
Establishes a connection to the database based on the set configuration options.
Inherited From Database_Common
Database_Common::__construct()
Database_Common::close()
Database_Common::open()
Database_Common::setDatabase()
Database_Common::setHostname()
Database_Common::setPassword()
Database_Common::setPort()
Database_Common::setSocket()
Database_Common::setUsername()
Inherited From Object
Object::__construct()
Object::getInstance()
Object::__destruct()
Documentation generated on Sun, 17 Oct 2010 23:17:22 -0400 by phpDocumentor 1.4.3