350 lines
16 KiB
HTML
350 lines
16 KiB
HTML
|
<!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|||
|
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
|||
|
<meta charset="utf-8">
|
|||
|
<title>Query » \Query_Builder_Base</title>
|
|||
|
<meta name="author" content="Mike van Riel">
|
|||
|
<meta name="description" content="">
|
|||
|
<link href="../css/template.css" rel="stylesheet" media="all">
|
|||
|
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
|
|||
|
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
|
|||
|
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
|
|||
|
<link rel="apple-touch-icon" sizes="114x114" href="../img/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"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Query</a><div class="nav-collapse"><ul class="nav">
|
|||
|
<li class="dropdown">
|
|||
|
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
|||
|
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
|||
|
<li><a>Packages</a></li>
|
|||
|
<li><a href="../packages/Default.html"><i class="icon-folder-open"></i> Default</a></li>
|
|||
|
<li><a href="../packages/Query.html"><i class="icon-folder-open"></i> Query</a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
<li class="dropdown" id="charts-menu">
|
|||
|
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
|||
|
Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
|
|||
|
</li>
|
|||
|
<li class="dropdown" id="reports-menu">
|
|||
|
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
|
|||
|
Reports <b class="caret"></b></a><ul class="dropdown-menu">
|
|||
|
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors
|
|||
|
<span class="label label-info">23</span></a></li>
|
|||
|
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers
|
|||
|
<ul><li>todo
|
|||
|
<span class="label label-info">4</span>
|
|||
|
</li></ul></a></li>
|
|||
|
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements
|
|||
|
<span class="label label-info">0</span></a></li>
|
|||
|
</ul>
|
|||
|
</li>
|
|||
|
</ul></div>
|
|||
|
</div></div>
|
|||
|
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top <i class="icon-upload icon-white"></i></a></div>
|
|||
|
</div>
|
|||
|
<div id="___" class="container">
|
|||
|
<noscript><div class="alert alert-warning">
|
|||
|
Javascript is disabled; several features are only available
|
|||
|
if Javascript is enabled.
|
|||
|
</div></noscript>
|
|||
|
<div class="row">
|
|||
|
<div class="span4">
|
|||
|
<span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
|
|||
|
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
|
|||
|
</div>
|
|||
|
<ul class="side-nav nav nav-list">
|
|||
|
<li class="nav-header">
|
|||
|
<i class="icon-custom icon-method"></i> Methods</li>
|
|||
|
<li class="method public "><a href="#__call" title="__call :: Calls a function further down the inheritence chain"><span class="description">Calls a function further down the inheritence chain</span><pre>__call()</pre></a></li>
|
|||
|
<li class="method public "><a href="#__construct" title="__construct :: Empty base constructor"><span class="description">Empty base constructor</span><pre>__construct()</pre></a></li>
|
|||
|
<li class="nav-header protected">» Protected</li>
|
|||
|
<li class="method protected "><a href="#_compile" title="_compile :: String together the sql statements for sending to the db"><span class="description">String together the sql statements for sending to the db</span><pre>_compile()</pre></a></li>
|
|||
|
<li class="method protected "><a href="#_get_compile" title="_get_compile :: Helper function for returning sql strings"><span class="description">Helper function for returning sql strings</span><pre>_get_compile()</pre></a></li>
|
|||
|
<li class="method protected "><a href="#_having" title="_having :: Simplify building having clauses"><span class="description">Simplify building having clauses</span><pre>_having()</pre></a></li>
|
|||
|
<li class="method protected "><a href="#_like" title="_like :: Simplify 'like' methods"><span class="description">Simplify 'like' methods</span><pre>_like()</pre></a></li>
|
|||
|
<li class="method protected "><a href="#_run" title="_run :: Executes the compiled query"><span class="description">Executes the compiled query</span><pre>_run()</pre></a></li>
|
|||
|
<li class="method protected "><a href="#_select" title="_select :: Method to simplify select_ methods"><span class="description">Method to simplify select_ methods</span><pre>_select()</pre></a></li>
|
|||
|
<li class="method protected "><a href="#_where" title="_where :: Do all the repeditive stuff for where/having type methods"><span class="description">Do all the repeditive stuff for where/having type methods</span><pre>_where()</pre></a></li>
|
|||
|
<li class="method protected "><a href="#_where_in" title="_where_in :: Simplify where_in methods"><span class="description">Simplify where_in methods</span><pre>_where_in()</pre></a></li>
|
|||
|
<li class="method protected "><a href="#_where_string" title="_where_string :: Simplify generating where string"><span class="description">Simplify generating where string</span><pre>_where_string()</pre></a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="span8">
|
|||
|
<a name="%5CQuery_Builder_Base" id="\Query_Builder_Base"></a><div href="../classes/Query_Builder_Base.html" class="element class">
|
|||
|
<p class="short_description">Base class for Query Bulder - Encapsulates protected methods</p>
|
|||
|
<div class="details">
|
|||
|
<p class="long_description"></p>
|
|||
|
<table class="table table-bordered">
|
|||
|
<tr>
|
|||
|
<th>package</th>
|
|||
|
<td><a href="..//packages/Query.Query.html">Query</a></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<th>subpackage</th>
|
|||
|
<td>Query</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
<h3>
|
|||
|
<i class="icon-custom icon-method"></i> Methods</h3>
|
|||
|
<a name="__call" id="__call"></a><div class="element clickable method public __call" data-toggle="collapse" data-target=".__call .collapse">
|
|||
|
<h2>Calls a function further down the inheritence chain</h2>
|
|||
|
<pre>__call(string $name, array $params) : mixed</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$name</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$params</h4>
|
|||
|
<code>array</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>mixed</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="__construct" id="__construct"></a><div class="element clickable method public __construct" data-toggle="collapse" data-target=".__construct .collapse">
|
|||
|
<h2>Empty base constructor</h2>
|
|||
|
<pre>__construct() </pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
|
|||
|
</div>
|
|||
|
<a name="_compile" id="_compile"></a><div class="element clickable method protected _compile" data-toggle="collapse" data-target="._compile .collapse">
|
|||
|
<h2>String together the sql statements for sending to the db</h2>
|
|||
|
<pre>_compile(string $type, string $table) : \$string</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$type</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$table</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>\$string</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="_get_compile" id="_get_compile"></a><div class="element clickable method protected _get_compile" data-toggle="collapse" data-target="._get_compile .collapse">
|
|||
|
<h2>Helper function for returning sql strings</h2>
|
|||
|
<pre>_get_compile(string $type, string $table, $reset) </pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<table class="table table-bordered"><tr>
|
|||
|
<th>resturn</th>
|
|||
|
<td>string</td>
|
|||
|
</tr></table>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$type</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$table</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$reset</h4>
|
|||
|
<code></code><p>bool</p></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="_having" id="_having"></a><div class="element clickable method protected _having" data-toggle="collapse" data-target="._having .collapse">
|
|||
|
<h2>Simplify building having clauses</h2>
|
|||
|
<pre>_having(mixed $key, mixed $val, string $conj) : <a href="../classes/Query_Builder_Base.html">\Query_Builder_Base</a></pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<table class="table table-bordered"><tr>
|
|||
|
<th>fluent</th>
|
|||
|
<td>This method is part of a fluent interface and will return the same instance</td>
|
|||
|
</tr></table>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$key</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$val</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$conj</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code><a href="../classes/Query_Builder_Base.html">\Query_Builder_Base</a></code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="_like" id="_like"></a><div class="element clickable method protected _like" data-toggle="collapse" data-target="._like .collapse">
|
|||
|
<h2>Simplify 'like' methods</h2>
|
|||
|
<pre>_like(string $field, mixed $val, string $pos, string $like, string $conj) : <a href="../classes/Query_Builder_Base.html">\Query_Builder_Base</a></pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<table class="table table-bordered"><tr>
|
|||
|
<th>fluent</th>
|
|||
|
<td>This method is part of a fluent interface and will return the same instance</td>
|
|||
|
</tr></table>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$field</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$val</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$pos</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$like</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$conj</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code><a href="../classes/Query_Builder_Base.html">\Query_Builder_Base</a></code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="_run" id="_run"></a><div class="element clickable method protected _run" data-toggle="collapse" data-target="._run .collapse">
|
|||
|
<h2>Executes the compiled query</h2>
|
|||
|
<pre>_run(string $type, string $table, bool $simple) : mixed</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$type</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$table</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$simple</h4>
|
|||
|
<code>bool</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>mixed</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="_select" id="_select"></a><div class="element clickable method protected _select" data-toggle="collapse" data-target="._select .collapse">
|
|||
|
<h2>Method to simplify select_ methods</h2>
|
|||
|
<pre>_select(string $field, string $as) : string</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$field</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$as</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>string</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="_where" id="_where"></a><div class="element clickable method protected _where" data-toggle="collapse" data-target="._where .collapse">
|
|||
|
<h2>Do all the repeditive stuff for where/having type methods</h2>
|
|||
|
<pre>_where(mixed $key, mixed $val) : array</pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$key</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$val</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code>array</code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="_where_in" id="_where_in"></a><div class="element clickable method protected _where_in" data-toggle="collapse" data-target="._where_in .collapse">
|
|||
|
<h2>Simplify where_in methods</h2>
|
|||
|
<pre>_where_in(mixed $key, mixed $val, $in, $conj) : <a href="../classes/Query_Builder_Base.html">\Query_Builder_Base</a></pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<table class="table table-bordered"><tr>
|
|||
|
<th>fluent</th>
|
|||
|
<td>This method is part of a fluent interface and will return the same instance</td>
|
|||
|
</tr></table>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$key</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$val</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$in</h4>
|
|||
|
<code></code><p>string</p></div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$conj</h4>
|
|||
|
<code></code><p>string</p></div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code><a href="../classes/Query_Builder_Base.html">\Query_Builder_Base</a></code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
<a name="_where_string" id="_where_string"></a><div class="element clickable method protected _where_string" data-toggle="collapse" data-target="._where_string .collapse">
|
|||
|
<h2>Simplify generating where string</h2>
|
|||
|
<pre>_where_string(mixed $key, mixed $val, string $conj) : <a href="../classes/Query_Builder_Base.html">\Query_Builder_Base</a></pre>
|
|||
|
<div class="labels"></div>
|
|||
|
<div class="row collapse"><div class="span8">
|
|||
|
<p class="long_description"></p>
|
|||
|
<table class="table table-bordered"><tr>
|
|||
|
<th>fluent</th>
|
|||
|
<td>This method is part of a fluent interface and will return the same instance</td>
|
|||
|
</tr></table>
|
|||
|
<h3>Parameters</h3>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$key</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$val</h4>
|
|||
|
<code>mixed</code>
|
|||
|
</div>
|
|||
|
<div class="subelement argument">
|
|||
|
<h4>$conj</h4>
|
|||
|
<code>string</code>
|
|||
|
</div>
|
|||
|
<h3>Returns</h3>
|
|||
|
<div class="subelement response"><code><a href="../classes/Query_Builder_Base.html">\Query_Builder_Base</a></code></div>
|
|||
|
</div></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="row"><footer class="span12">
|
|||
|
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
|||
|
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
|
|||
|
generated on 2012-11-09T15:10:09-05:00.<br></footer></div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|