Remove insert batch, as it only works for MySQL and Postgres
This commit is contained in:
parent
c4ec46eae4
commit
4ee865ac6d
@ -399,17 +399,6 @@ interface iQuery_Builder {
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Creates a batch insert clause, and executes it
|
||||
*
|
||||
* @param string $table
|
||||
* @param mixed $data
|
||||
* @return mixed
|
||||
*/
|
||||
public function insert_batch($table, $data=array());
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Creates an update clause, and executes it
|
||||
*
|
||||
|
@ -1019,43 +1019,6 @@ class Query_Builder implements iQuery_Builder {
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Creates a batch insert clause and executes it
|
||||
*
|
||||
* @param string $table
|
||||
* @param mixed $data
|
||||
* @return mixed
|
||||
*/
|
||||
public function insert_batch($table, $data=array())
|
||||
{
|
||||
// Bail out on Firebird and ODBC
|
||||
$driver = str_replace('_sql', '', mb_strtolower(get_class($this->sql)));
|
||||
|
||||
if ($driver == 'firebird' || $driver == 'odbc')
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// Can't use normal set, because it doesn't handle multidimensional arrays
|
||||
foreach($data as $key => $arr)
|
||||
{
|
||||
$this->set_array_keys[$key] = array();
|
||||
|
||||
foreach($arr as $k => $v)
|
||||
{
|
||||
array_push($this->set_array_keys[$key], $k);
|
||||
$this->values[] = $v;
|
||||
}
|
||||
|
||||
// Escape the field names
|
||||
$this->set_array_keys[$key] = $this->db->quote_ident($this->set_array_keys[$key]);
|
||||
}
|
||||
|
||||
return $this->_run("insert_batch", $table);
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Creates an update clause, and executes it
|
||||
*
|
||||
@ -1325,25 +1288,6 @@ class Query_Builder implements iQuery_Builder {
|
||||
') VALUES ('.implode(',', $params).')';
|
||||
break;
|
||||
|
||||
case "insert_batch":
|
||||
$param_count = count($this->set_array_keys[0]);
|
||||
$params = array_fill(0, $param_count, '?');
|
||||
$sql = "INSERT INTO {$table} ("
|
||||
. implode(',', $this->set_array_keys[0])
|
||||
. ') VALUES ( '
|
||||
. implode(',', $params) . ')';
|
||||
|
||||
// Remove the first set from the array
|
||||
array_shift($this->set_array_keys);
|
||||
|
||||
// Add another set of placeholders for each batch group
|
||||
foreach($this->set_array_keys as $group)
|
||||
{
|
||||
$sql .= ',('.implode(',', $params).')';
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case "update":
|
||||
$sql = "UPDATE {$table} SET {$this->set_string}";
|
||||
break;
|
||||
|
@ -219,7 +219,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -219,7 +219,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -743,7 +743,7 @@ the connection/database</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -210,7 +210,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -925,7 +925,7 @@ the last query executed</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -505,7 +505,7 @@ the query</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -234,7 +234,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -213,7 +213,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -963,7 +963,7 @@ the connection/database</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -239,7 +239,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -209,7 +209,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -963,7 +963,7 @@ the connection/database</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -234,7 +234,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -204,7 +204,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -965,7 +965,7 @@ the connection/database</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -234,7 +234,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -209,7 +209,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -80,7 +80,6 @@ execute current compiled query</span><pre>get()</pre></a></li>
|
||||
<li class="method public "><a href="#group_start" title="group_start :: Adds a paren to the current query for query grouping"><span class="description">Adds a paren to the current query for query grouping</span><pre>group_start()</pre></a></li>
|
||||
<li class="method public "><a href="#having" title="having :: Generates a 'Having' clause"><span class="description">Generates a 'Having' clause</span><pre>having()</pre></a></li>
|
||||
<li class="method public "><a href="#insert" title="insert :: Creates an insert clause, and executes it"><span class="description">Creates an insert clause, and executes it</span><pre>insert()</pre></a></li>
|
||||
<li class="method public "><a href="#insert_batch" title="insert_batch :: Creates a batch insert clause and executes it"><span class="description">Creates a batch insert clause and executes it</span><pre>insert_batch()</pre></a></li>
|
||||
<li class="method public "><a href="#join" title="join :: Creates a join phrase in a compiled query"><span class="description">Creates a join phrase in a compiled query</span><pre>join()</pre></a></li>
|
||||
<li class="method public "><a href="#like" title="like :: Creates a Like clause in the sql statement"><span class="description">Creates a Like clause in the sql statement</span><pre>like()</pre></a></li>
|
||||
<li class="method public "><a href="#limit" title="limit :: Set a limit on the current sql statement"><span class="description">Set a limit on the current sql statement</span><pre>limit()</pre></a></li>
|
||||
@ -500,25 +499,6 @@ execute current compiled query</h2>
|
||||
<div class="subelement response"><code>mixed</code></div>
|
||||
</div></div>
|
||||
</div>
|
||||
<a name="insert_batch" id="insert_batch"></a><div class="element clickable method public insert_batch" data-toggle="collapse" data-target=".insert_batch .collapse">
|
||||
<h2>Creates a batch insert clause and executes it</h2>
|
||||
<pre>insert_batch(string $table, mixed $data) : 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>$table</h4>
|
||||
<code>string</code>
|
||||
</div>
|
||||
<div class="subelement argument">
|
||||
<h4>$data</h4>
|
||||
<code>mixed</code>
|
||||
</div>
|
||||
<h3>Returns</h3>
|
||||
<div class="subelement response"><code>mixed</code></div>
|
||||
</div></div>
|
||||
</div>
|
||||
<a name="join" id="join"></a><div class="element clickable method public join" data-toggle="collapse" data-target=".join .collapse">
|
||||
<h2>Creates a join phrase in a compiled query</h2>
|
||||
<pre>join(string $table, string $condition, string $type) : <a href="../classes/Query_Builder.html">\Query_Builder</a></pre>
|
||||
@ -1381,7 +1361,7 @@ passed array with key / value pairs</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -145,7 +145,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -980,7 +980,7 @@ method if the database does not support 'TRUNCATE';</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -234,7 +234,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -209,7 +209,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -244,7 +244,7 @@ specified table</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -78,7 +78,6 @@ execute current compiled query</span><pre>get()</pre></a></li>
|
||||
<li class="method public "><a href="#group_start" title="group_start :: Adds a paren to the current query for query grouping"><span class="description">Adds a paren to the current query for query grouping</span><pre>group_start()</pre></a></li>
|
||||
<li class="method public "><a href="#having" title="having :: Generates a 'Having' clause"><span class="description">Generates a 'Having' clause</span><pre>having()</pre></a></li>
|
||||
<li class="method public "><a href="#insert" title="insert :: Creates an insert clause, and executes it"><span class="description">Creates an insert clause, and executes it</span><pre>insert()</pre></a></li>
|
||||
<li class="method public "><a href="#insert_batch" title="insert_batch :: Creates a batch insert clause, and executes it"><span class="description">Creates a batch insert clause, and executes it</span><pre>insert_batch()</pre></a></li>
|
||||
<li class="method public "><a href="#join" title="join :: Creates a join phrase in a compiled query"><span class="description">Creates a join phrase in a compiled query</span><pre>join()</pre></a></li>
|
||||
<li class="method public "><a href="#like" title="like :: Creates a Like clause in the sql statement"><span class="description">Creates a Like clause in the sql statement</span><pre>like()</pre></a></li>
|
||||
<li class="method public "><a href="#limit" title="limit :: Set a limit on the current sql statement"><span class="description">Set a limit on the current sql statement</span><pre>limit()</pre></a></li>
|
||||
@ -429,25 +428,6 @@ execute current compiled query</h2>
|
||||
<div class="subelement response"><code>mixed</code></div>
|
||||
</div></div>
|
||||
</div>
|
||||
<a name="insert_batch" id="insert_batch"></a><div class="element clickable method public insert_batch" data-toggle="collapse" data-target=".insert_batch .collapse">
|
||||
<h2>Creates a batch insert clause, and executes it</h2>
|
||||
<pre>insert_batch(string $table, mixed $data) : 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>$table</h4>
|
||||
<code>string</code>
|
||||
</div>
|
||||
<div class="subelement argument">
|
||||
<h4>$data</h4>
|
||||
<code>mixed</code>
|
||||
</div>
|
||||
<h3>Returns</h3>
|
||||
<div class="subelement response"><code>mixed</code></div>
|
||||
</div></div>
|
||||
</div>
|
||||
<a name="join" id="join"></a><div class="element clickable method public join" data-toggle="collapse" data-target=".join .collapse">
|
||||
<h2>Creates a join phrase in a compiled query</h2>
|
||||
<pre>join(string $table, string $condition, string $type) : <a href="../classes/iQuery_Builder.html">\iQuery_Builder</a></pre>
|
||||
@ -984,7 +964,7 @@ passed array with key / value pairs</h2>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -68,7 +68,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -237,7 +237,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -65,7 +65,7 @@
|
||||
</script><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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -110,7 +110,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -340,7 +340,7 @@ instantiates the specific db driver</p>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -68,7 +68,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -95,7 +95,7 @@
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -212,7 +212,7 @@ data-fetching methods</p>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -150,7 +150,7 @@ instantiates the specific db driver</p>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -362,7 +362,7 @@ instantiates the specific db driver</p>
|
||||
<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 2013-05-01T15:58:51-04:00.<br></footer></div>
|
||||
generated on 2013-05-02T12:51:15-04:00.<br></footer></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -579,7 +579,7 @@ the connection/database]]></description>
|
||||
</method>
|
||||
</class>
|
||||
</file>
|
||||
<file path="classes/query_builder.php" hash="54f0c85656718f0a13747c3a2b1a211b" package="Query">
|
||||
<file path="classes/query_builder.php" hash="c6d0516df04257774de596c04dd26627" package="Query">
|
||||
<docblock line="2">
|
||||
<description><![CDATA[Query]]></description>
|
||||
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
|
||||
@ -1766,10 +1766,10 @@ in place of the get() method]]></description>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1029" package="">
|
||||
<name>insert_batch</name>
|
||||
<name>update</name>
|
||||
<type>function</type>
|
||||
<docblock line="1022">
|
||||
<description><![CDATA[Creates a batch insert clause and executes it]]></description>
|
||||
<description><![CDATA[Creates an update clause, and executes it]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1022" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
@ -1792,294 +1792,267 @@ in place of the get() method]]></description>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1064" package="">
|
||||
<name>update</name>
|
||||
<type>function</type>
|
||||
<docblock line="1057">
|
||||
<description><![CDATA[Creates an update clause, and executes it]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1057" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1057" name="param" description="" type="mixed" variable="$data">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
<tag line="1057" name="return" description="" type="mixed">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1064">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1064">
|
||||
<name>$data</name>
|
||||
<default><![CDATA[array()]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1084" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1049" package="">
|
||||
<name>delete</name>
|
||||
<type>function</type>
|
||||
<docblock line="1077">
|
||||
<docblock line="1042">
|
||||
<description><![CDATA[Deletes data from a table]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1077" name="param" description="" type="string" variable="$table">
|
||||
<tag line="1042" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1077" name="param" description="" type="mixed" variable="$where">
|
||||
<tag line="1042" name="param" description="" type="mixed" variable="$where">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
<tag line="1077" name="return" description="" type="mixed">
|
||||
<tag line="1042" name="return" description="" type="mixed">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1084">
|
||||
<argument line="1049">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1084">
|
||||
<argument line="1049">
|
||||
<name>$where</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1106" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1071" package="">
|
||||
<name>get_compiled_select</name>
|
||||
<type>function</type>
|
||||
<docblock line="1099">
|
||||
<docblock line="1064">
|
||||
<description><![CDATA[Returns the generated 'select' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1099" name="param" description="" type="string" variable="$table">
|
||||
<tag line="1064" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1099" name="param" description="" type="bool" variable="$reset">
|
||||
<tag line="1064" name="param" description="" type="bool" variable="$reset">
|
||||
<type by_reference="false">bool</type>
|
||||
</tag>
|
||||
<tag line="1099" name="return" description="" type="string">
|
||||
<tag line="1064" name="return" description="" type="string">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1106">
|
||||
<argument line="1071">
|
||||
<name>$table</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1106">
|
||||
<argument line="1071">
|
||||
<name>$reset</name>
|
||||
<default><![CDATA[TRUE]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1126" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1091" package="">
|
||||
<name>get_compiled_insert</name>
|
||||
<type>function</type>
|
||||
<docblock line="1119">
|
||||
<docblock line="1084">
|
||||
<description><![CDATA[Returns the generated 'insert' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1119" name="param" description="" type="string" variable="$table">
|
||||
<tag line="1084" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1119" name="param" description="" type="bool" variable="$reset">
|
||||
<tag line="1084" name="param" description="" type="bool" variable="$reset">
|
||||
<type by_reference="false">bool</type>
|
||||
</tag>
|
||||
<tag line="1119" name="return" description="" type="string">
|
||||
<tag line="1084" name="return" description="" type="string">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1126">
|
||||
<argument line="1091">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1126">
|
||||
<argument line="1091">
|
||||
<name>$reset</name>
|
||||
<default><![CDATA[TRUE]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1140" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1105" package="">
|
||||
<name>get_compiled_update</name>
|
||||
<type>function</type>
|
||||
<docblock line="1133">
|
||||
<docblock line="1098">
|
||||
<description><![CDATA[Returns the generated 'update' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1133" name="param" description="" type="string" variable="$table">
|
||||
<tag line="1098" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1133" name="param" description="" type="bool" variable="$reset">
|
||||
<tag line="1098" name="param" description="" type="bool" variable="$reset">
|
||||
<type by_reference="false">bool</type>
|
||||
</tag>
|
||||
<tag line="1133" name="return" description="" type="string">
|
||||
<tag line="1098" name="return" description="" type="string">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1140">
|
||||
<argument line="1105">
|
||||
<name>$table</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1140">
|
||||
<argument line="1105">
|
||||
<name>$reset</name>
|
||||
<default><![CDATA[TRUE]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1154" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1119" package="">
|
||||
<name>get_compiled_delete</name>
|
||||
<type>function</type>
|
||||
<docblock line="1147">
|
||||
<docblock line="1112">
|
||||
<description><![CDATA[Returns the generated 'delete' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1147" name="param" description="" type="string" variable="$table">
|
||||
<tag line="1112" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1147" name="param" description="" type="bool" variable="$reset">
|
||||
<tag line="1112" name="param" description="" type="bool" variable="$reset">
|
||||
<type by_reference="false">bool</type>
|
||||
</tag>
|
||||
<tag line="1147" name="return" description="" type="string">
|
||||
<tag line="1112" name="return" description="" type="string">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1154">
|
||||
<argument line="1119">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[""]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1154">
|
||||
<argument line="1119">
|
||||
<name>$reset</name>
|
||||
<default><![CDATA[TRUE]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1169" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1134" package="">
|
||||
<name>_get_compile</name>
|
||||
<type>function</type>
|
||||
<docblock line="1161">
|
||||
<docblock line="1126">
|
||||
<description><![CDATA[Helper function for returning sql strings]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1161" name="param" description="" type="string" variable="$type">
|
||||
<tag line="1126" name="param" description="" type="string" variable="$type">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1161" name="param" description="" type="string" variable="$table">
|
||||
<tag line="1126" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1161" name="param" description="bool" type="" variable="$reset"/>
|
||||
<tag line="1161" name="resturn" description="string"/>
|
||||
<tag line="1126" name="param" description="bool" type="" variable="$reset"/>
|
||||
<tag line="1126" name="resturn" description="string"/>
|
||||
</docblock>
|
||||
<argument line="1169">
|
||||
<argument line="1134">
|
||||
<name>$type</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1169">
|
||||
<argument line="1134">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1169">
|
||||
<argument line="1134">
|
||||
<name>$reset</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1191" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1156" package="">
|
||||
<name>reset_query</name>
|
||||
<type>function</type>
|
||||
<docblock line="1186">
|
||||
<docblock line="1151">
|
||||
<description><![CDATA[Clear out the class variables, so the next query can be run]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1186" name="return" description="" type="void">
|
||||
<tag line="1151" name="return" description="" type="void">
|
||||
<type by_reference="false">void</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1225" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1190" package="">
|
||||
<name>_run</name>
|
||||
<type>function</type>
|
||||
<docblock line="1217">
|
||||
<docblock line="1182">
|
||||
<description><![CDATA[Executes the compiled query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1217" name="param" description="" type="string" variable="$type">
|
||||
<tag line="1182" name="param" description="" type="string" variable="$type">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1217" name="param" description="" type="string" variable="$table">
|
||||
<tag line="1182" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1217" name="param" description="" type="bool" variable="$simple">
|
||||
<tag line="1182" name="param" description="" type="bool" variable="$simple">
|
||||
<type by_reference="false">bool</type>
|
||||
</tag>
|
||||
<tag line="1217" name="return" description="" type="mixed">
|
||||
<tag line="1182" name="return" description="" type="mixed">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1225">
|
||||
<argument line="1190">
|
||||
<name>$type</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1225">
|
||||
<argument line="1190">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1225">
|
||||
<argument line="1190">
|
||||
<name>$simple</name>
|
||||
<default><![CDATA[FALSE]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1279" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1244" package="">
|
||||
<name>__call</name>
|
||||
<type>function</type>
|
||||
<docblock line="1272">
|
||||
<docblock line="1237">
|
||||
<description><![CDATA[Calls a function further down the inheritence chain]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1272" name="param" description="" type="string" variable="$name">
|
||||
<tag line="1237" name="param" description="" type="string" variable="$name">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1272" name="param" description="" type="array" variable="$params">
|
||||
<tag line="1237" name="param" description="" type="array" variable="$params">
|
||||
<type by_reference="false">array</type>
|
||||
</tag>
|
||||
<tag line="1272" name="return" description="" type="mixed">
|
||||
<tag line="1237" name="return" description="" type="mixed">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1279">
|
||||
<argument line="1244">
|
||||
<name>$name</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1279">
|
||||
<argument line="1244">
|
||||
<name>$params</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1298" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1263" package="">
|
||||
<name>_compile</name>
|
||||
<type>function</type>
|
||||
<docblock line="1291">
|
||||
<docblock line="1256">
|
||||
<description><![CDATA[String together the sql statements for sending to the db]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="1291" name="param" description="" type="string" variable="$type">
|
||||
<tag line="1256" name="param" description="" type="string" variable="$type">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1291" name="param" description="" type="string" variable="$table">
|
||||
<tag line="1256" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="1291" name="return" description="" type="\$string">
|
||||
<tag line="1256" name="return" description="" type="\$string">
|
||||
<type by_reference="false">\$string</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="1298">
|
||||
<argument line="1263">
|
||||
<name>$type</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="1298">
|
||||
<argument line="1263">
|
||||
<name>$table</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<type/>
|
||||
@ -2274,7 +2247,7 @@ specified table]]></description>
|
||||
</method>
|
||||
</interface>
|
||||
</file>
|
||||
<file path="classes/iquery_builder.php" hash="7b8f613eb5adcc6a9a31d9cb59751ffa" package="Query">
|
||||
<file path="classes/iquery_builder.php" hash="4efeb1d0e37a7c01d7fabc070ec3b83e" package="Query">
|
||||
<docblock line="2">
|
||||
<description><![CDATA[Query]]></description>
|
||||
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
|
||||
@ -3134,10 +3107,10 @@ in place of the get() method]]></description>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="409" package="">
|
||||
<name>insert_batch</name>
|
||||
<name>update</name>
|
||||
<type>function</type>
|
||||
<docblock line="402">
|
||||
<description><![CDATA[Creates a batch insert clause, and executes it]]></description>
|
||||
<description><![CDATA[Creates an update clause, and executes it]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="402" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
@ -3161,15 +3134,15 @@ in place of the get() method]]></description>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="420" package="">
|
||||
<name>update</name>
|
||||
<name>delete</name>
|
||||
<type>function</type>
|
||||
<docblock line="413">
|
||||
<description><![CDATA[Creates an update clause, and executes it]]></description>
|
||||
<description><![CDATA[Deletes data from a table]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="413" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="413" name="param" description="" type="mixed" variable="$data">
|
||||
<tag line="413" name="param" description="" type="mixed" variable="$where">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
<tag line="413" name="return" description="" type="mixed">
|
||||
@ -3182,44 +3155,44 @@ in place of the get() method]]></description>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="420">
|
||||
<name>$data</name>
|
||||
<default><![CDATA[array()]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="431" package="">
|
||||
<name>delete</name>
|
||||
<type>function</type>
|
||||
<docblock line="424">
|
||||
<description><![CDATA[Deletes data from a table]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="424" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="424" name="param" description="" type="mixed" variable="$where">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
<tag line="424" name="return" description="" type="mixed">
|
||||
<type by_reference="false">mixed</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="431">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="431">
|
||||
<name>$where</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="444" package="">
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="433" package="">
|
||||
<name>get_compiled_select</name>
|
||||
<type>function</type>
|
||||
<docblock line="437">
|
||||
<docblock line="426">
|
||||
<description><![CDATA[Returns the generated 'select' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="426" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="426" name="param" description="" type="bool" variable="$reset">
|
||||
<type by_reference="false">bool</type>
|
||||
</tag>
|
||||
<tag line="426" name="return" description="" type="string">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="433">
|
||||
<name>$table</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="433">
|
||||
<name>$reset</name>
|
||||
<default><![CDATA[TRUE]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="444" package="">
|
||||
<name>get_compiled_insert</name>
|
||||
<type>function</type>
|
||||
<docblock line="437">
|
||||
<description><![CDATA[Returns the generated 'insert' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="437" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
@ -3232,7 +3205,7 @@ in place of the get() method]]></description>
|
||||
</docblock>
|
||||
<argument line="444">
|
||||
<name>$table</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<default><![CDATA[]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="444">
|
||||
@ -3242,10 +3215,10 @@ in place of the get() method]]></description>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="455" package="">
|
||||
<name>get_compiled_insert</name>
|
||||
<name>get_compiled_update</name>
|
||||
<type>function</type>
|
||||
<docblock line="448">
|
||||
<description><![CDATA[Returns the generated 'insert' sql query]]></description>
|
||||
<description><![CDATA[Returns the generated 'update' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="448" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
@ -3259,7 +3232,7 @@ in place of the get() method]]></description>
|
||||
</docblock>
|
||||
<argument line="455">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[]]></default>
|
||||
<default><![CDATA['']]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="455">
|
||||
@ -3269,10 +3242,10 @@ in place of the get() method]]></description>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="466" package="">
|
||||
<name>get_compiled_update</name>
|
||||
<name>get_compiled_delete</name>
|
||||
<type>function</type>
|
||||
<docblock line="459">
|
||||
<description><![CDATA[Returns the generated 'update' sql query]]></description>
|
||||
<description><![CDATA[Returns the generated 'delete' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="459" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
@ -3286,7 +3259,7 @@ in place of the get() method]]></description>
|
||||
</docblock>
|
||||
<argument line="466">
|
||||
<name>$table</name>
|
||||
<default><![CDATA['']]></default>
|
||||
<default><![CDATA[""]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="466">
|
||||
@ -3296,39 +3269,12 @@ in place of the get() method]]></description>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="477" package="">
|
||||
<name>get_compiled_delete</name>
|
||||
<type>function</type>
|
||||
<docblock line="470">
|
||||
<description><![CDATA[Returns the generated 'delete' sql query]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="470" name="param" description="" type="string" variable="$table">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
<tag line="470" name="param" description="" type="bool" variable="$reset">
|
||||
<type by_reference="false">bool</type>
|
||||
</tag>
|
||||
<tag line="470" name="return" description="" type="string">
|
||||
<type by_reference="false">string</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
<argument line="477">
|
||||
<name>$table</name>
|
||||
<default><![CDATA[""]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
<argument line="477">
|
||||
<name>$reset</name>
|
||||
<default><![CDATA[TRUE]]></default>
|
||||
<type/>
|
||||
</argument>
|
||||
</method>
|
||||
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="488" package="">
|
||||
<name>reset_query</name>
|
||||
<type>function</type>
|
||||
<docblock line="483">
|
||||
<docblock line="472">
|
||||
<description><![CDATA[Clear out the class variables, so the next query can be run]]></description>
|
||||
<long-description><![CDATA[]]></long-description>
|
||||
<tag line="483" name="return" description="" type="void">
|
||||
<tag line="472" name="return" description="" type="void">
|
||||
<type by_reference="false">void</type>
|
||||
</tag>
|
||||
</docblock>
|
||||
|
@ -459,35 +459,6 @@ abstract class QBTest extends UnitTestCase {
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
public function TestInsertBatch()
|
||||
{
|
||||
if (empty($this->db)) return;
|
||||
|
||||
$insert_array = array(
|
||||
array(
|
||||
'id' => 11,
|
||||
'key' => 2,
|
||||
'val' => 3
|
||||
),
|
||||
array(
|
||||
'id' => 12,
|
||||
'key' => 6,
|
||||
'val' => 7
|
||||
),
|
||||
array(
|
||||
'id' => 13,
|
||||
'key' => 1,
|
||||
'val' => 2
|
||||
)
|
||||
);
|
||||
|
||||
$query = $this->db->insert_batch('test', $insert_array);
|
||||
|
||||
$this->assertIsA($query, 'PDOStatement');
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
public function TestUpdate()
|
||||
{
|
||||
if (empty($this->db)) return;
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user