Query/docs/classes/Query.Query_Builder.html
2015-07-17 16:01:41 -04:00

4066 lines
204 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<meta charset="utf-8"/>
<title>Query</title>
<meta name="author" content=""/>
<meta name="description" content=""/>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="https://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css" rel="stylesheet">
<link href="../css/prism.css" rel="stylesheet" media="all"/>
<link href="../css/template.css" rel="stylesheet" media="all"/>
<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->
<script src="https://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.min.js" type="text/javascript"></script>
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<script src="../js/jquery.smooth-scroll.js"></script>
<script src="../js/prism.min.js"></script>
<!-- TODO: Add http://jscrollpane.kelvinluck.com/ to style the scrollbars for browsers not using webkit-->
<script type="text/javascript">
function loadExternalCodeSnippets() {
Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
var src = pre.getAttribute('data-src');
var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
var language = 'php';
var code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
}
else if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
}
else {
code.textContent = '✖ Error: File does not exist or is empty';
}
}
};
xhr.send(null);
});
}
$(document).ready(function(){
loadExternalCodeSnippets();
});
$('#source-view').on('shown', function () {
loadExternalCodeSnippets();
})
</script>
<link rel="shortcut icon" href="../images/favicon.ico"/>
<link rel="apple-touch-icon" href="../images/apple-touch-icon.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="../images/apple-touch-icon-72x72.png"/>
<link rel="apple-touch-icon" sizes="114x114" href="../images/apple-touch-icon-114x114.png"/>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<i class="icon-ellipsis-vertical"></i>
</a>
<a class="brand" href="../index.html">Query</a>
<div class="nav-collapse">
<ul class="nav pull-right">
<li class="dropdown">
<a href="../index.html" class="dropdown-toggle" data-toggle="dropdown">
API Documentation <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="../namespaces/Query.html">\Query</a></li>
</ul>
</li>
<li class="dropdown" id="charts-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Charts <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="../graphs/class.html">
<i class="icon-list-alt"></i>&#160;Class hierarchy diagram
</a>
</li>
</ul>
</li>
<li class="dropdown" id="reports-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Reports <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="../reports/errors.html">
<i class="icon-list-alt"></i>&#160;Errors <span class="label label-info pull-right">0</span>
</a>
</li>
<li>
<a href="../reports/markers.html">
<i class="icon-list-alt"></i>&#160;Markers <span class="label label-info pull-right">1</span>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<!--<div class="go_to_top">-->
<!--<a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>-->
<!--</div>-->
</div>
<div id="___" class="container-fluid">
<section class="row-fluid">
<div class="span2 sidebar">
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle " data-toggle="collapse" data-target="#namespace-977608859"></a>
<a href="../namespaces/default.html" style="margin-left: 30px; padding-left: 0">\</a>
</div>
<div id="namespace-977608859" class="accordion-body collapse in">
<div class="accordion-inner">
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-2137241482"></a>
<a href="../namespaces/Query.html" style="margin-left: 30px; padding-left: 0">Query</a>
</div>
<div id="namespace-2137241482" class="accordion-body collapse ">
<div class="accordion-inner">
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-1367243564"></a>
<a href="../namespaces/Query.Drivers.html" style="margin-left: 30px; padding-left: 0">Drivers</a>
</div>
<div id="namespace-1367243564" class="accordion-body collapse ">
<div class="accordion-inner">
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-121420908"></a>
<a href="../namespaces/Query.Drivers.Firebird.html" style="margin-left: 30px; padding-left: 0">Firebird</a>
</div>
<div id="namespace-121420908" class="accordion-body collapse ">
<div class="accordion-inner">
<ul>
<li class="class"><a href="../classes/Query.Drivers.Firebird.Driver.html">Driver</a></li>
<li class="class"><a href="../classes/Query.Drivers.Firebird.Result.html">Result</a></li>
<li class="class"><a href="../classes/Query.Drivers.Firebird.Util.html">Util</a></li>
<li class="class"><a href="../classes/Query.Drivers.Firebird.SQL.html">SQL</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-1260097479"></a>
<a href="../namespaces/Query.Drivers.Mysql.html" style="margin-left: 30px; padding-left: 0">Mysql</a>
</div>
<div id="namespace-1260097479" class="accordion-body collapse ">
<div class="accordion-inner">
<ul>
<li class="class"><a href="../classes/Query.Drivers.Mysql.Driver.html">Driver</a></li>
<li class="class"><a href="../classes/Query.Drivers.Mysql.SQL.html">SQL</a></li>
<li class="class"><a href="../classes/Query.Drivers.Mysql.Util.html">Util</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-1453128216"></a>
<a href="../namespaces/Query.Drivers.Pgsql.html" style="margin-left: 30px; padding-left: 0">Pgsql</a>
</div>
<div id="namespace-1453128216" class="accordion-body collapse ">
<div class="accordion-inner">
<ul>
<li class="class"><a href="../classes/Query.Drivers.Pgsql.Driver.html">Driver</a></li>
<li class="class"><a href="../classes/Query.Drivers.Pgsql.Util.html">Util</a></li>
<li class="class"><a href="../classes/Query.Drivers.Pgsql.SQL.html">SQL</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-1519526159"></a>
<a href="../namespaces/Query.Drivers.Sqlite.html" style="margin-left: 30px; padding-left: 0">Sqlite</a>
</div>
<div id="namespace-1519526159" class="accordion-body collapse ">
<div class="accordion-inner">
<ul>
<li class="class"><a href="../classes/Query.Drivers.Sqlite.Driver.html">Driver</a></li>
<li class="class"><a href="../classes/Query.Drivers.Sqlite.SQL.html">SQL</a></li>
<li class="class"><a href="../classes/Query.Drivers.Sqlite.Util.html">Util</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="accordion" style="margin-bottom: 0">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle collapsed" data-toggle="collapse" data-target="#namespace-2035848385"></a>
<a href="../namespaces/Query.Drivers.Pdo_firebird.html" style="margin-left: 30px; padding-left: 0">Pdo_firebird</a>
</div>
<div id="namespace-2035848385" class="accordion-body collapse ">
<div class="accordion-inner">
<ul>
<li class="class"><a href="../classes/Query.Drivers.Pdo_firebird.Util.html">Util</a></li>
<li class="class"><a href="../classes/Query.Drivers.Pdo_firebird.Driver.html">Driver</a></li>
<li class="class"><a href="../classes/Query.Drivers.Pdo_firebird.SQL.html">SQL</a></li>
</ul>
</div>
</div>
</div>
</div>
<ul>
</ul>
</div>
</div>
</div>
</div>
<ul>
<li class="interface"><a href="../classes/Query.Query_Builder_Interface.html">Query_Builder_Interface</a></li>
<li class="interface"><a href="../classes/Query.Driver_Interface.html">Driver_Interface</a></li>
<li class="interface"><a href="../classes/Query.SQL_Interface.html">SQL_Interface</a></li>
<li class="class"><a href="../classes/Query.BadDBDriverException.html">BadDBDriverException</a></li>
<li class="class"><a href="../classes/Query.Abstract_Query_Builder.html">Abstract_Query_Builder</a></li>
<li class="class"><a href="../classes/Query.Connection_Manager.html">Connection_Manager</a></li>
<li class="class"><a href="../classes/Query.Query_Parser.html">Query_Parser</a></li>
<li class="class"><a href="../classes/Query.Query_Builder.html">Query_Builder</a></li>
<li class="class"><a href="../classes/Query.Abstract_Util.html">Abstract_Util</a></li>
<li class="class"><a href="../classes/Query.Abstract_Driver.html">Abstract_Driver</a></li>
<li class="class"><a href="../classes/Query.Abstract_SQL.html">Abstract_SQL</a></li>
</ul>
</div>
</div>
</div>
</div>
<ul>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="row-fluid">
<div class="span10 offset2">
<div class="row-fluid">
<div class="span8 content class">
<nav>
<a href="../namespaces/Query.html">\Query</a> <i class="icon-level-up"></i>
</nav>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal"><i class="icon-code"></i></a>
<h1><small>\Query</small>Query_Builder</h1>
<p><em>Convenience class for creating sql queries - also the class that
instantiates the specific db driver</em></p>
<section id="summary">
<h2>Summary</h2>
<section class="row-fluid heading">
<section class="span4">
<a href="#methods">Methods</a>
</section>
<section class="span4">
<a href="#properties">Properties</a>
</section>
<section class="span4">
<a href="#constants">Constants</a>
</section>
</section>
<section class="row-fluid public">
<section class="span4">
<a href="../classes/Query.Query_Builder.html#method___construct" class="">__construct()</a><br />
<a href="../classes/Query.Query_Builder.html#method___destruct" class="">__destruct()</a><br />
<a href="../classes/Query.Query_Builder.html#method___call" class="">__call()</a><br />
<a href="../classes/Query.Query_Builder.html#method_select" class="">select()</a><br />
<a href="../classes/Query.Query_Builder.html#method_select_max" class="">select_max()</a><br />
<a href="../classes/Query.Query_Builder.html#method_select_min" class="">select_min()</a><br />
<a href="../classes/Query.Query_Builder.html#method_select_avg" class="">select_avg()</a><br />
<a href="../classes/Query.Query_Builder.html#method_select_sum" class="">select_sum()</a><br />
<a href="../classes/Query.Query_Builder.html#method_distinct" class="">distinct()</a><br />
<a href="../classes/Query.Query_Builder.html#method_explain" class="">explain()</a><br />
<a href="../classes/Query.Query_Builder.html#method_from" class="">from()</a><br />
<a href="../classes/Query.Query_Builder.html#method_like" class="">like()</a><br />
<a href="../classes/Query.Query_Builder.html#method_or_like" class="">or_like()</a><br />
<a href="../classes/Query.Query_Builder.html#method_not_like" class="">not_like()</a><br />
<a href="../classes/Query.Query_Builder.html#method_or_not_like" class="">or_not_like()</a><br />
<a href="../classes/Query.Query_Builder.html#method_having" class="">having()</a><br />
<a href="../classes/Query.Query_Builder.html#method_or_having" class="">or_having()</a><br />
<a href="../classes/Query.Query_Builder.html#method_where" class="">where()</a><br />
<a href="../classes/Query.Query_Builder.html#method_or_where" class="">or_where()</a><br />
<a href="../classes/Query.Query_Builder.html#method_where_in" class="">where_in()</a><br />
<a href="../classes/Query.Query_Builder.html#method_or_where_in" class="">or_where_in()</a><br />
<a href="../classes/Query.Query_Builder.html#method_where_not_in" class="">where_not_in()</a><br />
<a href="../classes/Query.Query_Builder.html#method_or_where_not_in" class="">or_where_not_in()</a><br />
<a href="../classes/Query.Query_Builder.html#method_set" class="">set()</a><br />
<a href="../classes/Query.Query_Builder.html#method_join" class="">join()</a><br />
<a href="../classes/Query.Query_Builder.html#method_group_by" class="">group_by()</a><br />
<a href="../classes/Query.Query_Builder.html#method_order_by" class="">order_by()</a><br />
<a href="../classes/Query.Query_Builder.html#method_limit" class="">limit()</a><br />
<a href="../classes/Query.Query_Builder.html#method_group_start" class="">group_start()</a><br />
<a href="../classes/Query.Query_Builder.html#method_or_group_start" class="">or_group_start()</a><br />
<a href="../classes/Query.Query_Builder.html#method_or_not_group_start" class="">or_not_group_start()</a><br />
<a href="../classes/Query.Query_Builder.html#method_group_end" class="">group_end()</a><br />
<a href="../classes/Query.Query_Builder.html#method_get" class="">get()</a><br />
<a href="../classes/Query.Query_Builder.html#method_get_where" class="">get_where()</a><br />
<a href="../classes/Query.Query_Builder.html#method_count_all" class="">count_all()</a><br />
<a href="../classes/Query.Query_Builder.html#method_count_all_results" class="">count_all_results()</a><br />
<a href="../classes/Query.Query_Builder.html#method_insert" class="">insert()</a><br />
<a href="../classes/Query.Query_Builder.html#method_insert_batch" class="">insert_batch()</a><br />
<a href="../classes/Query.Query_Builder.html#method_update" class="">update()</a><br />
<a href="../classes/Query.Query_Builder.html#method_delete" class="">delete()</a><br />
<a href="../classes/Query.Query_Builder.html#method_get_compiled_select" class="">get_compiled_select()</a><br />
<a href="../classes/Query.Query_Builder.html#method_get_compiled_insert" class="">get_compiled_insert()</a><br />
<a href="../classes/Query.Query_Builder.html#method_get_compiled_update" class="">get_compiled_update()</a><br />
<a href="../classes/Query.Query_Builder.html#method_get_compiled_delete" class="">get_compiled_delete()</a><br />
<a href="../classes/Query.Query_Builder.html#method_reset_query" class="">reset_query()</a><br />
</section>
<section class="span4">
<a href="../classes/Query.Abstract_Query_Builder.html#property_conn_name" class="">$conn_name</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_queries" class="">$queries</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_db" class="">$db</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_util" class="">$util</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_sql" class="">$sql</a><br />
</section>
<section class="span4">
<a href="../classes/Query.Abstract_Query_Builder.html#constant_KEY" class="">KEY</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#constant_VALUE" class="">VALUE</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#constant_BOTH" class="">BOTH</a><br />
</section>
</section>
<section class="row-fluid protected">
<section class="span4">
<a href="../classes/Query.Abstract_Query_Builder.html#method__mixed_set" class="">_mixed_set()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__select" class="">_select()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__get_compile" class="">_get_compile()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__like" class="">_like()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__having" class="">_having()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__where" class="">_where()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__where_string" class="">_where_string()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__where_in" class="">_where_in()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__run" class="">_run()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__append_map" class="">_append_map()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__append_query" class="">_append_query()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__compile_type" class="">_compile_type()</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#method__compile" class="">_compile()</a><br />
</section>
<section class="span4">
<a href="../classes/Query.Abstract_Query_Builder.html#property_select_string" class="">$select_string</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_from_string" class="">$from_string</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_set_string" class="">$set_string</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_order_string" class="">$order_string</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_group_string" class="">$group_string</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_set_array_keys" class="">$set_array_keys</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_order_array" class="">$order_array</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_group_array" class="">$group_array</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_values" class="">$values</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_where_values" class="">$where_values</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_limit" class="">$limit</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_offset" class="">$offset</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_query_map" class="">$query_map</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_having_map" class="">$having_map</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_explain" class="">$explain</a><br />
<a href="../classes/Query.Abstract_Query_Builder.html#property_parser" class="">$parser</a><br />
</section>
<section class="span4">
<em>N/A</em>
</section>
</section>
<section class="row-fluid private">
<section class="span4">
<em>No private methods found</em>
</section>
<section class="span4">
<a href="../classes/Query.Query_Builder.html#property_string_vars" class="">$string_vars</a><br />
<a href="../classes/Query.Query_Builder.html#property_array_vars" class="">$array_vars</a><br />
</section>
<section class="span4">
<em>N/A</em>
</section>
</section>
</section>
</div>
<aside class="span4 detailsbar">
<dl>
<dt>File</dt>
<dd><a href="../files/Query.Query_Builder.php.html"><div class="path-wrapper">Query/Query_Builder.php</div></a></dd>
<dt>Package</dt>
<dd><div class="namespace-wrapper">\Query\Query_Builder\Query_Builder</div></dd>
<dt>Class hierarchy</dt>
<dd class="hierarchy">
<div class="namespace-wrapper"><a href="../classes/Query.Abstract_Query_Builder.html">\Query\Abstract_Query_Builder</a></div>
<div class="namespace-wrapper">\Query\Query_Builder</div>
</dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="constants" name="constants"></a>
<div class="row-fluid">
<div class="span8 content class">
<h2>Constants</h2>
</div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_KEY" name="constant_KEY" class="anchor"></a>
<article id="constant_KEY" class="constant">
<h3 class="">KEY</h3>
<pre class="signature">KEY</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_VALUE" name="constant_VALUE" class="anchor"></a>
<article id="constant_VALUE" class="constant">
<h3 class="">VALUE</h3>
<pre class="signature">VALUE</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="constant_BOTH" name="constant_BOTH" class="anchor"></a>
<article id="constant_BOTH" class="constant">
<h3 class="">BOTH</h3>
<pre class="signature">BOTH</pre>
<p><em></em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="properties" name="properties"></a>
<div class="row-fluid">
<div class="span8 content class">
<h2>Properties</h2>
</div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_conn_name" name="property_conn_name" class="anchor"></a>
<article class="property">
<h3 class="public ">$conn_name</h3>
<pre class="signature">$conn_name : string</pre>
<p><em>Convenience property for connection management</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_queries" name="property_queries" class="anchor"></a>
<article class="property">
<h3 class="public ">$queries</h3>
<pre class="signature">$queries : array</pre>
<p><em>List of queries executed</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_db" name="property_db" class="anchor"></a>
<article class="property">
<h3 class="public ">$db</h3>
<pre class="signature">$db : \Query\Driver_Interface</pre>
<p><em>The current database driver</em></p>
<h4>Type</h4>
<a href="../classes/Query.Driver_Interface.html">\Query\Driver_Interface</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_util" name="property_util" class="anchor"></a>
<article class="property">
<h3 class="public ">$util</h3>
<pre class="signature">$util : \Query\Driver\Abstract_Util</pre>
<p><em>Alias to driver util class</em></p>
<h4>Type</h4>
\Query\Driver\Abstract_Util
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_sql" name="property_sql" class="anchor"></a>
<article class="property">
<h3 class="public ">$sql</h3>
<pre class="signature">$sql : \Query\Driver\SQL_Interface</pre>
<p><em>Alias to driver sql class</em></p>
<h4>Type</h4>
\Query\Driver\SQL_Interface
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_select_string" name="property_select_string" class="anchor"></a>
<article class="property">
<h3 class="protected ">$select_string</h3>
<pre class="signature">$select_string : string</pre>
<p><em>Compiled &#039;select&#039; clause</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_from_string" name="property_from_string" class="anchor"></a>
<article class="property">
<h3 class="protected ">$from_string</h3>
<pre class="signature">$from_string : string</pre>
<p><em>Compiled &#039;from&#039; clause</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_set_string" name="property_set_string" class="anchor"></a>
<article class="property">
<h3 class="protected ">$set_string</h3>
<pre class="signature">$set_string : string</pre>
<p><em>Compiled arguments for insert / update</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_order_string" name="property_order_string" class="anchor"></a>
<article class="property">
<h3 class="protected ">$order_string</h3>
<pre class="signature">$order_string : string</pre>
<p><em>Order by clause</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_group_string" name="property_group_string" class="anchor"></a>
<article class="property">
<h3 class="protected ">$group_string</h3>
<pre class="signature">$group_string : string</pre>
<p><em>Group by clause</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_set_array_keys" name="property_set_array_keys" class="anchor"></a>
<article class="property">
<h3 class="protected ">$set_array_keys</h3>
<pre class="signature">$set_array_keys : array</pre>
<p><em>Keys for insert/update statement</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_order_array" name="property_order_array" class="anchor"></a>
<article class="property">
<h3 class="protected ">$order_array</h3>
<pre class="signature">$order_array : array</pre>
<p><em>Key/val pairs for order by clause</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_group_array" name="property_group_array" class="anchor"></a>
<article class="property">
<h3 class="protected ">$group_array</h3>
<pre class="signature">$group_array : array</pre>
<p><em>Key/val pairs for group by clause</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_values" name="property_values" class="anchor"></a>
<article class="property">
<h3 class="protected ">$values</h3>
<pre class="signature">$values : array</pre>
<p><em>Values to apply to prepared statements</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_where_values" name="property_where_values" class="anchor"></a>
<article class="property">
<h3 class="protected ">$where_values</h3>
<pre class="signature">$where_values : array</pre>
<p><em>Values to apply to where clauses in prepared statements</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_limit" name="property_limit" class="anchor"></a>
<article class="property">
<h3 class="protected ">$limit</h3>
<pre class="signature">$limit : string</pre>
<p><em>Value for limit string</em></p>
<h4>Type</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_offset" name="property_offset" class="anchor"></a>
<article class="property">
<h3 class="protected ">$offset</h3>
<pre class="signature">$offset : int</pre>
<p><em>Value for offset in limit string</em></p>
<h4>Type</h4>
int
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_query_map" name="property_query_map" class="anchor"></a>
<article class="property">
<h3 class="protected ">$query_map</h3>
<pre class="signature">$query_map : array</pre>
<p><em>Query component order mapping
for complex select queries</em></p>
<p>Format:
array(</p>
<pre><code>'type' =&gt; 'where',
'conjunction' =&gt; ' AND ',
'string' =&gt; 'k=?'</code></pre>
<p>)</p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_having_map" name="property_having_map" class="anchor"></a>
<article class="property">
<h3 class="protected ">$having_map</h3>
<pre class="signature">$having_map : array</pre>
<p><em>Map for having clause</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_explain" name="property_explain" class="anchor"></a>
<article class="property">
<h3 class="protected ">$explain</h3>
<pre class="signature">$explain : bool</pre>
<p><em>Whether to do only an explain on the query</em></p>
<h4>Type</h4>
bool
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_parser" name="property_parser" class="anchor"></a>
<article class="property">
<h3 class="protected ">$parser</h3>
<pre class="signature">$parser : \Query\Query_Parser</pre>
<p><em>Query parser class instance</em></p>
<h4>Type</h4>
<a href="../classes/Query.Query_Parser.html">\Query\Query_Parser</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_string_vars" name="property_string_vars" class="anchor"></a>
<article class="property">
<h3 class="private ">$string_vars</h3>
<pre class="signature">$string_vars : array</pre>
<p><em>String class values to be reset</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="property_array_vars" name="property_array_vars" class="anchor"></a>
<article class="property">
<h3 class="private ">$array_vars</h3>
<pre class="signature">$array_vars : array</pre>
<p><em>Array class variables to be reset</em></p>
<h4>Type</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<a id="methods" name="methods"></a>
<div class="row-fluid">
<div class="span8 content class"><h2>Methods</h2></div>
<aside class="span4 detailsbar"></aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method___construct" name="method___construct" class="anchor"></a>
<article class="method">
<h3 class="public ">__construct()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">__construct(\Query\Driver_Interface <span class="argument">$db</span>, \Query\Query_Parser <span class="argument">$parser</span>)</pre>
<p><em>Constructor</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td><a href="../classes/Query.Driver_Interface.html">\Query\Driver_Interface</a></td>
<td>$db</td>
<td></td>
</tr>
<tr>
<td><a href="../classes/Query.Query_Parser.html">\Query\Query_Parser</a></td>
<td>$parser</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method___destruct" name="method___destruct" class="anchor"></a>
<article class="method">
<h3 class="public ">__destruct()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">__destruct()</pre>
<p><em>Destructor</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
codeCoverageIgnore
</th>
<td>
</td>
</tr>
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method___call" name="method___call" class="anchor"></a>
<article class="method">
<h3 class="public ">__call()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">__call(string <span class="argument">$name</span>, array <span class="argument">$params</span>) : mixed</pre>
<p><em>Calls a function further down the inheritence chain</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$name</td>
<td></td>
</tr>
<tr>
<td>array</td>
<td>$params</td>
<td></td>
</tr>
</table>
<h4>Throws</h4>
<dl>
<dt>\BadMethodCallException</dt>
<dd></dd>
</dl>
<h4>Returns</h4>
mixed
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_select" name="method_select" class="anchor"></a>
<article class="method">
<h3 class="public ">select()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">select(string <span class="argument">$fields</span>) : \Query\Query_Builder</pre>
<p><em>Specifies rows to select in a query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$fields</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_select_max" name="method_select_max" class="anchor"></a>
<article class="method">
<h3 class="public ">select_max()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">select_max(string <span class="argument">$field</span>, string|FALSE <span class="argument">$as</span>) : \Query\Query_Builder</pre>
<p><em>Selects the maximum value of a field from a query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>string|FALSE</td>
<td>$as</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_select_min" name="method_select_min" class="anchor"></a>
<article class="method">
<h3 class="public ">select_min()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">select_min(string <span class="argument">$field</span>, string|bool <span class="argument">$as</span>) : \Query\Query_Builder</pre>
<p><em>Selects the minimum value of a field from a query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>string|bool</td>
<td>$as</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_select_avg" name="method_select_avg" class="anchor"></a>
<article class="method">
<h3 class="public ">select_avg()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">select_avg(string <span class="argument">$field</span>, string|bool <span class="argument">$as</span>) : \Query\Query_Builder</pre>
<p><em>Selects the average value of a field from a query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>string|bool</td>
<td>$as</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_select_sum" name="method_select_sum" class="anchor"></a>
<article class="method">
<h3 class="public ">select_sum()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">select_sum(string <span class="argument">$field</span>, string|bool <span class="argument">$as</span>) : \Query\Query_Builder</pre>
<p><em>Selects the sum of a field from a query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>string|bool</td>
<td>$as</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_distinct" name="method_distinct" class="anchor"></a>
<article class="method">
<h3 class="public ">distinct()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">distinct() : \Query\Query_Builder</pre>
<p><em>Adds the &#039;distinct&#039; keyword to a query</em></p>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_explain" name="method_explain" class="anchor"></a>
<article class="method">
<h3 class="public ">explain()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">explain() : \Query\Query_Builder</pre>
<p><em>Tell the database to give you the query plan instead of result set</em></p>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr><td colspan="2"><em>None found</em></td></tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_from" name="method_from" class="anchor"></a>
<article class="method">
<h3 class="public ">from()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">from(string <span class="argument">$tblname</span>) : \Query\Query_Builder</pre>
<p><em>Specify the database table to select from</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$tblname</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_like" name="method_like" class="anchor"></a>
<article class="method">
<h3 class="public ">like()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">like(string <span class="argument">$field</span>, mixed <span class="argument">$val</span>, string <span class="argument">$pos</span>) : \Query\Query_Builder</pre>
<p><em>Creates a Like clause in the sql statement</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$pos</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_or_like" name="method_or_like" class="anchor"></a>
<article class="method">
<h3 class="public ">or_like()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">or_like(string <span class="argument">$field</span>, mixed <span class="argument">$val</span>, string <span class="argument">$pos</span>) : \Query\Query_Builder</pre>
<p><em>Generates an OR Like clause</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$pos</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_not_like" name="method_not_like" class="anchor"></a>
<article class="method">
<h3 class="public ">not_like()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">not_like(string <span class="argument">$field</span>, mixed <span class="argument">$val</span>, string <span class="argument">$pos</span>) : \Query\Query_Builder</pre>
<p><em>Generates a NOT LIKE clause</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$pos</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_or_not_like" name="method_or_not_like" class="anchor"></a>
<article class="method">
<h3 class="public ">or_not_like()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">or_not_like(string <span class="argument">$field</span>, mixed <span class="argument">$val</span>, string <span class="argument">$pos</span>) : \Query\Query_Builder</pre>
<p><em>Generates a OR NOT LIKE clause</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$pos</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_having" name="method_having" class="anchor"></a>
<article class="method">
<h3 class="public ">having()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">having(mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>) : \Query\Query_Builder</pre>
<p><em>Generates a &#039;Having&#039; clause</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_or_having" name="method_or_having" class="anchor"></a>
<article class="method">
<h3 class="public ">or_having()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">or_having(mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>) : \Query\Query_Builder</pre>
<p><em>Generates a &#039;Having&#039; clause prefixed with &#039;OR&#039;</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_where" name="method_where" class="anchor"></a>
<article class="method">
<h3 class="public ">where()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">where(mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>, mixed <span class="argument">$escape</span>) : \Query\Query_Builder</pre>
<p><em>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</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$escape</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_or_where" name="method_or_where" class="anchor"></a>
<article class="method">
<h3 class="public ">or_where()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">or_where(string <span class="argument">$key</span>, mixed <span class="argument">$val</span>) : \Query\Query_Builder</pre>
<p><em>Where clause prefixed with &quot;OR&quot;</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_where_in" name="method_where_in" class="anchor"></a>
<article class="method">
<h3 class="public ">where_in()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">where_in(mixed <span class="argument">$field</span>, mixed <span class="argument">$val</span>) : \Query\Query_Builder</pre>
<p><em>Where clause with &#039;IN&#039; statement</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_or_where_in" name="method_or_where_in" class="anchor"></a>
<article class="method">
<h3 class="public ">or_where_in()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">or_where_in(string <span class="argument">$field</span>, mixed <span class="argument">$val</span>) : \Query\Query_Builder</pre>
<p><em>Where in statement prefixed with &quot;or&quot;</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_where_not_in" name="method_where_not_in" class="anchor"></a>
<article class="method">
<h3 class="public ">where_not_in()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">where_not_in(string <span class="argument">$field</span>, mixed <span class="argument">$val</span>) : \Query\Query_Builder</pre>
<p><em>WHERE NOT IN (FOO) clause</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_or_where_not_in" name="method_or_where_not_in" class="anchor"></a>
<article class="method">
<h3 class="public ">or_where_not_in()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">or_where_not_in(string <span class="argument">$field</span>, mixed <span class="argument">$val</span>) : \Query\Query_Builder</pre>
<p><em>OR WHERE NOT IN (FOO) clause</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_set" name="method_set" class="anchor"></a>
<article class="method">
<h3 class="public ">set()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">set(mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>) : \Query\Query_Builder</pre>
<p><em>Sets values for inserts / updates / deletes</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_join" name="method_join" class="anchor"></a>
<article class="method">
<h3 class="public ">join()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">join(string <span class="argument">$table</span>, string <span class="argument">$condition</span>, string <span class="argument">$type</span>) : \Query\Query_Builder</pre>
<p><em>Creates a join phrase in a compiled query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$condition</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$type</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_group_by" name="method_group_by" class="anchor"></a>
<article class="method">
<h3 class="public ">group_by()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">group_by(mixed <span class="argument">$field</span>) : \Query\Query_Builder</pre>
<p><em>Group the results by the selected field(s)</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$field</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_order_by" name="method_order_by" class="anchor"></a>
<article class="method">
<h3 class="public ">order_by()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">order_by(string <span class="argument">$field</span>, string <span class="argument">$type</span>) : \Query\Query_Builder</pre>
<p><em>Order the results by the selected field(s)</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$type</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_limit" name="method_limit" class="anchor"></a>
<article class="method">
<h3 class="public ">limit()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">limit(int <span class="argument">$limit</span>, int|bool <span class="argument">$offset</span>) : \Query\Query_Builder</pre>
<p><em>Set a limit on the current sql statement</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>int</td>
<td>$limit</td>
<td></td>
</tr>
<tr>
<td>int|bool</td>
<td>$offset</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr><td colspan="2"><em>None found</em></td></tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_group_start" name="method_group_start" class="anchor"></a>
<article class="method">
<h3 class="public ">group_start()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">group_start() : \Query\Query_Builder</pre>
<p><em>Adds a paren to the current query for query grouping</em></p>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_or_group_start" name="method_or_group_start" class="anchor"></a>
<article class="method">
<h3 class="public ">or_group_start()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">or_group_start() : \Query\Query_Builder</pre>
<p><em>Adds a paren to the current query for query grouping,
prefixed with &#039;OR&#039;</em></p>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_or_not_group_start" name="method_or_not_group_start" class="anchor"></a>
<article class="method">
<h3 class="public ">or_not_group_start()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">or_not_group_start() : \Query\Query_Builder</pre>
<p><em>Adds a paren to the current query for query grouping,
prefixed with &#039;OR NOT&#039;</em></p>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_group_end" name="method_group_end" class="anchor"></a>
<article class="method">
<h3 class="public ">group_end()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">group_end() : \Query\Query_Builder</pre>
<p><em>Ends a query group</em></p>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_get" name="method_get" class="anchor"></a>
<article class="method">
<h3 class="public ">get()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">get(mixed <span class="argument">$table</span>, int|bool <span class="argument">$limit</span>, int|bool <span class="argument">$offset</span>) : \PDOStatement</pre>
<p><em>Select and retrieve all records from the current table, and/or
execute current compiled query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>int|bool</td>
<td>$limit</td>
<td></td>
</tr>
<tr>
<td>int|bool</td>
<td>$offset</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
\PDOStatement
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_get_where" name="method_get_where" class="anchor"></a>
<article class="method">
<h3 class="public ">get_where()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">get_where(string <span class="argument">$table</span>, array <span class="argument">$where</span>, int|bool <span class="argument">$limit</span>, int|bool <span class="argument">$offset</span>) : \PDOStatement</pre>
<p><em>Convenience method for get() with a where clause</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>array</td>
<td>$where</td>
<td></td>
</tr>
<tr>
<td>int|bool</td>
<td>$limit</td>
<td></td>
</tr>
<tr>
<td>int|bool</td>
<td>$offset</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
\PDOStatement
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_count_all" name="method_count_all" class="anchor"></a>
<article class="method">
<h3 class="public ">count_all()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">count_all(string <span class="argument">$table</span>) : int</pre>
<p><em>Retreive the number of rows in the selected table</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
int
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_count_all_results" name="method_count_all_results" class="anchor"></a>
<article class="method">
<h3 class="public ">count_all_results()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">count_all_results(string <span class="argument">$table</span>) : int</pre>
<p><em>Retrieve the number of results for the generated query - used
in place of the get() method</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
int
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_insert" name="method_insert" class="anchor"></a>
<article class="method">
<h3 class="public ">insert()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">insert(string <span class="argument">$table</span>, mixed <span class="argument">$data</span>) : \PDOStatement</pre>
<p><em>Creates an insert clause, and executes it</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$data</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
\PDOStatement
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_insert_batch" name="method_insert_batch" class="anchor"></a>
<article class="method">
<h3 class="public ">insert_batch()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">insert_batch(string <span class="argument">$table</span>, array <span class="argument">$data</span>) : \PDOStatement</pre>
<p><em>Creates and executes a batch insertion query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>array</td>
<td>$data</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
\PDOStatement
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_update" name="method_update" class="anchor"></a>
<article class="method">
<h3 class="public ">update()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">update(string <span class="argument">$table</span>, mixed <span class="argument">$data</span>) : \PDOStatement</pre>
<p><em>Creates an update clause, and executes it</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$data</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
\PDOStatement
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_delete" name="method_delete" class="anchor"></a>
<article class="method">
<h3 class="public ">delete()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">delete(string <span class="argument">$table</span>, mixed <span class="argument">$where</span>) : \PDOStatement</pre>
<p><em>Deletes data from a table</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$where</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
\PDOStatement
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_get_compiled_select" name="method_get_compiled_select" class="anchor"></a>
<article class="method">
<h3 class="public ">get_compiled_select()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">get_compiled_select(string <span class="argument">$table</span>, bool <span class="argument">$reset</span>) : string</pre>
<p><em>Returns the generated &#039;select&#039; sql query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>bool</td>
<td>$reset</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_get_compiled_insert" name="method_get_compiled_insert" class="anchor"></a>
<article class="method">
<h3 class="public ">get_compiled_insert()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">get_compiled_insert(string <span class="argument">$table</span>, bool <span class="argument">$reset</span>) : string</pre>
<p><em>Returns the generated &#039;insert&#039; sql query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>bool</td>
<td>$reset</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_get_compiled_update" name="method_get_compiled_update" class="anchor"></a>
<article class="method">
<h3 class="public ">get_compiled_update()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">get_compiled_update(string <span class="argument">$table</span>, bool <span class="argument">$reset</span>) : string</pre>
<p><em>Returns the generated &#039;update&#039; sql query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>bool</td>
<td>$reset</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_get_compiled_delete" name="method_get_compiled_delete" class="anchor"></a>
<article class="method">
<h3 class="public ">get_compiled_delete()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">get_compiled_delete(string <span class="argument">$table</span>, bool <span class="argument">$reset</span>) : string</pre>
<p><em>Returns the generated &#039;delete&#039; sql query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>bool</td>
<td>$reset</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method_reset_query" name="method_reset_query" class="anchor"></a>
<article class="method">
<h3 class="public ">reset_query()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">reset_query() : void</pre>
<p><em>Clear out the class variables, so the next query can be run</em></p>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__mixed_set" name="method__mixed_set" class="anchor"></a>
<article class="method">
<h3 class="protected ">_mixed_set()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_mixed_set(array <span class="argument">$var</span>, mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>, int <span class="argument">$val_type</span>) : array</pre>
<p><em>Set values in the class, with either an array or key value pair</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>array</td>
<td>$var</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>int</td>
<td>$val_type</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__select" name="method__select" class="anchor"></a>
<article class="method">
<h3 class="protected ">_select()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_select(string <span class="argument">$field</span>, string|bool <span class="argument">$as</span>) : string</pre>
<p><em>Method to simplify select_ methods</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>string|bool</td>
<td>$as</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__get_compile" name="method__get_compile" class="anchor"></a>
<article class="method">
<h3 class="protected ">_get_compile()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_get_compile(string <span class="argument">$type</span>, string <span class="argument">$table</span>, bool <span class="argument">$reset</span>) : string</pre>
<p><em>Helper function for returning sql strings</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$type</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>bool</td>
<td>$reset</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__like" name="method__like" class="anchor"></a>
<article class="method">
<h3 class="protected ">_like()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_like(string <span class="argument">$field</span>, mixed <span class="argument">$val</span>, string <span class="argument">$pos</span>, string <span class="argument">$like</span>, string <span class="argument">$conj</span>) : \Query\Query_Builder</pre>
<p><em>Simplify &#039;like&#039; methods</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$field</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$pos</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$like</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$conj</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__having" name="method__having" class="anchor"></a>
<article class="method">
<h3 class="protected ">_having()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_having(mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>, string <span class="argument">$conj</span>) : \Query\Query_Builder</pre>
<p><em>Simplify building having clauses</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$conj</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__where" name="method__where" class="anchor"></a>
<article class="method">
<h3 class="protected ">_where()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_where(mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>) : array</pre>
<p><em>Do all the repeditive stuff for where/having type methods</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
array
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__where_string" name="method__where_string" class="anchor"></a>
<article class="method">
<h3 class="protected ">_where_string()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_where_string(mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>, string <span class="argument">$defaultConj</span>) : \Query\Query_Builder</pre>
<p><em>Simplify generating where string</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$defaultConj</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__where_in" name="method__where_in" class="anchor"></a>
<article class="method">
<h3 class="protected ">_where_in()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_where_in(mixed <span class="argument">$key</span>, mixed <span class="argument">$val</span>, string <span class="argument">$in</span>, string <span class="argument">$conj</span>) : \Query\Query_Builder</pre>
<p><em>Simplify where_in methods</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>mixed</td>
<td>$key</td>
<td></td>
</tr>
<tr>
<td>mixed</td>
<td>$val</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$in</td>
<td><ul>
<li>The (not) in fragment</li>
</ul></td>
</tr>
<tr>
<td>string</td>
<td>$conj</td>
<td><ul>
<li>The where in conjunction</li>
</ul></td>
</tr>
</table>
<h4>Returns</h4>
<a href="../classes/Query.Query_Builder.html">\Query\Query_Builder</a>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__run" name="method__run" class="anchor"></a>
<article class="method">
<h3 class="protected ">_run()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_run(string <span class="argument">$type</span>, string <span class="argument">$table</span>, string <span class="argument">$sql</span>, array|null <span class="argument">$vals</span>) : \PDOStatement</pre>
<p><em>Executes the compiled query</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$type</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$sql</td>
<td></td>
</tr>
<tr>
<td>array|null</td>
<td>$vals</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
\PDOStatement
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__append_map" name="method__append_map" class="anchor"></a>
<article class="method">
<h3 class="protected ">_append_map()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_append_map(string <span class="argument">$conjunction</span>, string <span class="argument">$string</span>, string <span class="argument">$type</span>) : void</pre>
<p><em>Add an additional set of mapping pairs to a internal map</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$conjunction</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$string</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$type</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__append_query" name="method__append_query" class="anchor"></a>
<article class="method">
<h3 class="protected ">_append_query()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_append_query(array <span class="argument">$vals</span>, string <span class="argument">$sql</span>, string <span class="argument">$total_time</span>) : void</pre>
<p><em>Convert the prepared statement into readable sql</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>array</td>
<td>$vals</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$sql</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$total_time</td>
<td></td>
</tr>
</table>
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__compile_type" name="method__compile_type" class="anchor"></a>
<article class="method">
<h3 class="protected ">_compile_type()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_compile_type(string <span class="argument">$type</span>, string <span class="argument">$table</span>) : string</pre>
<p><em>Sub-method for generating sql strings</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$type</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
<div class="row-fluid">
<div class="span8 content class">
<a id="method__compile" name="method__compile" class="anchor"></a>
<article class="method">
<h3 class="protected ">_compile()</h3>
<a href="#source-view" role="button" class="pull-right btn" data-toggle="modal" style="font-size: 1.1em; padding: 9px 14px"><i class="icon-code"></i></a>
<pre class="signature" style="margin-right: 54px;">_compile(string <span class="argument">$type</span>, string <span class="argument">$table</span>) : \Query\$string</pre>
<p><em>String together the sql statements for sending to the db</em></p>
<h4>Parameters</h4>
<table class="table table-condensed table-hover">
<tr>
<td>string</td>
<td>$type</td>
<td></td>
</tr>
<tr>
<td>string</td>
<td>$table</td>
<td></td>
</tr>
</table>
<h4>Returns</h4>
\Query\$string
</article>
</div>
<aside class="span4 detailsbar">
<h1><i class="icon-arrow-down"></i></h1>
<dl>
<dt>Inherited from</dt>
<dd><a href="../classes/Query.Abstract_Query_Builder.html"><div class="path-wrapper">\Query\Abstract_Query_Builder</div></a></dd>
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
<tr>
<th>
todo
</th>
<td>
</td>
</tr>
</table>
</aside>
</div>
</div>
</section>
<div id="source-view" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="source-view-label" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="source-view-label">Query_Builder.php</h3>
</div>
<div class="modal-body">
<pre data-src="../files/Query/Query_Builder.php.txt" class="language-php line-numbers"></pre>
</div>
</div>
<footer class="row-fluid">
<section class="span10 offset2">
<section class="row-fluid">
<section class="span10 offset1">
<section class="row-fluid footer-sections">
<section class="span4">
<h1><i class="icon-code"></i></h1>
<div>
<ul>
<li><a href="../namespaces/Query.html">\Query</a></li>
</ul>
</div>
</section>
<section class="span4">
<h1><i class="icon-bar-chart"></i></h1>
<div>
<ul>
<li><a href="../graphs/class.html">Class Hierarchy Diagram</a></li>
</ul>
</div>
</section>
<section class="span4">
<h1><i class="icon-pushpin"></i></h1>
<div>
<ul>
<li><a href="../reports/errors.html">Errors</a></li>
<li><a href="../reports/markers.html">Markers</a></li>
</ul>
</div>
</section>
</section>
</section>
</section>
<section class="row-fluid">
<section class="span10 offset1">
<hr />
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and authored
on July 17th, 2015 at 15:55.
</section>
</section>
</section>
</footer>
</div>
</body>
</html>