Function Index
initializes cache creates a connection to the database initializes errorType, errorNum and ErrorMsg DataAccessMysql class constructor DataAccessMysql class constructor DataResultMysql constructor DataResultMysql constructor closes database connection and unsets DataAccess object 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 returns current row from dataset (overrides Iterator:: current()) resets cursor to beginning of dataset resets cursor to beginning of dataset disconnect from the database disconnect database connection disconnect database connection displays exception information displays exception information 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 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. 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 runs database select query and returns DataResult object repositions cursor to beginning of dataset and resets row number (overrides Iterator::rewind()) 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 |