QueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_DriverSQLite\Query\Driver\SQLiteSQLite specific classExtends PDO to simplify cross-database issues$statementReference to the last executed sql query\Query\Driver\PDOStatement__construct\Query\Driver\SQLite::__construct()Open SQLite Databasestringstringstringarray$dsnstring$userNULLstring$passNULLstring$driver_optionsarray()arraytruncate\Query\Driver\SQLite::truncate()Empty a tablestring$tablestringget_tables\Query\Driver\SQLite::get_tables()List tables for the current databasemixedget_system_tables\Query\Driver\SQLite::get_system_tables()List system tables for the current databasestring[]insert_batch\Query\Driver\SQLite::insert_batch()Create sql for batch insertstringarraystring$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_SQLSQLite_SQL\Query\Driver\SQLite_SQLSQLite Specific SQLexplain\Query\Driver\SQLite_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\Query\Driver\SQLite_SQL::random()Random ordering keywordstringdb_list\Query\Driver\SQLite_SQL::db_list()Returns sql to list other databasesNULLtable_list\Query\Driver\SQLite_SQL::table_list()Returns sql to list tablesstringsystem_table_list\Query\Driver\SQLite_SQL::system_table_list()Overridden in SQLite classstringview_list\Query\Driver\SQLite_SQL::view_list()Returns sql to list viewsstringtrigger_list\Query\Driver\SQLite_SQL::trigger_list()Returns sql to list triggersNULLfunction_list\Query\Driver\SQLite_SQL::function_list()Return sql to list functionsNULLprocedure_list\Query\Driver\SQLite_SQL::procedure_list()Return sql to list stored proceduresNULLsequence_list\Query\Driver\SQLite_SQL::sequence_list()Return sql to list sequencesNULLtype_list\Query\Driver\SQLite_SQL::type_list()SQL to show list of field typesstring[]column_list\Query\Driver\SQLite_SQL::column_list()SQL to show infromation about columns in a tablestringstring$tablestringfk_list\Query\Driver\SQLite_SQL::fk_list()Get the list of foreign keys for the current
tablestring$tableindex_list\Query\Driver\SQLite_SQL::index_list()Get the list of indexes for the current tablestringarray$tablestringQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_UtilSQLite_Util\Query\Driver\SQLite_UtilSQLite-specific backup, import and creation methodsbackup_data\Query\Driver\SQLite_Util::backup_data()Create an SQL backup file for the current database's dataarraystring$excludedarray()arraybackup_structure\Query\Driver\SQLite_Util::backup_structure()Create an SQL backup file for the current database's structurestringqueryquoteQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_SQLFirebird_SQL\Query\Driver\Firebird_SQLFirebird Specific SQLlimit\Query\Driver\Firebird_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\Query\Driver\Firebird_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\Query\Driver\Firebird_SQL::random()Random ordering keywordstringdb_list\Query\Driver\Firebird_SQL::db_list()Returns sql to list other databasesNULLtable_list\Query\Driver\Firebird_SQL::table_list()Returns sql to list tablesstringsystem_table_list\Query\Driver\Firebird_SQL::system_table_list()Returns sql to list system tablesstringview_list\Query\Driver\Firebird_SQL::view_list()Returns sql to list viewsstringtrigger_list\Query\Driver\Firebird_SQL::trigger_list()Returns sql to list triggersstringfunction_list\Query\Driver\Firebird_SQL::function_list()Return sql to list functionsstringprocedure_list\Query\Driver\Firebird_SQL::procedure_list()Return sql to list stored proceduresstringsequence_list\Query\Driver\Firebird_SQL::sequence_list()Return sql to list sequencesstringcolumn_list\Query\Driver\Firebird_SQL::column_list()Return sql to list columns of the specified tablestringstring$tablestringtype_list\Query\Driver\Firebird_SQL::type_list()SQL to show list of field typesstringfk_list\Query\Driver\Firebird_SQL::fk_list()Get the list of foreign keys for the current
tablestring$tableindex_list\Query\Driver\Firebird_SQL::index_list()Get the list of indexes for the current tablestringarray$tablestringQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_UtilFirebird_Util\Query\Driver\Firebird_UtilFirebird-specific backup, import and creation methodscreate_table\Query\Driver\Firebird_Util::create_table()Convienience public function to generate sql for creating a db tablestringarrayarraystring$namestring$fieldsarray$constraintsarray()arraydelete_table\Query\Driver\Firebird_Util::delete_table()Drop the selected tablestringstring$namestringbackup_structure\Query\Driver\Firebird_Util::backup_structure()Create an SQL backup file for the current database's structurestringstringstringbackup_data\Query\Driver\Firebird_Util::backup_data()Create an SQL backup file for the current database's dataarrayboolstring$excludearray()array$system_tablesFALSEboolget_system_tablesget_tablesqueryget_serviceQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_DriverFirebird\Query\Driver\FirebirdFirebird Database classPDO-firebird isn't stable, so this is a wrapper of the fbird_ public functions.$statementNULLReference to the last query executedobject$statement_linkNULLReference to the resource returned by
the last query executedresource$transNULLReference to the current transactionresource$connNULLReference to the connection resourceresource$serviceNULLReference to the service resourceresource__construct\Query\Driver\Firebird::__construct()Open the link to the databasestringstringstringarray$dbpathstring$user'SYSDBA'string$pass'masterkey'string$optionsarray()array__destruct\Query\Driver\Firebird::__destruct()Cleanup some loose endsget_service\Query\Driver\Firebird::get_service()Return service handleresourcetruncate\Query\Driver\Firebird::truncate()Empty a database tablestring$tablestringexec\Query\Driver\Firebird::exec()Execute an sql statement and return number of affected rowsstringint$sqlstringgetAttribute\Query\Driver\Firebird::getAttribute()Implement for compatibility with PDOintmixed$attributeintinTransaction\Query\Driver\Firebird::inTransaction()Return whether the current statement is in a transactionboollastInsertId\Query\Driver\Firebird::lastInsertId()Returns the last value of the specified generatorstringmixed$nameNULLstringquery\Query\Driver\Firebird::query()Wrapper public function to better match PDOstring\Query\Driver\Firebird_Result\Query\Driver\PDOException$sql''stringprepare\Query\Driver\Firebird::prepare()Emulate PDO preparestringarray\Query\Driver\Firebird_Result\Query\Driver\PDOException$querystring$optionsarray()arraybeginTransaction\Query\Driver\Firebird::beginTransaction()Start a database transactionbooleannullcommit\Query\Driver\Firebird::commit()Commit a database transactionboolrollBack\Query\Driver\Firebird::rollBack()Rollback a transactionboolsetAttribute\Query\Driver\Firebird::setAttribute()Set a connection attributeintmixedbool$attributeint$valuemixedprepare_execute\Query\Driver\Firebird::prepare_execute()Prepare and execute a querystringarray\Query\Driver\Firebird_Result$sqlstring$argsarrayquote\Query\Driver\Firebird::quote()Method to emulate PDO->quotestringintstring$strstring$param_type\PDO::PARAM_STRinterrorInfo\Query\Driver\Firebird::errorInfo()Method to emulate PDO->errorInfo / PDOStatement->errorInfoarrayerrorCode\Query\Driver\Firebird::errorCode()Method to emulate PDO->errorCodearrayprepare_query\Query\Driver\Firebird::prepare_query()Bind a prepared query with arguments for executingstringarrayNULL$sqlstring$paramsarrayinsert_batch\Query\Driver\Firebird::insert_batch()Create sql for batch insertstringarrayarray$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction Layer\PDOStatementFirebird_Result\Query\Driver\Firebird_ResultFirebird result class to emulate PDOStatement Class - only implements
data-fetching methods$statementReference to fbird resourceresource$rowCurrent row in result arrayint$resultarray()Data pulled from querymixed$dbReference to the db drive to de-duplicate error functions\Query\Driver\Firebird__construct\Query\Driver\Firebird_Result::__construct()Create the object by passing the resource for
the queryresource\Query\Driver\[\Query\Driver\Firebird]$linkresource$dbNULL\Query\Driver\[\Query\Driver\Firebird]bindColumn\Query\Driver\Firebird_Result::bindColumn()Invalidate method for data consistencymixedmixedintmixedarrayNULL$columnmixed$parammixed$typeNULLint$maxlenNULLmixed$driverdataNULLarraybindParam\Query\Driver\Firebird_Result::bindParam()Invalidate method for data consistencymixedmixedintmixedarrayNULL$parametermixed$variablemixed$data_typeNULLint$maxlenNULLmixed$driverdataNULLarraybindValue\Query\Driver\Firebird_Result::bindValue()Invalidate method for data consistencymixedmixedintNULL$parametermixed$variablemixed$data_typeNULLintexecute\Query\Driver\Firebird_Result::execute()Run a prepared statement queryarray\Query\Driver\Firebird_Result$argsNULLarrayfetch\Query\Driver\Firebird_Result::fetch()Emulate PDO fetch public functionintmixedmixedmixed$fetch_style\PDO::FETCH_ASSOCint$cursor_orientation\PDO::FETCH_ORI_NEXTmixed$cursor_offsetNULLmixedfetchAll\Query\Driver\Firebird_Result::fetchAll()Emulate PDO fetchAll public functionintmixedmixedmixed$fetch_style\PDO::FETCH_ASSOCint$statementNULLmixed$ctor_argsNULLmixedfetchColumn\Query\Driver\Firebird_Result::fetchColumn()Emulate PDOStatement::fetchColumnintmixed$column_num0intfetchObject\Query\Driver\Firebird_Result::fetchObject()Emulate PDOStatement::fetchObject, but only for the default usestringarray\Query\Driver\stdClass$class_name'stdClass'string$ctor_argsarray()arrayrowCount\Query\Driver\Firebird_Result::rowCount()Return the number of rows affected by the previous queryinterrorCode\Query\Driver\Firebird_Result::errorCode()Method to emulate PDOStatement->errorCodestringerrorInfo\Query\Driver\Firebird_Result::errorInfo()Method to emulate PDO->errorInfo / PDOStatement->errorInfoarrayQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_DriverPgSQL\Query\Driver\PgSQLPostgreSQL specifc classExtends PDO to simplify cross-database issues__construct\Query\Driver\PgSQL::__construct()Connect to a PosgreSQL databasestringstringstringarray$dsnstring$usernamenullstring$passwordnullstring$optionsarray()arraytruncate\Query\Driver\PgSQL::truncate()Empty a tablestring$tablestringget_schemas\Query\Driver\PgSQL::get_schemas()Get a list of schemas for the current connectionarrayQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_UtilPgSQL_Util\Query\Driver\PgSQL_UtilPosgres-specific backup, import and creation methodsbackup_structure\Query\Driver\PgSQL_Util::backup_structure()Create an SQL backup file for the current database's structurestringbackup_data\Query\Driver\PgSQL_Util::backup_data()Create an SQL backup file for the current database's dataarraystring$excludearray()arrayqueryget_tablesImplement Backup functionQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_SQLPgSQL_SQL\Query\Driver\PgSQL_SQLPostgreSQL specifc SQLexplain\Query\Driver\PgSQL_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\Query\Driver\PgSQL_SQL::random()Random ordering keywordstringdb_list\Query\Driver\PgSQL_SQL::db_list()Returns sql to list other databasesstringtable_list\Query\Driver\PgSQL_SQL::table_list()Returns sql to list tablesstringsystem_table_list\Query\Driver\PgSQL_SQL::system_table_list()Returns sql to list system tablesstringview_list\Query\Driver\PgSQL_SQL::view_list()Returns sql to list viewsstringtrigger_list\Query\Driver\PgSQL_SQL::trigger_list()Returns sql to list triggersstringfunction_list\Query\Driver\PgSQL_SQL::function_list()Return sql to list functionsNULLprocedure_list\Query\Driver\PgSQL_SQL::procedure_list()Return sql to list stored proceduresstringsequence_list\Query\Driver\PgSQL_SQL::sequence_list()Return sql to list sequencesstringcolumn_list\Query\Driver\PgSQL_SQL::column_list()Return sql to list columns of the specified tablestringstring$tablestringtype_list\Query\Driver\PgSQL_SQL::type_list()SQL to show list of field typesstringfk_list\Query\Driver\PgSQL_SQL::fk_list()Get the list of foreign keys for the current
tablestring$tableindex_list\Query\Driver\PgSQL_SQL::index_list()Get the list of indexes for the current tablestringarray$tablestringQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_SQLMySQL_SQL\Query\Driver\MySQL_SQLMySQL specifc SQLlimit\Query\Driver\MySQL_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\Query\Driver\MySQL_SQL::explain()Get the query plan for the sql querystringstring$sqlstringrandom\Query\Driver\MySQL_SQL::random()Random ordering keywordstringdb_list\Query\Driver\MySQL_SQL::db_list()Returns sql to list other databasesstringtable_list\Query\Driver\MySQL_SQL::table_list()Returns sql to list tablesstringstring$database''stringsystem_table_list\Query\Driver\MySQL_SQL::system_table_list()Overridden in MySQL classstringview_list\Query\Driver\MySQL_SQL::view_list()Returns sql to list viewsstringtrigger_list\Query\Driver\MySQL_SQL::trigger_list()Returns sql to list triggersstringfunction_list\Query\Driver\MySQL_SQL::function_list()Return sql to list functionsstringprocedure_list\Query\Driver\MySQL_SQL::procedure_list()Return sql to list stored proceduresstringsequence_list\Query\Driver\MySQL_SQL::sequence_list()Return sql to list sequencesNULLtype_list\Query\Driver\MySQL_SQL::type_list()SQL to show list of field typesstringcolumn_list\Query\Driver\MySQL_SQL::column_list()SQL to show infromation about columns in a tablestringstring$tablestringfk_list\Query\Driver\MySQL_SQL::fk_list()Get the list of foreign keys for the current
tablestring$tableindex_list\Query\Driver\MySQL_SQL::index_list()Get the list of indexes for the current tablestringarray$tablestringQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_UtilMySQL_Util\Query\Driver\MySQL_UtilMySQL-specific backup, import and creation methodsbackup_structure\Query\Driver\MySQL_Util::backup_structure()Create an SQL backup file for the current database's structurestringbackup_data\Query\Driver\MySQL_Util::backup_data()Create an SQL backup file for the current database's dataarraystring$excludearray()arrayget_dbsdriver_queryget_system_tablesget_tablesqueryquoteQueryFree Query Builder / Database Abstraction Layer\Query\Driver\Abstract_DriverMySQL\Query\Driver\MySQLMySQL specific classExtends PDO to simplify cross-database issues$escape_char'`'Set the backtick as the MySQL escape characterstring__construct\Query\Driver\MySQL::__construct()Connect to MySQL Databasestringstringstringarray$dsnstring$usernamenullstring$passwordnullstring$optionsarray()arraytruncate\Query\Driver\MySQL::truncate()Empty a tablestring$tablestringQueryFree Query Builder / Database Abstraction LayerQuery_Parser\Query\Query_ParserUtility Class to parse sql clauses for properly escaping identifiers$dbDB Driver\Query\Driver\Driver_Interface$match_patternsarray('function' => '([a-zA-Z0-9_]+\((.*?)\))', 'identifier' => '([a-zA-Z0-9_-]+\.?)+', 'operator' => '=|AND|&&?|~|\|\|?|\^|/|>=?|<=?|-|%|OR|\+|NOT|\!=?|<>|XOR')Regex patterns for various syntax componentsarray$matchesarray('functions' => array(), 'identifiers' => array(), 'operators' => array(), 'combined' => array())Regex matchesarray__construct\Query\Query_Parser::__construct()Constructor/entry point into parser\Query\Query_Builder$db\Query\Query_Builderparse_join\Query\Query_Parser::parse_join()Public parser method for seting the parse stringstring$sqlstringcompile_join\Query\Query_Parser::compile_join()Compiles a join condition after parsingstringstring$conditionstringfilter_array\Query\Query_Parser::filter_array()Returns a more useful match arrayarrayarray$arrayarrayQueryFree Query Builder / Database Abstraction LayerAbstract_Table\Query\Table\Abstract_TableBase class for table builder component classes`$valid_optionsValid options for the current classarray__toString\Query\Table\Abstract_Table::__toString()String representation of the column/indexset_options\Query\Table\Abstract_Table::set_options()Set options for the current columnarray$optionsarray__get\Query\Table\Abstract_Table::__get()Gettersmixedmixed$namemixed__set\Query\Table\Abstract_Table::__set()Settersmixedmixed\Query\Table_Column$namemixed$valmixedQueryFree Query Builder / Database Abstraction Layer\Query\Driver\SQL_InterfaceAbstract_SQL\Query\Driver\Abstract_SQLparent for database manipulation subclasseslimit\Query\Driver\Abstract_SQL::limit()Limit clausestringintintstring$sqlstring$limitint$offsetFALSEintQueryFree Query Builder / Database Abstraction Layer\PDO\Query\Driver\Driver_InterfaceAbstract_Driver\Query\Driver\Abstract_DriverBase Database classExtends PDO to simplify cross-database issues$statementReference to the last executed query\Query\Driver\PDOStatement$escape_char'"'Character to escape indentifiersstring$sqlReference to sql class\Query\Driver\SQL_Interface$utilReference to util class\Query\Driver\DB_Util$tableReference to table_builder class\Query\Table\Table_Builder$last_queryLast query executedstring$table_prefix''Prefix to apply to table namesstring__construct\Query\Driver\Abstract_Driver::__construct()PDO constructor wrapperstringstringstringarray$dsnstring$usernameNULLstring$passwordNULLstring$driver_optionsarray()arrayprepare_query\Query\Driver\Abstract_Driver::prepare_query()Simplifies prepared statements for database queriesstringarray\PDOStatement\InvalidArgumentException$sqlstring$dataarrayprepare_execute\Query\Driver\Abstract_Driver::prepare_execute()Create and execute a prepared statement with the provided parametersstringarray\PDOStatement$sqlstring$paramsarrayaffected_rows\Query\Driver\Abstract_Driver::affected_rows()Returns number of rows affected by an INSERT, UPDATE, DELETE type queryintprefix_table\Query\Driver\Abstract_Driver::prefix_table()Prefixes a table if it is not already prefixedstringstring$tablestringquote_table\Query\Driver\Abstract_Driver::quote_table()Quote database table name, and set prefixstringstring$tablestring_prefix\Query\Driver\Abstract_Driver::_prefix()Sets the table prefix on the passed stringstringstring$strstringquote_ident\Query\Driver\Abstract_Driver::quote_ident()Surrounds the string with the databases identifier escape charactersmixedstring$identmixed_quote\Query\Driver\Abstract_Driver::_quote()Helper method for quote_identmixedmixed$strmixedget_schemas\Query\Driver\Abstract_Driver::get_schemas()Return schemas for databases that list themarrayget_tables\Query\Driver\Abstract_Driver::get_tables()Return list of tables for the current databasearrayget_dbs\Query\Driver\Abstract_Driver::get_dbs()Return list of dbs for the current connection, if possiblearrayget_views\Query\Driver\Abstract_Driver::get_views()Return list of views for the current databasearrayget_sequences\Query\Driver\Abstract_Driver::get_sequences()Return list of sequences for the current database, if they existarrayget_functions\Query\Driver\Abstract_Driver::get_functions()Return list of function for the current databasearrayget_procedures\Query\Driver\Abstract_Driver::get_procedures()Return list of stored procedures for the current databasearrayget_triggers\Query\Driver\Abstract_Driver::get_triggers()Return list of triggers for the current databasearrayget_system_tables\Query\Driver\Abstract_Driver::get_system_tables()Retreives an array of non-user-created tables for
the connection/databasearrayget_columns\Query\Driver\Abstract_Driver::get_columns()Retrieve column information for the current database tablestringarray$tablestringget_fks\Query\Driver\Abstract_Driver::get_fks()Retrieve foreign keys for the tablestringarray$tablestringget_indexes\Query\Driver\Abstract_Driver::get_indexes()Retrieve indexes for the tablestringarray$tablestringget_types\Query\Driver\Abstract_Driver::get_types()Retrieve list of data types for the databasearraydriver_query\Query\Driver\Abstract_Driver::driver_query()Method to simplify retreiving db results for meta-data queriesstringarraynullboolarray$querystring|array|null$filtered_indexTRUEboolnum_rows\Query\Driver\Abstract_Driver::num_rows()Return the number of rows returned for a SELECT queryinttruncate\Query\Driver\Abstract_Driver::truncate()Empty the passed tablestringvoid$tablestringinsert_batch\Query\Driver\Abstract_Driver::insert_batch()Create sql for batch insertstringarrayarray$tablestring$dataarray()arrayQueryFree Query Builder / Database Abstraction LayerAbstract_Util\Query\Driver\Abstract_UtilAbstract class defining database / table creation methods$connReference to the current connection object__construct\Query\Driver\Abstract_Util::__construct()Save a reference to the connection object for later useobject$connobject__call\Query\Driver\Abstract_Util::__call()Enable calling driver methodsstringarraymixed$methodstring$argsarraycreate_table\Query\Driver\Abstract_Util::create_table()Convienience public function to generate sql for creating a db tablestringarrayarraystring$namestring$fieldsarray$constraintsarray()arraydelete_table\Query\Driver\Abstract_Util::delete_table()Drop the selected tablestringstring$namestringbackup_structure\Query\Driver\Abstract_Util::backup_structure()Return an SQL file with the database table structurestringbackup_data\Query\Driver\Abstract_Util::backup_data()Return an SQL file with the database data as insert statementsstringquote_identquote_tableQueryFree Query Builder / Database Abstraction LayerDriver_Interface\Query\Driver\Driver_InterfacePDO Interface to implement for database drivers__construct\Query\Driver\Driver_Interface::__construct()Constructor/Connection methodstring\Query\Driver\[string]\Query\Driver\[string]\Query\Driver\[array]void$dsnstring$usernameNULL\Query\Driver\[string]$passwordNULL\Query\Driver\[string]$driver_optionsarray()\Query\Driver\[array]beginTransaction\Query\Driver\Driver_Interface::beginTransaction()Begin a transactionboolcommit\Query\Driver\Driver_Interface::commit()Commit a transactionboolerrorCode\Query\Driver\Driver_Interface::errorCode()Return the current error codemixederrorInfo\Query\Driver\Driver_Interface::errorInfo()Return information about the current errorarrayexec\Query\Driver\Driver_Interface::exec()Execute an SQL statement and return the number of affected rowsstringint$statementstringgetAttribute\Query\Driver\Driver_Interface::getAttribute()Get a connection attribute for the current db driverint$attributeintrollback\Query\Driver\Driver_Interface::rollback()Rollback a transactionboolsetAttribute\Query\Driver\Driver_Interface::setAttribute()Set a connection attributeintmixedbool$attributeint$valuemixedQueryFree Query Builder / Database Abstraction LayerQuery_Builder_Interface\Query\Query_Builder_InterfaceInterface defining the Query Builder classselect\Query\Query_Builder_Interface::select()Specifies rows to select in a querystring\Query\Query_Builder$fieldsstringselect_max\Query\Query_Builder_Interface::select_max()Selects the maximum value of a field from a querystringstring\Query\Query_Builder$fieldstring$asFALSEstringselect_min\Query\Query_Builder_Interface::select_min()Selects the minimum value of a field from a querystringstring\Query\Query_Builder$fieldstring$asFALSEstringselect_avg\Query\Query_Builder_Interface::select_avg()Selects the average value of a field from a querystringstring\Query\Query_Builder$fieldstring$asFALSEstringselect_sum\Query\Query_Builder_Interface::select_sum()Selects the sum of a field from a querystringstring\Query\Query_Builder$fieldstring$asFALSEstringdistinct\Query\Query_Builder_Interface::distinct()Adds the 'distinct' keyword to a query\Query\Query_Builderexplain\Query\Query_Builder_Interface::explain()Shows the query plan for the query\Query\Query_Builderfrom\Query\Query_Builder_Interface::from()Specify the database table to select fromstring\Query\Query_Builder$tblnamestringlike\Query\Query_Builder_Interface::like()Creates a Like clause in the sql statementstringmixedstring\Query\Query_Builder$fieldstring$valmixed$pos'both'stringor_like\Query\Query_Builder_Interface::or_like()Generates an OR Like clausestringmixedstring\Query\Query_Builder$fieldstring$valmixed$pos'both'stringnot_like\Query\Query_Builder_Interface::not_like()Generates a NOT LIKE clausestringmixedstring\Query\Query_Builder$fieldstring$valmixed$pos'both'stringor_not_like\Query\Query_Builder_Interface::or_not_like()Generates a OR NOT LIKE clausestringmixedstring\Query\Query_Builder$fieldstring$valmixed$pos'both'stringhaving\Query\Query_Builder_Interface::having()Generates a 'Having' clausemixedmixed\Query\Query_Builder$keymixed$valarray()mixedor_having\Query\Query_Builder_Interface::or_having()Generates a 'Having' clause prefixed with 'OR'mixedmixed\Query\Query_Builder$keymixed$valarray()mixedwhere\Query\Query_Builder_Interface::where()Specify condition(s) in the where clause of a query
Note: this function works with key / value, or a
passed array with key / value pairsmixedmixedbool\Query\Query_Builder$keymixed$valarray()mixed$escapeNULLboolor_where\Query\Query_Builder_Interface::or_where()Where clause prefixed with "OR"stringmixed\Query\Query_Builder$keystring$valarray()mixedwhere_in\Query\Query_Builder_Interface::where_in()Where clause with 'IN' statementmixedmixed\Query\Query_Builder$fieldmixed$valarray()mixedor_where_in\Query\Query_Builder_Interface::or_where_in()Where in statement prefixed with "or"stringmixed\Query\Query_Builder$fieldstring$valarray()mixedwhere_not_in\Query\Query_Builder_Interface::where_not_in()WHERE NOT IN (FOO) clausestringmixed\Query\Query_Builder$fieldstring$valarray()mixedor_where_not_in\Query\Query_Builder_Interface::or_where_not_in()OR WHERE NOT IN (FOO) clausestringmixed\Query\Query_Builder$fieldstring$valarray()mixedset\Query\Query_Builder_Interface::set()Sets values for inserts / updates / deletesmixedmixed\Query\Query_Builder$keymixed$valNULLmixedjoin\Query\Query_Builder_Interface::join()Creates a join phrase in a compiled querystringstringstring\Query\Query_Builder$tablestring$conditionstring$type''stringgroup_by\Query\Query_Builder_Interface::group_by()Group the results by the selected field(s)mixed\Query\Query_Builder$fieldmixedorder_by\Query\Query_Builder_Interface::order_by()Order the results by the selected field(s)stringstring\Query\Query_Builder$fieldstring$type""stringlimit\Query\Query_Builder_Interface::limit()Set a limit on the current sql statementintintstring$limitint$offsetFALSEintgroup_start\Query\Query_Builder_Interface::group_start()Adds a paren to the current query for query grouping\Query\Query_Builderor_group_start\Query\Query_Builder_Interface::or_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR'\Query\Query_Builderor_not_group_start\Query\Query_Builder_Interface::or_not_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR NOT'\Query\Query_Buildergroup_end\Query\Query_Builder_Interface::group_end()Ends a query group\Query\Query_Builderget\Query\Query_Builder_Interface::get()Select and retrieve all records from the current table, and/or
execute current compiled queryintint\Query\PDOStatement$table''mixed$limitFALSEint$offsetFALSEintget_where\Query\Query_Builder_Interface::get_where()Convience method for get() with a where clausestringarrayintint\Query\PDOStatement$tablestring$wherearray()array$limitFALSEint$offsetFALSEintcount_all\Query\Query_Builder_Interface::count_all()Retreive the number of rows in the selected tablestringint$tablestringcount_all_results\Query\Query_Builder_Interface::count_all_results()Retrieve the number of results for the generated query - used
in place of the get() methodstringint$table''stringinsert\Query\Query_Builder_Interface::insert()Creates an insert clause, and executes itstringmixed\Query\PDOStatement$tablestring$dataarray()mixedinsert_batch\Query\Query_Builder_Interface::insert_batch()Creates and executes a batch insertion querystringarray\PDOStatementnull$tablestring$dataarray()arrayupdate\Query\Query_Builder_Interface::update()Creates an update clause, and executes itstringmixed\Query\PDOStatement$tablestring$dataarray()mixeddelete\Query\Query_Builder_Interface::delete()Deletes data from a tablestringmixed\Query\PDOStatement$tablestring$where''mixedget_compiled_select\Query\Query_Builder_Interface::get_compiled_select()Returns the generated 'select' sql querystringboolstring$table''string$resetTRUEboolget_compiled_insert\Query\Query_Builder_Interface::get_compiled_insert()Returns the generated 'insert' sql querystringboolstring$tablestring$resetTRUEboolget_compiled_update\Query\Query_Builder_Interface::get_compiled_update()Returns the generated 'update' sql querystringboolstring$table''string$resetTRUEboolget_compiled_delete\Query\Query_Builder_Interface::get_compiled_delete()Returns the generated 'delete' sql querystringboolstring$table""string$resetTRUEboolreset_query\Query\Query_Builder_Interface::reset_query()Clear out the class variables, so the next query can be runvoidQueryFree Query Builder / Database Abstraction LayerSQL_Interface\Query\Driver\SQL_Interfaceparent for database manipulation subclasseslimit\Query\Driver\SQL_Interface::limit()Get database specific sql for limit clausestringintintstring$sqlstring$limitint$offsetFALSEintexplain\Query\Driver\SQL_Interface::explain()Modify the query to get the query planstringstring$sqlstringrandom\Query\Driver\SQL_Interface::random()Get the sql for random orderingstringdb_list\Query\Driver\SQL_Interface::db_list()Returns sql to list other databasesstringtable_list\Query\Driver\SQL_Interface::table_list()Returns sql to list tablesstringsystem_table_list\Query\Driver\SQL_Interface::system_table_list()Returns sql to list system tablesstringview_list\Query\Driver\SQL_Interface::view_list()Returns sql to list viewsstringtrigger_list\Query\Driver\SQL_Interface::trigger_list()Returns sql to list triggersstringfunction_list\Query\Driver\SQL_Interface::function_list()Return sql to list functionsNULLprocedure_list\Query\Driver\SQL_Interface::procedure_list()Return sql to list stored proceduresstringsequence_list\Query\Driver\SQL_Interface::sequence_list()Return sql to list sequencesstringtype_list\Query\Driver\SQL_Interface::type_list()Return sql to list database field typesstringarraycolumn_list\Query\Driver\SQL_Interface::column_list()Get information about the columns in the
specified tablestringstring$tablestringfk_list\Query\Driver\SQL_Interface::fk_list()Get the list of foreign keys for the current
tablearray$tableindex_list\Query\Driver\SQL_Interface::index_list()Get the list of indexes for the current tablestringarray$tablestringQueryFree Query Builder / Database Abstraction Layer\InvalidArgumentExceptionBadDBDriverException\Query\BadDBDriverExceptionGeneric exception for bad driversConnection_Manager\Query\Connection_ManagerConnection manager class to manage connections for the
Query method$connectionsarray()Map of named database connectionsarray$instancenullClass instance variable\Query\Connection_Manager__construct\Query\Connection_Manager::__construct()Private constructor to prevent multiple instances__clone\Query\Connection_Manager::__clone()Private clone method to prevent cloning__wakeup\Query\Connection_Manager::__wakeup()Make sure serialize/deseriaze doesn't work\Query\DomainExceptionget_instance\Query\Connection_Manager::get_instance()Return a connection manager instance\Query\Connection_Managerget_connection\Query\Connection_Manager::get_connection()Returns the connection specified by the name givenstringarrayobject\Query\Query_Builder\Query\InvalidArgumentException$name''string|array|objectconnect\Query\Connection_Manager::connect()Parse the passed parameters and return a connection\ArrayObject\Query\Query_Builder\Query\BadConnectionException$params\ArrayObjectparse_params\Query\Connection_Manager::parse_params()Parses params into a dsn and option array\ArrayObject\Query\BadDBDriverException$params\ArrayObjectcreate_dsn\Query\Connection_Manager::create_dsn()Create the dsn from the db type and paramsstring\ArrayObjectstring$dbtypestring$params\ArrayObjectQueryFree Query Builder / Database Abstraction Layer\Query\Table\Abstract_TableTable_Index\Query\Table\Table_IndexClass representing indicies when creating a table$valid_optionsarray('type', 'unique', 'name')Valid options for a table indexarray__toString\Query\Table\Table_Index::__toString()Return the string representation of the current indexQueryFree Query Builder / Database Abstraction Layer\Query\Table\Abstract_TableTable_Foreign_Key\Query\Table\Table_Foreign_KeyClass representing a foreign key$valid_optionsarray('delete', 'update', 'constraint')Valid options for a foreign key\Query\Table\type__toString\Query\Table\Table_Foreign_Key::__toString()String representation of the foreign keyQueryFree Query Builder / Database Abstraction Layer\Query\Table\Abstract_TableTable_Column\Query\Table\Table_ColumnClass representing a column when creating a table$nameThe name of the columnstring$typeThe type of the columnstring$valid_optionsarray('limit', 'length', 'default', 'null', 'precision', 'scale', 'after', 'update', 'comment')Valid column options\Query\Table\type__construct\Query\Table\Table_Column::__construct()Set the attributes for the columnstring\Query\Table\[string]\Query\Table\[array]$namestring$typeNULL\Query\Table\[string]$optionsarray()\Query\Table\[array]__toString\Query\Table\Table_Column::__toString()Return the string to create the columnstringQueryFree Query Builder / Database Abstraction LayerTable_Builder\Query\Table\Table_BuilderAbstract class defining database / table creation methods$name''The name of the current tablestring$driverNULLDriver for the current db\Query\Table\Driver_Interface$table_optionsarray()Options for the current tablearray$columnsarray()Columns to be added/updated for the current tablearray$indexesarray()Indexes to be added/updated for the current tablearray$foreign_keysarray()Foreign keys to be added/updated for the current tablearray__construct\Query\Table\Table_Builder::__construct()Constructorstringarray\Query\Table\Driver_Interface\Query\Table\Table_Builder$namestring$optionsarray()array$driverNULL\Query\Table\Driver_Interface__invoke\Query\Table\Table_Builder::__invoke()Alias to constructorstringarray\Query\Driver_Interface$namestring$optionsarray()array$driverNULL\Query\Driver_Interfaceset_driver\Query\Table\Table_Builder::set_driver()Set the reference to the current database driver\Query\Driver_Interface\Query\Table_Builder$driver\Query\Driver_Interfaceget_driver\Query\Table\Table_Builder::get_driver()Get the current DB Driver\Query\Driver_Interfaceadd_column\Query\Table\Table_Builder::add_column()Add a column to the current tablestringstringarray$column_namestring$typeNULLstring$optionsarray()arrayremove_column\Query\Table\Table_Builder::remove_column()$column_namerename_column\Query\Table\Table_Builder::rename_column()$old_name$new_namechange_column\Query\Table\Table_Builder::change_column()$column_name$new_column_type$optionsarray()has_column\Query\Table\Table_Builder::has_column()$column_name$optionsarray()add_index\Query\Table\Table_Builder::add_index()$columns$optionsarray()remove_index\Query\Table\Table_Builder::remove_index()$columns$optionsarray()remove_index_by_name\Query\Table\Table_Builder::remove_index_by_name()$namehas_index\Query\Table\Table_Builder::has_index()$columns$optionsarray()add_foreign_key\Query\Table\Table_Builder::add_foreign_key()$columns$referenced_table$referenced_columnsarray('id')$optionsarray()drop_foreign_key\Query\Table\Table_Builder::drop_foreign_key()$columns$constraintNULLhas_foreign_key\Query\Table\Table_Builder::has_foreign_key()$columns$constraintNULLexists\Query\Table\Table_Builder::exists()drop\Query\Table\Table_Builder::drop()rename\Query\Table\Table_Builder::rename()$new_table_nameget_columns\Query\Table\Table_Builder::get_columns()create\Query\Table\Table_Builder::create()update\Query\Table\Table_Builder::update()save\Query\Table\Table_Builder::save()reset\Query\Table\Table_Builder::reset()QueryFree Query Builder / Database Abstraction Layer\Query\Query_Builder_InterfaceQuery_Builder\Query\Query_BuilderConvienience class for creating sql queries - also the class that
instantiates the specific db driver$select_string''Compiled 'select' clause\Query\type$from_stringCompiled 'from' clause\Query\type$set_stringCompiled arguments for insert / updatestring$order_stringOrder by clausestring$group_stringGroup by clausestring$set_array_keysarray()Keys for insert/update statementarray$order_arrayarray()Key/val pairs for order by clausearray$group_arrayarray()Key/val pairs for group by clausearray$valuesarray()Values to apply to prepared statementsarray$where_valuesarray()Values to apply to where clauses in prepared statementsarray$limitValue for limit string\Query\type$offsetValue for offset in limit stringint$query_maparray()Query component order mapping
for complex select queriesFormat:
array(
'type' => 'where',
'conjunction' => ' AND ',
'string' => 'k=?'
)array$having_mapMap for having clausearray$conn_name""Convenience property for connection managementstring$queriesList of queries executedarray$explainWhether to do only an explain on the querybool$dbThe current database driver\Query\Driver\Driver_Interface$parserQuery parser class instance\Query\Query_Parser$utilAlias to $this->db->util\Query\DB_Util$sqlAlias to $this->db->sql\Query\SQL_Interface__construct\Query\Query_Builder::__construct()Constructor\Query\Driver\Driver_Interface$db\Query\Driver\Driver_Interface__destruct\Query\Query_Builder::__destruct()Destructor_select\Query\Query_Builder::_select()Method to simplify select_ methodsstringstringstring$fieldstring$asFALSEstringselect\Query\Query_Builder::select()Specifies rows to select in a querystring\Query\Query_Builder$fieldsstringselect_max\Query\Query_Builder::select_max()Selects the maximum value of a field from a querystringstring\Query\Query_Builder$fieldstring$asFALSEstringselect_min\Query\Query_Builder::select_min()Selects the minimum value of a field from a querystringstring\Query\Query_Builder$fieldstring$asFALSEstringselect_avg\Query\Query_Builder::select_avg()Selects the average value of a field from a querystringstring\Query\Query_Builder$fieldstring$asFALSEstringselect_sum\Query\Query_Builder::select_sum()Selects the sum of a field from a querystringstring\Query\Query_Builder$fieldstring$asFALSEstringdistinct\Query\Query_Builder::distinct()Adds the 'distinct' keyword to a query\Query\Query_Builderexplain\Query\Query_Builder::explain()Tell the database to give you the query plan instead of result set\Query\Query_Builderfrom\Query\Query_Builder::from()Specify the database table to select fromstring\Query\Query_Builder$tblnamestring_like\Query\Query_Builder::_like()Simplify 'like' methodsstringmixedstringstringstring\Query\Query_Builder$fieldstring$valmixed$posstring$like'LIKE'string$conj'AND'stringlike\Query\Query_Builder::like()Creates a Like clause in the sql statementstringmixedstring\Query\Query_Builder$fieldstring$valmixed$pos'both'stringor_like\Query\Query_Builder::or_like()Generates an OR Like clausestringmixedstring\Query\Query_Builder$fieldstring$valmixed$pos'both'stringnot_like\Query\Query_Builder::not_like()Generates a NOT LIKE clausestringmixedstring\Query\Query_Builder$fieldstring$valmixed$pos'both'stringor_not_like\Query\Query_Builder::or_not_like()Generates a OR NOT LIKE clausestringmixedstring\Query\Query_Builder$fieldstring$valmixed$pos'both'string_having\Query\Query_Builder::_having()Simplify building having clausesmixedmixedstring\Query\Query_Builder$keymixed$valarray()mixed$conj'AND'stringhaving\Query\Query_Builder::having()Generates a 'Having' clausemixedmixed\Query\Query_Builder$keymixed$valarray()mixedor_having\Query\Query_Builder::or_having()Generates a 'Having' clause prefixed with 'OR'mixedmixed\Query\Query_Builder$keymixed$valarray()mixed_where\Query\Query_Builder::_where()Do all the repeditive stuff for where/having type methodsmixedmixedarray$keymixed$valarray()mixed_where_string\Query\Query_Builder::_where_string()Simplify generating where stringmixedmixedstring\Query\Query_Builder$keymixed$valarray()mixed$conj'AND'string_where_in\Query\Query_Builder::_where_in()Simplify where_in methodsmixedmixedstringstring\Query\Query_Builder$keymixed$valarray()mixed$in'IN'string$conj'AND'stringwhere\Query\Query_Builder::where()Specify condition(s) in the where clause of a query
Note: this function works with key / value, or a
passed array with key / value pairsmixedmixedmixed\Query\Query_Builder$keymixed$valarray()mixed$escapeNULLmixedor_where\Query\Query_Builder::or_where()Where clause prefixed with "OR"stringmixed\Query\Query_Builder$keystring$valarray()mixedwhere_in\Query\Query_Builder::where_in()Where clause with 'IN' statementmixedmixed\Query\Query_Builder$fieldmixed$valarray()mixedor_where_in\Query\Query_Builder::or_where_in()Where in statement prefixed with "or"stringmixed\Query\Query_Builder$fieldstring$valarray()mixedwhere_not_in\Query\Query_Builder::where_not_in()WHERE NOT IN (FOO) clausestringmixed\Query\Query_Builder$fieldstring$valarray()mixedor_where_not_in\Query\Query_Builder::or_where_not_in()OR WHERE NOT IN (FOO) clausestringmixed\Query\Query_Builder$fieldstring$valarray()mixedset\Query\Query_Builder::set()Sets values for inserts / updates / deletesmixedmixed\Query\Query_Builder$keymixed$valNULLmixedjoin\Query\Query_Builder::join()Creates a join phrase in a compiled querystringstringstring\Query\Query_Builder$tablestring$conditionstring$type''stringgroup_by\Query\Query_Builder::group_by()Group the results by the selected field(s)mixed\Query\Query_Builder$fieldmixedorder_by\Query\Query_Builder::order_by()Order the results by the selected field(s)stringstring\Query\Query_Builder$fieldstring$type""stringlimit\Query\Query_Builder::limit()Set a limit on the current sql statementintint\Query\Query_Builder$limitint$offsetFALSEintgroup_start\Query\Query_Builder::group_start()Adds a paren to the current query for query grouping\Query\Query_Builderor_group_start\Query\Query_Builder::or_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR'\Query\Query_Builderor_not_group_start\Query\Query_Builder::or_not_group_start()Adds a paren to the current query for query grouping,
prefixed with 'OR NOT'\Query\Query_Buildergroup_end\Query\Query_Builder::group_end()Ends a query group\Query\Query_Builderget\Query\Query_Builder::get()Select and retrieve all records from the current table, and/or
execute current compiled queryintint\Query\PDOStatement$table''mixed$limitFALSEint$offsetFALSEintget_where\Query\Query_Builder::get_where()Convience method for get() with a where clausestringarrayintint\Query\PDOStatement$tablestring$wherearray()array$limitFALSEint$offsetFALSEintcount_all\Query\Query_Builder::count_all()Retreive the number of rows in the selected tablestringint$tablestringcount_all_results\Query\Query_Builder::count_all_results()Retrieve the number of results for the generated query - used
in place of the get() methodstringint$table''stringinsert\Query\Query_Builder::insert()Creates an insert clause, and executes itstringmixed\Query\PDOStatement$tablestring$dataarray()mixedinsert_batch\Query\Query_Builder::insert_batch()Creates and executes a batch insertion querystringarray\Query\PDOStatement$tablestring$dataarray()arrayupdate\Query\Query_Builder::update()Creates an update clause, and executes itstringmixed\Query\PDOStatement$tablestring$dataarray()mixeddelete\Query\Query_Builder::delete()Deletes data from a tablestringmixed\Query\PDOStatement$tablestring$where''mixed_get_compile\Query\Query_Builder::_get_compile()Helper function for returning sql stringsstringstringbool$typestring$tablestring$resetboolget_compiled_select\Query\Query_Builder::get_compiled_select()Returns the generated 'select' sql querystringboolstring$table''string$resetTRUEboolget_compiled_insert\Query\Query_Builder::get_compiled_insert()Returns the generated 'insert' sql querystringboolstring$tablestring$resetTRUEboolget_compiled_update\Query\Query_Builder::get_compiled_update()Returns the generated 'update' sql querystringboolstring$table''string$resetTRUEboolget_compiled_delete\Query\Query_Builder::get_compiled_delete()Returns the generated 'delete' sql querystringboolstring$table""string$resetTRUEboolreset_query\Query\Query_Builder::reset_query()Clear out the class variables, so the next query can be runvoid_run\Query\Query_Builder::_run()Executes the compiled querystringstringstringarraynull\Query\PDOStatement$typestring$tablestring$sqlNULLstring$valsNULLarray|null__call\Query\Query_Builder::__call()Calls a function further down the inheritence chainstringarraymixed\Query\BadMethodCallException$namestring$paramsarray_append_query\Query\Query_Builder::_append_query()Convert the prepared statement into readable sqlarraystringstringvoid$valsarray$sqlstring$total_timestring_append_map\Query\Query_Builder::_append_map()Add an additional set of mapping pairs to a internal mapstringstringstringvoid$conjunction''string$string''string$type''string_compile_type\Query\Query_Builder::_compile_type()Sub-method for generating sql stringsstringstringstring$type''string$table''string_compile\Query\Query_Builder::_compile()String together the sql statements for sending to the dbstringstring\Query\$string$type''string$table''stringQueryFree Query Builder / Database Abstraction LayerQBASE_PATH\\QBASE_PATHdirname(__FILE__) . '/'Reference to root pathQDRIVER_PATH\\QDRIVER_PATHQBASE_PATH . 'drivers/'Path to driver classesquery_autoload\query_autoload()Load query classesstring$classstringQueryFree Query Builder / Database Abstraction Layerdo_include\do_include()Bulk directory loading workaround for use
with array_map and globstringvoid$pathstringmb_trim\mb_trim()Multibyte-safe trim functionstringstring$stringstringdb_filter\db_filter()Filter out db rows into one arrayarraymixedarray$arrayarray$indexmixedQuery\Query()Connection functionstringobjectarray\Query\Query_Buildernull$params''string|object|array