Index
initializes cache creates a connection to the database initializes errorType, errorNum and ErrorMsg DataAccessMysql class constructor DataAccessMysql class constructor DataResultMysql constructor DataResultMysql constructor ArrayObject which holds the DataAccess objects closes database connection and unsets DataAccess object database connection resource database connection resource create a connect to the database given a hostname, username, password and database name makes a connection to the database and selects the database if the connection cannot be made or the database cannot be selected, throws DAOExcpetion given a hostname, username, password and database name makes a connection to the database and selects the database if the connection cannot be made or the database cannot be selected, throws DAOExcpetion singleton which is used to manage DataAccess objects connection factory handles the creation of database connections and manages them via a connection cache singleton general purpose exception class used by connection factory class returns current row from dataset (overrides Iterator:: current()) ArrayObject holding the current row data DataAccess object general purpose data access object meant to handle all communcations with the database through DataAccess and DataResult objects general purpose exception class used by daophp5 classes interface which all DataAccess class should implement general purpose error class used by daophp5 classes DataAccessMysql handles connecting to and querying database using php mysql_* functions DataAccessMysqli handles connecting to and querying database using php mysqli_* functions abstract class representing the result object returned from the DataAccess object DataResultMysql handles retrieving row data from the mysql database DataResultMysql handles retrieving row data from the mysql database resets cursor to beginning of dataset resets cursor to beginning of dataset database name database name disconnect from the database disconnect database connection disconnect database connection displays exception information displays exception information DataAccessError DataAccessError error message error number error type escape value used in query string escape a value before using it in a query string escape a value before using it in a query string holds the format of the result set, NUM, ASSOC or BOTH @access private @var int row format return type holds the format of the result set, NUM, ASSOC or BOTH @access private @var int row format return type returns the number of rows affected by an insert, update or delete query returns the number of rows affected by an insert, update or delete query creates/overwrites a DataAccess entry in the cache retrieves error message string retrieves error number retrieves error message string retrieves error message gets the result array format gets the result array format creates and returns instance of ConnectionCache if instance does not exist, otherwise returns instance if instance already exists
returns number of fields in result set returns number of fields in result set returns number of rows in result set returns number of rows from resulting from select query returns number of rows from resulting from select query returns an ArrayObject containing row data or false if no (more) rows returns a row of data from the mysql database result resource. returns a row of data from the mysql database result resource. ConnectionCache instance verifies if an entry is valid based on its key returns current row number (overrides Iterator::key()) creates an instance of the connection cache and returns either an existing DataAccess object or creates and returns a new DataAccess object if it cannot create a new DataAccess object, throws a ConnFactoryException retrieves next row from dataset, places it into currentRow and increments row number (overrides Iterator:: next()) send query to the database given an SQL string, queries the database and returns the result or throws DAOException given an SQL string, queries the database and returns the result or throws DAOException removes an entry from the cache DataResult runs database select query and returns DataResult object repositions cursor to beginning of dataset and resets row number (overrides Iterator::rewind()) current row number creates/overwrites a DataAccess entry in the cache sets the format of the result array to either 0-indexed (default), associative (with column names) or both sets the format of the result array to either 0-indexed (default), associative (with column names) or both runs database insert/update/dete/ query and returns DataResult object |