2018-01-24 15:31:27 -05:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<!DOCTYPE html SYSTEM "about:legacy-compat">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<title>phpDox - Query\QueryBuilder</title>
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../css/style.css" media="screen"/>
|
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<nav class="topnav">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<div class="logo"><span>/**</span>phpDox</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="separator">
|
|
|
|
|
<a href="../index.html">Overview</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="separator">
|
|
|
|
|
<a href="../namespaces.html">Namespaces</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="../interfaces.html">Interfaces</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="../classes.html">Classes</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="separator">
|
|
|
|
|
<a href="../source/index.html">Source</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
<div id="mainstage">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<ul class="breadcrumb">
|
|
|
|
|
<li>
|
|
|
|
|
<a href="../index.html">Overview</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="separator">
|
|
|
|
|
<a href="../classes.html">Classes</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="separator">
|
|
|
|
|
<a href="../classes.html#Query">Query</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="separator">QueryBuilder</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<nav class="box">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#introduction">Introduction</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#synopsis">Synopsis</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#hierarchy">Hierarchy</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:31:18 -05:00
|
|
|
|
<a href="#tasks">Tasks</a>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#members">Members</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#methods">Methods</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="#history">History</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:31:18 -05:00
|
|
|
|
<a href="../source/QueryBuilder.php.html#line62">Source</a>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
|
|
|
|
<section>
|
|
|
|
|
<h1 id="introduction"><small>Query\</small>QueryBuilder</h1>
|
|
|
|
|
<h4>Convenience class for creating sql queries</h4>
|
|
|
|
|
<p/>
|
|
|
|
|
<ul/>
|
|
|
|
|
<h2 id="synopsis">Synopsis</h2>
|
|
|
|
|
<div class="synopsis">class QueryBuilder
|
|
|
|
|
implements
|
|
|
|
|
<a title="Query\QueryBuilderInterface" href="../interfaces/Query_QueryBuilderInterface.html">QueryBuilderInterface</a>
|
|
|
|
|
{<br/><ul class="none"><li>// members</li><li>public string <a href="#members">$connName</a> =
|
|
|
|
|
'';
|
|
|
|
|
</li><li>public array <a href="#members">$queries</a> =
|
|
|
|
|
;
|
|
|
|
|
</li></ul><ul class="none"><li>// methods</li><li>public void <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/__construct.html">__construct</a>()
|
|
|
|
|
</li><li>public void <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/__destruct.html">__destruct</a>()
|
|
|
|
|
</li><li>public mixed <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/__call.html">__call</a>()
|
2019-12-11 16:31:18 -05:00
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/select.html">select</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/selectMax.html">selectMax</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/selectMin.html">selectMin</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/selectAvg.html">selectAvg</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/selectSum.html">selectSum</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/returning.html">returning</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/distinct.html">distinct</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/explain.html">explain</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/from.html">from</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/like.html">like</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orLike.html">orLike</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/notLike.html">notLike</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orNotLike.html">orNotLike</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/having.html">having</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orHaving.html">orHaving</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/where.html">where</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orWhere.html">orWhere</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/whereIn.html">whereIn</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orWhereIn.html">orWhereIn</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/whereNotIn.html">whereNotIn</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orWhereNotIn.html">orWhereNotIn</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/set.html">set</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/join.html">join</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/groupBy.html">groupBy</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orderBy.html">orderBy</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/limit.html">limit</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/groupStart.html">groupStart</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/notGroupStart.html">notGroupStart</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orGroupStart.html">orGroupStart</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orNotGroupStart.html">orNotGroupStart</a>()
|
|
|
|
|
</li><li>public <span title="QueryBuilderInterface">QueryBuilderInterface</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/groupEnd.html">groupEnd</a>()
|
2018-01-26 16:27:34 -05:00
|
|
|
|
</li><li>public <span title="PDOStatement">PDOStatement</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/get.html">get</a>()
|
|
|
|
|
</li><li>public <span title="PDOStatement">PDOStatement</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getWhere.html">getWhere</a>()
|
2018-01-24 15:31:27 -05:00
|
|
|
|
</li><li>public int <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/countAll.html">countAll</a>()
|
|
|
|
|
</li><li>public int <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/countAllResults.html">countAllResults</a>()
|
2018-01-26 16:27:34 -05:00
|
|
|
|
</li><li>public <span title="PDOStatement">PDOStatement</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/insert.html">insert</a>()
|
|
|
|
|
</li><li>public <span title="PDOStatement">PDOStatement</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/insertBatch.html">insertBatch</a>()
|
2018-01-24 15:31:27 -05:00
|
|
|
|
</li><li>public <span title="PDOStatement">PDOStatement</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/update.html">update</a>()
|
2018-01-26 09:16:13 -05:00
|
|
|
|
</li><li>public ?int <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/updateBatch.html">updateBatch</a>()
|
2018-01-26 16:27:34 -05:00
|
|
|
|
</li><li>public <span title="PDOStatement">PDOStatement</span> <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/delete.html">delete</a>()
|
2018-01-24 15:31:27 -05:00
|
|
|
|
</li><li>public string <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getCompiledSelect.html">getCompiledSelect</a>()
|
|
|
|
|
</li><li>public string <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getCompiledInsert.html">getCompiledInsert</a>()
|
|
|
|
|
</li><li>public string <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getCompiledUpdate.html">getCompiledUpdate</a>()
|
|
|
|
|
</li><li>public string <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getCompiledDelete.html">getCompiledDelete</a>()
|
|
|
|
|
</li><li>public void <a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/resetQuery.html">resetQuery</a>()
|
|
|
|
|
</li></ul>
|
|
|
|
|
|
|
|
|
|
}<br/></div>
|
|
|
|
|
<h2 id="hierarchy">Hierarchy</h2>
|
|
|
|
|
<div class="styled">
|
|
|
|
|
<h4>Implements</h4>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<a title="Query\QueryBuilderInterface" href="../interfaces/Query_QueryBuilderInterface.html">Query\QueryBuilderInterface</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2019-12-11 16:31:18 -05:00
|
|
|
|
<h2 id="tasks">Tasks</h2>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<table class="styled">
|
2019-12-11 16:31:18 -05:00
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th style="width:3em;">Line</th>
|
|
|
|
|
<th>Task</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<tr>
|
2019-12-11 16:31:18 -05:00
|
|
|
|
<td class="nummeric">256+</td>
|
|
|
|
|
<td>implement</td>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<h2 id="members">Members</h2>
|
|
|
|
|
<div class="styled members">
|
|
|
|
|
<h4>public</h4>
|
|
|
|
|
<ul class="members">
|
|
|
|
|
<li id="connName"><strong>$connName</strong>
|
|
|
|
|
—
|
|
|
|
|
string<br/><span class="indent">Convenience property for connection management</span></li>
|
|
|
|
|
<li id="queries"><strong>$queries</strong>
|
|
|
|
|
—
|
|
|
|
|
array<br/><span class="indent">List of queries executed</span></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<h2 id="methods">Methods</h2>
|
|
|
|
|
<div class="styled">
|
|
|
|
|
<h4>public</h4>
|
|
|
|
|
<ul>
|
|
|
|
|
<li id="__construct"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/__construct.html">__construct()</a>
|
|
|
|
|
— Constructor</li>
|
|
|
|
|
<li id="__destruct"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/__destruct.html">__destruct()</a>
|
|
|
|
|
— Destructor</li>
|
|
|
|
|
<li id="__call"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/__call.html">__call()</a>
|
2019-12-11 16:31:18 -05:00
|
|
|
|
— Calls a function further down the inheritance chain.</li>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<li id="countAll"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/countAll.html">countAll()</a>
|
|
|
|
|
— Retrieve the number of rows in the selected table</li>
|
|
|
|
|
<li id="countAllResults"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/countAllResults.html">countAllResults()</a>
|
|
|
|
|
— Retrieve the number of results for the generated query - used in place of the get() method</li>
|
|
|
|
|
<li id="delete"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/delete.html">delete()</a>
|
|
|
|
|
— Deletes data from a table</li>
|
|
|
|
|
<li id="distinct"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/distinct.html">distinct()</a>
|
|
|
|
|
— Adds the 'distinct' keyword to a query</li>
|
|
|
|
|
<li id="explain"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/explain.html">explain()</a>
|
|
|
|
|
— Tell the database to give you the query plan instead of result set</li>
|
|
|
|
|
<li id="from"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/from.html">from()</a>
|
|
|
|
|
— Specify the database table to select from</li>
|
|
|
|
|
<li id="get"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/get.html">get()</a>
|
|
|
|
|
— Select and retrieve all records from the current table, and/or execute current compiled query</li>
|
|
|
|
|
<li id="getCompiledDelete"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getCompiledDelete.html">getCompiledDelete()</a>
|
|
|
|
|
— Returns the generated 'delete' sql query</li>
|
|
|
|
|
<li id="getCompiledInsert"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getCompiledInsert.html">getCompiledInsert()</a>
|
|
|
|
|
— Returns the generated 'insert' sql query</li>
|
|
|
|
|
<li id="getCompiledSelect"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getCompiledSelect.html">getCompiledSelect()</a>
|
|
|
|
|
— Returns the generated 'select' sql query</li>
|
|
|
|
|
<li id="getCompiledUpdate"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getCompiledUpdate.html">getCompiledUpdate()</a>
|
|
|
|
|
— Returns the generated 'update' sql query</li>
|
|
|
|
|
<li id="getWhere"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/getWhere.html">getWhere()</a>
|
|
|
|
|
— Convenience method for get() with a where clause</li>
|
|
|
|
|
<li id="groupBy"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/groupBy.html">groupBy()</a>
|
|
|
|
|
— Group the results by the selected field(s)</li>
|
|
|
|
|
<li id="groupEnd"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/groupEnd.html">groupEnd()</a>
|
|
|
|
|
— Ends a query group</li>
|
|
|
|
|
<li id="groupStart"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/groupStart.html">groupStart()</a>
|
|
|
|
|
— Adds a paren to the current query for query grouping</li>
|
|
|
|
|
<li id="having"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/having.html">having()</a>
|
|
|
|
|
— Generates a 'Having' clause</li>
|
|
|
|
|
<li id="insert"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/insert.html">insert()</a>
|
|
|
|
|
— Creates an insert clause, and executes it</li>
|
|
|
|
|
<li id="insertBatch"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/insertBatch.html">insertBatch()</a>
|
|
|
|
|
— Creates and executes a batch insertion query</li>
|
|
|
|
|
<li id="join"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/join.html">join()</a>
|
|
|
|
|
— Creates a join phrase in a compiled query</li>
|
|
|
|
|
<li id="like"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/like.html">like()</a>
|
|
|
|
|
— Creates a Like clause in the sql statement</li>
|
|
|
|
|
<li id="limit"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/limit.html">limit()</a>
|
|
|
|
|
— Set a limit on the current sql statement</li>
|
|
|
|
|
<li id="notGroupStart"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/notGroupStart.html">notGroupStart()</a>
|
|
|
|
|
— Adds a paren to the current query for query grouping, prefixed with 'NOT'</li>
|
|
|
|
|
<li id="notLike"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/notLike.html">notLike()</a>
|
|
|
|
|
— Generates a NOT LIKE clause</li>
|
|
|
|
|
<li id="orGroupStart"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orGroupStart.html">orGroupStart()</a>
|
|
|
|
|
— Adds a paren to the current query for query grouping, prefixed with 'OR'</li>
|
|
|
|
|
<li id="orHaving"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orHaving.html">orHaving()</a>
|
|
|
|
|
— Generates a 'Having' clause prefixed with 'OR'</li>
|
|
|
|
|
<li id="orLike"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orLike.html">orLike()</a>
|
|
|
|
|
— Generates an OR Like clause</li>
|
|
|
|
|
<li id="orNotGroupStart"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orNotGroupStart.html">orNotGroupStart()</a>
|
|
|
|
|
— Adds a paren to the current query for query grouping, prefixed with 'OR NOT'</li>
|
|
|
|
|
<li id="orNotLike"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orNotLike.html">orNotLike()</a>
|
|
|
|
|
— Generates a OR NOT LIKE clause</li>
|
|
|
|
|
<li id="orWhere"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orWhere.html">orWhere()</a>
|
|
|
|
|
— Where clause prefixed with "OR"</li>
|
|
|
|
|
<li id="orWhereIn"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orWhereIn.html">orWhereIn()</a>
|
|
|
|
|
— Where in statement prefixed with "or"</li>
|
|
|
|
|
<li id="orWhereNotIn"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orWhereNotIn.html">orWhereNotIn()</a>
|
|
|
|
|
— OR WHERE NOT IN (FOO) clause</li>
|
|
|
|
|
<li id="orderBy"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/orderBy.html">orderBy()</a>
|
|
|
|
|
— Order the results by the selected field(s)</li>
|
|
|
|
|
<li id="resetQuery"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/resetQuery.html">resetQuery()</a>
|
|
|
|
|
— Clear out the class variables, so the next query can be run</li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<li id="returning">
|
|
|
|
|
<a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/returning.html">returning()</a>
|
|
|
|
|
</li>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<li id="select"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/select.html">select()</a>
|
|
|
|
|
— Specifies rows to select in a query</li>
|
|
|
|
|
<li id="selectAvg"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/selectAvg.html">selectAvg()</a>
|
|
|
|
|
— Selects the average value of a field from a query</li>
|
|
|
|
|
<li id="selectMax"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/selectMax.html">selectMax()</a>
|
|
|
|
|
— Selects the maximum value of a field from a query</li>
|
|
|
|
|
<li id="selectMin"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/selectMin.html">selectMin()</a>
|
|
|
|
|
— Selects the minimum value of a field from a query</li>
|
|
|
|
|
<li id="selectSum"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/selectSum.html">selectSum()</a>
|
|
|
|
|
— Selects the sum of a field from a query</li>
|
|
|
|
|
<li id="set"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/set.html">set()</a>
|
|
|
|
|
— Sets values for inserts / updates / deletes</li>
|
|
|
|
|
<li id="update"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/update.html">update()</a>
|
|
|
|
|
— Creates an update clause, and executes it</li>
|
|
|
|
|
<li id="updateBatch"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/updateBatch.html">updateBatch()</a>
|
|
|
|
|
— Creates a batch update, and executes it.</li>
|
|
|
|
|
<li id="where"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/where.html">where()</a>
|
|
|
|
|
— Specify condition(s) in the where clause of a query Note: this function works with key / value, or a passed array with key / value pairs</li>
|
|
|
|
|
<li id="whereIn"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/whereIn.html">whereIn()</a>
|
|
|
|
|
— Where clause with 'IN' statement</li>
|
|
|
|
|
<li id="whereNotIn"><a title="Query\QueryBuilder" href="../classes/Query_QueryBuilder/whereNotIn.html">whereNotIn()</a>
|
|
|
|
|
— WHERE NOT IN (FOO) clause</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<h2 id="history">History</h2>
|
|
|
|
|
<ul class="styled history">
|
2018-02-12 16:20:03 -05:00
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2019-12-10T12:17:40-05:00 (commit #<span title="6a36a85ac078694c1dff255815b8ae04e368fcaf">6a36a85</span>)</h3>
|
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Update dependencies and tests</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<h3>2018-02-12T16:17:22-05:00 (commit #<span title="09b6610eb131febc08899694de34105d4b9e4306">09b6610</span>)</h3>
|
2018-02-12 16:20:03 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Remove unimplemented replace method</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
2018-01-26 16:27:34 -05:00
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-26T15:45:46-05:00 (commit #<span title="33bb440bd28d77e903a58f24afc585706e2d0f56">33bb440</span>)</h3>
|
2018-01-26 16:27:34 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">SQLite improvements, remove nullable PDOStatement return values</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
2018-01-26 09:16:13 -05:00
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-26T08:39:30-05:00 (commit #<span title="3067976cb170a4c26d78b21167978bb6ab4fdb7e">3067976</span>)</h3>
|
2018-01-26 09:16:13 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Add updateBatch method</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-24T15:23:26-05:00 (commit #<span title="73e4c35163f3579f2dbaf2971ca707928f58f541">73e4c35</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Remove some old code coupling and boilerplate</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-24T15:03:41-05:00 (commit #<span title="f967aaf96ea1c4cc43e8bae85c465beb84424a1e">f967aaf</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Remove method separators, update documentation building configuration</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-24T13:25:42-05:00 (commit #<span title="16e50c3277e8d7284bccf4c9883af82d9fd83d16">16e50c3</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Fix some missed type hints</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-24T13:14:03-05:00 (commit #<span title="1d583bcc23524ad8840e4be580e549e8d6e549f4">1d583bc</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Add more type hinting</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-23T11:22:23-05:00 (commit #<span title="e4ca039b3d7b8ed82f662a183f02261df0fba416">e4ca039</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Use State class to simplify management of query builder state</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-22T16:04:29-05:00 (commit #<span title="8401cceb0daec6282b2c6cd20ef965592a322aa6">8401cce</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Remove PDOInterface to prevent conflicts in method parameters with native PDO object</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-22T15:43:56-05:00 (commit #<span title="91eb8123d151dde674aa5aec4efbd1dc09e0b490">91eb812</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Various refactoring</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-19T16:48:52-05:00 (commit #<span title="4df07b6c727a41ec8cca150f0697f504b69a1111">4df07b6</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Update test layout to better match source layout</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-19T15:47:34-05:00 (commit #<span title="369ca6eb0439091697ee9cbc34c83e9a4bdaace3">369ca6e</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Flatten source structure a bit</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2018-01-19T13:43:19-05:00 (commit #<span title="c735c27559da47b4d53867da59cd706e8048f4a0">c735c27</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">Update file headers</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2016-10-13T21:55:23-04:00 (commit #<span title="b8d4768b1bfe0f38d6b65f0d4acd982793c0e9ee">b8d4768</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">camelCase methods and properties</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<h3>2016-10-12T22:12:25-04:00 (commit #<span title="6740aaef79540842110b2f162d17a9373d2c30da">6740aae</span>)</h3>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
<div>
|
|
|
|
|
<p>
|
|
|
|
|
Author: Timothy J Warren (tim@timshomepage.net) /
|
|
|
|
|
Commiter: Timothy J Warren (tim@timshomepage.net)
|
|
|
|
|
</p>
|
|
|
|
|
<pre class="wrapped">PHP7 or bust!</pre>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</section>
|
|
|
|
|
</div>
|
|
|
|
|
<footer>
|
2019-12-11 16:09:58 -05:00
|
|
|
|
<span>Generated using phpDox 0.12.0-dev - Copyright (C) 2010 - 2019 by Arne Blankerts and Contributors</span>
|
2018-01-24 15:31:27 -05:00
|
|
|
|
</footer>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|