2015-11-10 09:20:27 -05:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html SYSTEM "about:legacy-compat">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en" >
< head >
2015-11-10 11:10:27 -05:00
< title > phpDox - Query\QueryBuilder< / title >
2015-11-10 09:20:27 -05:00
< link rel = "stylesheet" type = "text/css" href = "../css/style.css" media = "screen" / >
< meta http-equiv = "content-type" content = "text/html; charset=utf-8" / >
< / head >
< body >
< nav class = "topnav" >
< ul >
< li >
< div class = "logo" > < span > /**< / span > phpDox< / div >
< / li >
< li class = "separator" >
< a href = "../index.html" > Overview< / a >
< / li >
< li class = "separator" >
< a href = "../namespaces.html" > Namespaces< / a >
< / li >
< li >
< a href = "../interfaces.html" > Interfaces< / a >
< / li >
< li >
< a href = "../classes.html" > Classes< / a >
< / li >
< li class = "separator" >
< a href = "../source/index.html" > Source< / a >
< / li >
< / ul >
< / nav >
< div id = "mainstage" >
< div class = "box" >
< ul class = "breadcrumb" >
< li >
< a href = "../index.html" > Overview< / a >
< / li >
< li class = "separator" >
< a href = "../classes.html" > Classes< / a >
< / li >
< li class = "separator" >
< a href = "../classes.html#Query" > Query< / a >
< / li >
2015-11-10 11:10:27 -05:00
< li class = "separator" > QueryBuilder< / li >
2015-11-10 09:20:27 -05:00
< / ul >
< / div >
< nav class = "box" >
< ul >
< li >
< a href = "#introduction" > Introduction< / a >
< / li >
< li >
< a href = "#synopsis" > Synopsis< / a >
< / li >
< li >
< a href = "#hierarchy" > Hierarchy< / a >
< / li >
2015-11-10 16:40:14 -05:00
< li >
< a href = "#coverage" > Coverage< / a >
< / li >
2015-11-10 09:20:27 -05:00
< li >
< a href = "#constants" > Constants< / a >
< / li >
< li >
< a href = "#members" > Members< / a >
< / li >
< li >
< a href = "#methods" > Methods< / a >
< / li >
< li >
< a href = "#history" > History< / a >
< / li >
< li >
2015-11-10 11:10:27 -05:00
< a href = "../source/Query/QueryBuilder.php.html#line27" > Source< / a >
2015-11-10 09:20:27 -05:00
< / li >
< / ul >
< / nav >
< section >
2015-11-10 11:10:27 -05:00
< h1 id = "introduction" > < small > Query\< / small > QueryBuilder< / h1 >
2015-11-10 09:20:27 -05:00
< h4 > Convenience class for creating sql queries - also the class that instantiates the specific db driver< / h4 >
< p / >
< ul / >
< h2 id = "synopsis" > Synopsis< / h2 >
2015-11-10 11:10:27 -05:00
< div class = "synopsis" > class QueryBuilder
extends < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder.html" > AbstractQueryBuilder< / a >
2015-11-10 09:20:27 -05:00
implements
2015-11-10 11:10:27 -05:00
< a title = "Query\QueryBuilderInterface" href = "../interfaces/Query_QueryBuilderInterface.html" > QueryBuilderInterface< / a >
{< br / > < ul class = "none" > < li > // Inherited constants from < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder.html" > AbstractQueryBuilder< / a > < / li > < li > const < a href = "#KEY" > KEY< / a > = 0;< / li > < li > const < a href = "#VALUE" > VALUE< / a > = 1;< / li > < li > const < a href = "#BOTH" > BOTH< / a > = 2;< / li > < / ul > < ul class = "none" > < li > // members< / li > < li > private array < a href = "#members" > $string_vars< / a > =
2015-11-10 09:20:27 -05:00
;
< / li > < li > private array < a href = "#members" > $array_vars< / a > =
;
2015-11-10 11:10:27 -05:00
< / li > < / ul > < ul class = "none" > < li > // Inherited members from < span title = "Query\AbstractQueryBuilder" > AbstractQueryBuilder< / span > < / li > < li > protected string < a href = "#members" > $select_string< / a > ;
2015-11-10 09:20:27 -05:00
< / li > < li > protected < a href = "#members" > $from_string< / a > ;
< / li > < li > protected < a href = "#members" > $set_string< / a > ;
< / li > < li > protected < a href = "#members" > $order_string< / a > ;
< / li > < li > protected < a href = "#members" > $group_string< / a > ;
< / li > < li > protected array < a href = "#members" > $set_array_keys< / a > ;
< / li > < li > protected array < a href = "#members" > $order_array< / a > ;
< / li > < li > protected array < a href = "#members" > $group_array< / a > ;
< / li > < li > protected array < a href = "#members" > $values< / a > ;
< / li > < li > protected array < a href = "#members" > $where_values< / a > ;
< / li > < li > protected < a href = "#members" > $limit< / a > ;
< / li > < li > protected < a href = "#members" > $offset< / a > ;
< / li > < li > protected array < a href = "#members" > $query_map< / a > ;
< / li > < li > protected < a href = "#members" > $having_map< / a > ;
< / li > < li > public string < a href = "#members" > $conn_name< / a > ;
< / li > < li > public < a href = "#members" > $queries< / a > ;
< / li > < li > protected < span title = "Query\bool" > bool< / span > < a href = "#members" > $explain< / a > ;
< / li > < li > public < span title = "Query\Driver_Interface" > Driver_Interface< / span > < a href = "#members" > $db< / a > ;
2015-11-10 11:10:27 -05:00
< / li > < li > public < span title = "Query\Query_Parser" > Query_Parser< / span > < a href = "#members" > $parser< / a > ;
< / li > < li > public < span title = "\Query\Driver\Abstract_Util" > Abstract_Util< / span > < a href = "#members" > $util< / a > ;
< / li > < li > public < span title = "\Query\Driver\SQL_Interface" > SQL_Interface< / span > < a href = "#members" > $sql< / a > ;
< / li > < / ul > < ul class = "none" > < li > // methods< / li > < li > public void < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/__construct.html" > __construct< / a > ()
< / li > < li > public void < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/__destruct.html" > __destruct< / a > ()
< / li > < li > public mixed < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/__call.html" > __call< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select.html" > select< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select_max.html" > select_max< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select_min.html" > select_min< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select_avg.html" > select_avg< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select_sum.html" > select_sum< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/distinct.html" > distinct< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/explain.html" > explain< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/from.html" > from< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/like.html" > like< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_like.html" > or_like< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/not_like.html" > not_like< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_not_like.html" > or_not_like< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/having.html" > having< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_having.html" > or_having< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/where.html" > where< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_where.html" > or_where< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/where_in.html" > where_in< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_where_in.html" > or_where_in< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/where_not_in.html" > where_not_in< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_where_not_in.html" > or_where_not_in< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/set.html" > set< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/join.html" > join< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/group_by.html" > group_by< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/order_by.html" > order_by< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/limit.html" > limit< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/group_start.html" > group_start< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_group_start.html" > or_group_start< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_not_group_start.html" > or_not_group_start< / a > ()
< / li > < li > public Query_Builder < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/group_end.html" > group_end< / a > ()
< / li > < li > public PDOStatement < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get.html" > get< / a > ()
< / li > < li > public PDOStatement < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_where.html" > get_where< / a > ()
< / li > < li > public int < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/count_all.html" > count_all< / a > ()
< / li > < li > public int < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/count_all_results.html" > count_all_results< / a > ()
< / li > < li > public PDOStatement < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/insert.html" > insert< / a > ()
< / li > < li > public PDOStatement < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/insert_batch.html" > insert_batch< / a > ()
< / li > < li > public PDOStatement < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/update.html" > update< / a > ()
< / li > < li > public PDOStatement < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/delete.html" > delete< / a > ()
< / li > < li > public string < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_compiled_select.html" > get_compiled_select< / a > ()
< / li > < li > public string < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_compiled_insert.html" > get_compiled_insert< / a > ()
< / li > < li > public string < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_compiled_update.html" > get_compiled_update< / a > ()
< / li > < li > public string < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_compiled_delete.html" > get_compiled_delete< / a > ()
< / li > < li > public void < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/reset_query.html" > reset_query< / a > ()
< / li > < / ul > < ul class = "none" > < li > // Inherited methods from < span title = "Query\AbstractQueryBuilder" > AbstractQueryBuilder< / span > < / li > < li > protected array < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_mixed_set.html" > _mixed_set< / a > ()
< / li > < li > protected string < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_select.html" > _select< / a > ()
< / li > < li > protected string < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_get_compile.html" > _get_compile< / a > ()
< / li > < li > protected Query_Builder < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_like.html" > _like< / a > ()
< / li > < li > protected Query_Builder < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_having.html" > _having< / a > ()
< / li > < li > protected array < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_where.html" > _where< / a > ()
< / li > < li > protected Query_Builder < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_where_string.html" > _where_string< / a > ()
< / li > < li > protected Query_Builder < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_where_in.html" > _where_in< / a > ()
< / li > < li > protected PDOStatement < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_run.html" > _run< / a > ()
< / li > < li > protected void < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_append_map.html" > _append_map< / a > ()
< / li > < li > protected void < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_append_query.html" > _append_query< / a > ()
< / li > < li > protected string < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_compile_type.html" > _compile_type< / a > ()
< / li > < li > protected string < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_compile.html" > _compile< / a > ()
2015-11-10 09:20:27 -05:00
< / li > < / ul >
}< br / > < / div >
< h2 id = "hierarchy" > Hierarchy< / h2 >
< div class = "styled" >
< h4 > Extends< / h4 >
< ul >
< li >
2015-11-10 11:10:27 -05:00
< a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder.html" > Query\AbstractQueryBuilder< / a >
2015-11-10 09:20:27 -05:00
< / li >
< / ul >
< h4 > Implements< / h4 >
< ul >
< li >
2015-11-10 11:10:27 -05:00
< a title = "Query\QueryBuilderInterface" href = "../interfaces/Query_QueryBuilderInterface.html" > Query\QueryBuilderInterface< / a >
2015-11-10 09:20:27 -05:00
< / li >
< / ul >
< / div >
2015-11-10 16:40:14 -05:00
< h2 id = "coverage" > Coverage< / h2 >
< table class = "styled" >
< tr >
< td > Methods< / td >
< td class = "percent" > 100%< / td >
< td class = "nummeric" > 45 / 45< / td >
< / tr >
< tr >
< td > Lines< / td >
< td class = "percent" > 100%< / td >
< td class = "nummeric" > 148 / 148< / td >
< / tr >
< / table >
2015-11-10 09:20:27 -05:00
< h2 id = "constants" > Constants< / h2 >
< table class = "styled" >
< thead >
< tr >
< th > Name< / th >
< th > Value< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td id = "KEY" > KEY< / td >
< td > 0< / td >
< / tr >
< tr >
< td id = "VALUE" > VALUE< / td >
< td > 1< / td >
< / tr >
< tr >
< td id = "BOTH" > BOTH< / td >
< td > 2< / td >
< / tr >
< / tbody >
< / table >
< h2 id = "members" > Members< / h2 >
< div class = "styled members" >
< h4 > private< / h4 >
< ul class = "members" >
< li id = "array_vars" > < strong > $array_vars< / strong >
—
array< br / > < span class = "indent" > Array class variables to be reset< / span > < / li >
< li id = "string_vars" > < strong > $string_vars< / strong >
—
array< br / > < span class = "indent" > String class values to be reset< / span > < / li >
< / ul >
< h4 > protected< / h4 >
< ul class = "members" >
< li id = "explain" > < strong > $explain< / strong >
—
< a title = "Query\bool" href = "../classes/Query_bool.html" > Query\bool< / a > < br / > < span class = "indent" > Whether to do only an explain on the query< / span > < / li >
< li id = "from_string" > < strong > $from_string< / strong >
—
string< br / > < span class = "indent" > Compiled 'from' clause< / span > < / li >
< li id = "group_array" > < strong > $group_array< / strong >
—
array< br / > < span class = "indent" > Key/val pairs for group by clause< / span > < / li >
< li id = "group_string" > < strong > $group_string< / strong >
—
string< br / > < span class = "indent" > Group by clause< / span > < / li >
< li id = "having_map" > < strong > $having_map< / strong >
—
array< br / > < span class = "indent" > Map for having clause< / span > < / li >
< li id = "limit" > < strong > $limit< / strong >
—
string< br / > < span class = "indent" > Value for limit string< / span > < / li >
< li id = "offset" > < strong > $offset< / strong >
—
int< br / > < span class = "indent" > Value for offset in limit string< / span > < / li >
< li id = "order_array" > < strong > $order_array< / strong >
—
array< br / > < span class = "indent" > Key/val pairs for order by clause< / span > < / li >
< li id = "order_string" > < strong > $order_string< / strong >
—
string< br / > < span class = "indent" > Order by clause< / span > < / li >
< li id = "query_map" > < strong > $query_map< / strong >
—
array< br / > < span class = "indent" > Query component order mapping for complex select queries< / span > < / li >
< li id = "select_string" > < strong > $select_string< / strong >
—
string< br / > < span class = "indent" > Compiled 'select' clause< / span > < / li >
< li id = "set_array_keys" > < strong > $set_array_keys< / strong >
—
array< br / > < span class = "indent" > Keys for insert/update statement< / span > < / li >
< li id = "set_string" > < strong > $set_string< / strong >
—
string< br / > < span class = "indent" > Compiled arguments for insert / update< / span > < / li >
< li id = "values" > < strong > $values< / strong >
—
array< br / > < span class = "indent" > Values to apply to prepared statements< / span > < / li >
< li id = "where_values" > < strong > $where_values< / strong >
—
array< br / > < span class = "indent" > Values to apply to where clauses in prepared statements< / span > < / li >
< / ul >
< h4 > public< / h4 >
< ul class = "members" >
< li id = "conn_name" > < strong > $conn_name< / strong >
—
string< br / > < span class = "indent" > Convenience property for connection management< / span > < / li >
< li id = "db" > < strong > $db< / strong >
—
< a title = "Query\Driver_Interface" href = "../classes/Query_Driver_Interface.html" > Query\Driver_Interface< / a > < br / > < span class = "indent" > The current database driver< / span > < / li >
2015-11-10 11:10:27 -05:00
< li id = "parser" > < strong > $parser< / strong >
—
< a title = "Query\Query_Parser" href = "../classes/Query_Query_Parser.html" > Query\Query_Parser< / a > < br / > < span class = "indent" > Query parser class instance< / span > < / li >
2015-11-10 09:20:27 -05:00
< li id = "queries" > < strong > $queries< / strong >
—
array< br / > < span class = "indent" > List of queries executed< / span > < / li >
2015-11-10 11:10:27 -05:00
< li id = "sql" > < strong > $sql< / strong >
—
< a title = "\Query\Driver\SQL_Interface" href = "../classes/_Query_Driver_SQL_Interface.html" > \Query\Driver\SQL_Interface< / a > < br / > < span class = "indent" > Alias to driver sql class< / span > < / li >
< li id = "util" > < strong > $util< / strong >
—
< a title = "\Query\Driver\Abstract_Util" href = "../classes/_Query_Driver_Abstract_Util.html" > \Query\Driver\Abstract_Util< / a > < br / > < span class = "indent" > Alias to driver util class< / span > < / li >
2015-11-10 09:20:27 -05:00
< / ul >
< / div >
< h2 id = "methods" > Methods< / h2 >
< div class = "styled" >
< h4 > public< / h4 >
< ul >
2015-11-10 11:10:27 -05:00
< li id = "__construct" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/__construct.html" > __construct()< / a >
2015-11-10 09:20:27 -05:00
— Constructor< / li >
2015-11-10 11:10:27 -05:00
< li id = "__destruct" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/__destruct.html" > __destruct()< / a >
2015-11-10 09:20:27 -05:00
— Destructor< / li >
2015-11-10 11:10:27 -05:00
< li id = "__call" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/__call.html" > __call()< / a >
2015-11-10 09:20:27 -05:00
— Calls a function further down the inheritence chain< / li >
2015-11-10 11:10:27 -05:00
< li id = "count_all" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/count_all.html" > count_all()< / a >
2015-11-10 09:20:27 -05:00
— Retreive the number of rows in the selected table< / li >
2015-11-10 11:10:27 -05:00
< li id = "count_all_results" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/count_all_results.html" > count_all_results()< / a >
2015-11-10 09:20:27 -05:00
— Retrieve the number of results for the generated query - used in place of the get() method< / li >
2015-11-10 11:10:27 -05:00
< li id = "delete" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/delete.html" > delete()< / a >
2015-11-10 09:20:27 -05:00
— Deletes data from a table< / li >
2015-11-10 11:10:27 -05:00
< li id = "distinct" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/distinct.html" > distinct()< / a >
2015-11-10 09:20:27 -05:00
— Adds the 'distinct' keyword to a query< / li >
2015-11-10 11:10:27 -05:00
< li id = "explain" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/explain.html" > explain()< / a >
2015-11-10 09:20:27 -05:00
— Tell the database to give you the query plan instead of result set< / li >
2015-11-10 11:10:27 -05:00
< li id = "from" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/from.html" > from()< / a >
2015-11-10 09:20:27 -05:00
— Specify the database table to select from< / li >
2015-11-10 11:10:27 -05:00
< li id = "get" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get.html" > get()< / a >
2015-11-10 09:20:27 -05:00
— Select and retrieve all records from the current table, and/or execute current compiled query< / li >
2015-11-10 11:10:27 -05:00
< li id = "get_compiled_delete" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_compiled_delete.html" > get_compiled_delete()< / a >
2015-11-10 09:20:27 -05:00
— Returns the generated 'delete' sql query< / li >
2015-11-10 11:10:27 -05:00
< li id = "get_compiled_insert" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_compiled_insert.html" > get_compiled_insert()< / a >
2015-11-10 09:20:27 -05:00
— Returns the generated 'insert' sql query< / li >
2015-11-10 11:10:27 -05:00
< li id = "get_compiled_select" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_compiled_select.html" > get_compiled_select()< / a >
2015-11-10 09:20:27 -05:00
— Returns the generated 'select' sql query< / li >
2015-11-10 11:10:27 -05:00
< li id = "get_compiled_update" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_compiled_update.html" > get_compiled_update()< / a >
2015-11-10 09:20:27 -05:00
— Returns the generated 'update' sql query< / li >
2015-11-10 11:10:27 -05:00
< li id = "get_where" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/get_where.html" > get_where()< / a >
2015-11-10 09:20:27 -05:00
— Convenience method for get() with a where clause< / li >
2015-11-10 11:10:27 -05:00
< li id = "group_by" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/group_by.html" > group_by()< / a >
2015-11-10 09:20:27 -05:00
— Group the results by the selected field(s)< / li >
2015-11-10 11:10:27 -05:00
< li id = "group_end" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/group_end.html" > group_end()< / a >
2015-11-10 09:20:27 -05:00
— Ends a query group< / li >
2015-11-10 11:10:27 -05:00
< li id = "group_start" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/group_start.html" > group_start()< / a >
2015-11-10 09:20:27 -05:00
— Adds a paren to the current query for query grouping< / li >
2015-11-10 11:10:27 -05:00
< li id = "having" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/having.html" > having()< / a >
2015-11-10 09:20:27 -05:00
— Generates a 'Having' clause< / li >
2015-11-10 11:10:27 -05:00
< li id = "insert" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/insert.html" > insert()< / a >
2015-11-10 09:20:27 -05:00
— Creates an insert clause, and executes it< / li >
2015-11-10 11:10:27 -05:00
< li id = "insert_batch" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/insert_batch.html" > insert_batch()< / a >
2015-11-10 09:20:27 -05:00
— Creates and executes a batch insertion query< / li >
2015-11-10 11:10:27 -05:00
< li id = "join" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/join.html" > join()< / a >
2015-11-10 09:20:27 -05:00
— Creates a join phrase in a compiled query< / li >
2015-11-10 11:10:27 -05:00
< li id = "like" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/like.html" > like()< / a >
2015-11-10 09:20:27 -05:00
— Creates a Like clause in the sql statement< / li >
2015-11-10 11:10:27 -05:00
< li id = "limit" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/limit.html" > limit()< / a >
2015-11-10 09:20:27 -05:00
— Set a limit on the current sql statement< / li >
2015-11-10 11:10:27 -05:00
< li id = "not_like" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/not_like.html" > not_like()< / a >
2015-11-10 09:20:27 -05:00
— Generates a NOT LIKE clause< / li >
2015-11-10 11:10:27 -05:00
< li id = "or_group_start" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_group_start.html" > or_group_start()< / a >
2015-11-10 09:20:27 -05:00
— Adds a paren to the current query for query grouping, prefixed with 'OR'< / li >
2015-11-10 11:10:27 -05:00
< li id = "or_having" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_having.html" > or_having()< / a >
2015-11-10 09:20:27 -05:00
— Generates a 'Having' clause prefixed with 'OR'< / li >
2015-11-10 11:10:27 -05:00
< li id = "or_like" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_like.html" > or_like()< / a >
2015-11-10 09:20:27 -05:00
— Generates an OR Like clause< / li >
2015-11-10 11:10:27 -05:00
< li id = "or_not_group_start" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_not_group_start.html" > or_not_group_start()< / a >
2015-11-10 09:20:27 -05:00
— Adds a paren to the current query for query grouping, prefixed with 'OR NOT'< / li >
2015-11-10 11:10:27 -05:00
< li id = "or_not_like" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_not_like.html" > or_not_like()< / a >
2015-11-10 09:20:27 -05:00
— Generates a OR NOT LIKE clause< / li >
2015-11-10 11:10:27 -05:00
< li id = "or_where" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_where.html" > or_where()< / a >
2015-11-10 09:20:27 -05:00
— Where clause prefixed with "OR"< / li >
2015-11-10 11:10:27 -05:00
< li id = "or_where_in" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_where_in.html" > or_where_in()< / a >
2015-11-10 09:20:27 -05:00
— Where in statement prefixed with "or"< / li >
2015-11-10 11:10:27 -05:00
< li id = "or_where_not_in" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/or_where_not_in.html" > or_where_not_in()< / a >
2015-11-10 09:20:27 -05:00
— OR WHERE NOT IN (FOO) clause< / li >
2015-11-10 11:10:27 -05:00
< li id = "order_by" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/order_by.html" > order_by()< / a >
2015-11-10 09:20:27 -05:00
— Order the results by the selected field(s)< / li >
2015-11-10 11:10:27 -05:00
< li id = "reset_query" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/reset_query.html" > reset_query()< / a >
2015-11-10 09:20:27 -05:00
— Clear out the class variables, so the next query can be run< / li >
2015-11-10 11:10:27 -05:00
< li id = "select" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select.html" > select()< / a >
2015-11-10 09:20:27 -05:00
— Specifies rows to select in a query< / li >
2015-11-10 11:10:27 -05:00
< li id = "select_avg" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select_avg.html" > select_avg()< / a >
2015-11-10 09:20:27 -05:00
— Selects the average value of a field from a query< / li >
2015-11-10 11:10:27 -05:00
< li id = "select_max" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select_max.html" > select_max()< / a >
2015-11-10 09:20:27 -05:00
— Selects the maximum value of a field from a query< / li >
2015-11-10 11:10:27 -05:00
< li id = "select_min" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select_min.html" > select_min()< / a >
2015-11-10 09:20:27 -05:00
— Selects the minimum value of a field from a query< / li >
2015-11-10 11:10:27 -05:00
< li id = "select_sum" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/select_sum.html" > select_sum()< / a >
2015-11-10 09:20:27 -05:00
— Selects the sum of a field from a query< / li >
2015-11-10 11:10:27 -05:00
< li id = "set" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/set.html" > set()< / a >
2015-11-10 09:20:27 -05:00
— Sets values for inserts / updates / deletes< / li >
2015-11-10 11:10:27 -05:00
< li id = "update" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/update.html" > update()< / a >
2015-11-10 09:20:27 -05:00
— Creates an update clause, and executes it< / li >
2015-11-10 11:10:27 -05:00
< li id = "where" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/where.html" > where()< / a >
2015-11-10 09:20:27 -05:00
— Specify condition(s) in the where clause of a query Note: this function works with key / value, or a passed array with key / value pairs< / li >
2015-11-10 11:10:27 -05:00
< li id = "where_in" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/where_in.html" > where_in()< / a >
2015-11-10 09:20:27 -05:00
— Where clause with 'IN' statement< / li >
2015-11-10 11:10:27 -05:00
< li id = "where_not_in" > < a title = "Query\QueryBuilder" href = "../classes/Query_QueryBuilder/where_not_in.html" > where_not_in()< / a >
2015-11-10 09:20:27 -05:00
— WHERE NOT IN (FOO) clause< / li >
< / ul >
2015-11-10 11:10:27 -05:00
< h3 > Inherited from < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder.html" > Query\AbstractQueryBuilder< / a > < / h3 >
2015-11-10 09:20:27 -05:00
< h4 > protected< / h4 >
< ul >
2015-11-10 11:10:27 -05:00
< li id = "_append_map" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_append_map.html" > _append_map()< / a >
2015-11-10 09:20:27 -05:00
— Add an additional set of mapping pairs to a internal map< / li >
2015-11-10 11:10:27 -05:00
< li id = "_append_query" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_append_query.html" > _append_query()< / a >
2015-11-10 09:20:27 -05:00
— Convert the prepared statement into readable sql< / li >
2015-11-10 11:10:27 -05:00
< li id = "_compile" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_compile.html" > _compile()< / a >
2015-11-10 09:20:27 -05:00
— String together the sql statements for sending to the db< / li >
2015-11-10 11:10:27 -05:00
< li id = "_compile_type" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_compile_type.html" > _compile_type()< / a >
2015-11-10 09:20:27 -05:00
— Sub-method for generating sql strings< / li >
2015-11-10 11:10:27 -05:00
< li id = "_get_compile" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_get_compile.html" > _get_compile()< / a >
2015-11-10 09:20:27 -05:00
— Helper function for returning sql strings< / li >
2015-11-10 11:10:27 -05:00
< li id = "_having" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_having.html" > _having()< / a >
2015-11-10 09:20:27 -05:00
— Simplify building having clauses< / li >
2015-11-10 11:10:27 -05:00
< li id = "_like" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_like.html" > _like()< / a >
2015-11-10 09:20:27 -05:00
— Simplify 'like' methods< / li >
2015-11-10 11:10:27 -05:00
< li id = "_mixed_set" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_mixed_set.html" > _mixed_set()< / a >
2015-11-10 09:20:27 -05:00
— Set values in the class, with either an array or key value pair< / li >
2015-11-10 11:10:27 -05:00
< li id = "_run" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_run.html" > _run()< / a >
2015-11-10 09:20:27 -05:00
— Executes the compiled query< / li >
2015-11-10 11:10:27 -05:00
< li id = "_select" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_select.html" > _select()< / a >
2015-11-10 09:20:27 -05:00
— Method to simplify select_ methods< / li >
2015-11-10 11:10:27 -05:00
< li id = "_where" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_where.html" > _where()< / a >
2015-11-10 09:20:27 -05:00
— Do all the repeditive stuff for where/having type methods< / li >
2015-11-10 11:10:27 -05:00
< li id = "_where_in" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_where_in.html" > _where_in()< / a >
2015-11-10 09:20:27 -05:00
— Simplify where_in methods< / li >
2015-11-10 11:10:27 -05:00
< li id = "_where_string" > < a title = "Query\AbstractQueryBuilder" href = "../classes/Query_AbstractQueryBuilder/_where_string.html" > _where_string()< / a >
2015-11-10 09:20:27 -05:00
— Simplify generating where string< / li >
< / ul >
< / div >
< h2 id = "history" > History< / h2 >
< ul class = "styled history" >
2015-11-10 16:40:14 -05:00
< li >
< h3 > 2015-11-10T11:18:11-05:00 (commit #< span title = "1e2a7ee5669b6512fa3549aa2bb46b4816b6899c" > 1e2a7ee< / span > )< / h3 >
< div >
< p >
Author: Timothy J Warren (tim@timshomepage.net) /
Commiter: Timothy J Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Actually fix tests< / pre >
< / div >
< / li >
2015-11-10 11:10:27 -05:00
< li >
< h3 > 2015-11-10T10:12:23-05:00 (commit #< span title = "b5a141ffc741a4f271bf4e110814ac8861a2312f" > b5a141f< / span > )< / h3 >
< div >
< p >
Author: Timothy J Warren (tim@timshomepage.net) /
Commiter: Timothy J Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Make class names Pascal Case< / pre >
< / div >
< / li >
2015-11-10 09:20:27 -05:00
< li >
< h3 > 2015-11-10T06:45:55-05:00 (commit #< span title = "e6ac4a70ad5297a1f0594903de424e1a9136329f" > e6ac4a7< / span > )< / h3 >
< div >
< p >
Author: Timothy J Warren (tim@timshomepage.net) /
Commiter: Timothy J Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Set up jenkins build< / pre >
< / div >
< / li >
< li >
< h3 > 2015-07-29T16:51:17-04:00 (commit #< span title = "8511c6a445e935547b59a1d3736e7c08cf9633ea" > 8511c6a< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Move library into src folder, fix simpletest test runner< / pre >
< / div >
< / li >
< li >
< h3 > 2015-07-17T16:01:41-04:00 (commit #< span title = "b4118ce591ee74fdd71d609ac40355e830d56765" > b4118ce< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Update docs< / pre >
< / div >
< / li >
< li >
< h3 > 2015-07-16T16:56:13-04:00 (commit #< span title = "bfc3ea33ca5c8ddc8500b3d2d8857b9f95304417" > bfc3ea3< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Reorganize drivers into a more modern layout< / pre >
< / div >
< / li >
< li >
< h3 > 2014-11-07T12:14:46-05:00 (commit #< span title = "675581823288b094043f6c4f7d60f79573d361b2" > 6755818< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Fix some issues with multiple array items in where statements< / pre >
< / div >
< / li >
< li >
< h3 > 2014-08-08T13:48:20-04:00 (commit #< span title = "dd672df81d8f6e423b4b8ed6d7b8077306a191a3" > dd672df< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Reorganize classes to autoload by namespace< / pre >
< / div >
< / li >
< li >
< h3 > 2014-06-30T11:21:40-04:00 (commit #< span title = "2ccac504da4d9c98a30ef995724f6af5f1e5385b" > 2ccac50< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Fix small docblock discrepency< / pre >
< / div >
< / li >
< li >
< h3 > 2014-06-30T11:16:50-04:00 (commit #< span title = "d4838bada336fd8501fe883b4156289ef7280532" > d4838ba< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Add an additional type check to limit< / pre >
< / div >
< / li >
< li >
< h3 > 2014-06-09T17:02:14-04:00 (commit #< span title = "1abd835f47cb9b1b8640655e49f3c1e14d15aacc" > 1abd835< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Attempting some Quercus compatibility, test-suite runs with simpletest as well as PHPUnit< / pre >
< / div >
< / li >
< li >
< h3 > 2014-04-28T16:41:46-04:00 (commit #< span title = "6a38213a62c63da11cb4df1b6b82a264199dd6ef" > 6a38213< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Improve some tests and docblocks< / pre >
< / div >
< / li >
< li >
< h3 > 2014-04-24T21:29:40-04:00 (commit #< span title = "315dc5e1c51eac9691273de861c1c3fa11585bf6" > 315dc5e< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > method shortening< / pre >
< / div >
< / li >
< li >
< h3 > 2014-04-24T20:14:19-04:00 (commit #< span title = "2ae38bea8816a61688dfaedcd8195ad01ca6adfe" > 2ae38be< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Remove some variable setting logic duplication< / pre >
< / div >
< / li >
< li >
< h3 > 2014-04-24T17:07:50-04:00 (commit #< span title = "81be910014785d017da9ab9154553102d6c0ed49" > 81be910< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Split Query Builder class< / pre >
< / div >
< / li >
< li >
< h3 > 2014-04-24T14:50:53-04:00 (commit #< span title = "993a2aba51bbc5cf27401200c46ed3f381a712a4" > 993a2ab< / span > )< / h3 >
< div >
< p >
Author: Timothy J. Warren (tim@timshomepage.net) /
Commiter: Timothy J. Warren (tim@timshomepage.net)
< / p >
< pre class = "wrapped" > Allow camelCase method calls, update interfaces with missing methods< / pre >
< / div >
< / li >
< / ul >
< / section >
< / div >
< footer >
< span > Generated using phpDox 0.8.2-dev - Copyright (C) 2010 - 2015 by Arne Blankerts< / span >
< / footer >
< / body >
< / html >