Add insert batch as a function to overwrite in drivers

This commit is contained in:
Timothy Warren 2013-05-03 13:07:34 -04:00
parent 4ee865ac6d
commit f6bfe414e6
44 changed files with 604 additions and 122 deletions

View File

@ -538,5 +538,44 @@ abstract class DB_PDO extends PDO {
* @return void * @return void
*/ */
abstract public function truncate($table); abstract public function truncate($table);
// --------------------------------------------------------------------------
/**
* Create sql for batch insert
*
* @param string $table
* @param array $data
* @return string
*/
public function insert_batch($table, $data=array())
{
if ( ! is_array($data[0])) return NULL;
$table = $this->quote_table($table);
$fields = array_keys($data[0]);
$vals = array();
$sql = "INSERT INTO {$table} (";
$sql .= implode(',', $this->quote_ident($fields));
$sql .= ") VALUES ";
$params = array_fill(0, count($fields), '?');
$param_string = implode(',', $params);
// Remove the first array after use, as it is a special case
$sql .= "({$param_string})";
$vals = array_values($data[0]);
array_shift($data);
// Add another grouping for each
foreach($data as $group)
{
$sql .= ",({$param_string})";
$vals = array_merge($vals, array_values($group));
}
return array($sql, $vals);
}
} }
// End of db_pdo.php // End of db_pdo.php

View File

@ -1019,6 +1019,28 @@ class Query_Builder implements iQuery_Builder {
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/**
* Create sql for batch insert
*
* @param string $table
* @param array $data
* @return string
*/
public function insert_batch($table, $data=array())
{
// Get the generated values and sql string
list($sql, $data) = $this->db->insert_batch($table, $data);
if ( ! is_null($sql))
{
return $this->_run('', $table, FALSE, $sql, $data);
}
return NULL;
}
// --------------------------------------------------------------------------
/** /**
* Creates an update clause, and executes it * Creates an update clause, and executes it
* *
@ -1185,12 +1207,21 @@ class Query_Builder implements iQuery_Builder {
* @param string $type * @param string $type
* @param string $table * @param string $table
* @param bool $simple * @param bool $simple
* @param string $sql
* @param mixed $vals
* @return mixed * @return mixed
*/ */
protected function _run($type, $table, $simple=FALSE) protected function _run($type, $table, $simple=FALSE, $sql=NULL, $vals=NULL)
{
if (is_null($sql))
{ {
$sql = $this->_compile($type, $table); $sql = $this->_compile($type, $table);
}
if (is_null($vals))
{
$vals = array_merge($this->values, (array) $this->where_values); $vals = array_merge($this->values, (array) $this->where_values);
}
// Add quotes to 'string' values // Add quotes to 'string' values
foreach($vals as &$v) foreach($vals as &$v)

View File

@ -219,7 +219,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -219,7 +219,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -99,6 +99,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public "><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li> <li class="method public "><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li>
<li class="method public "><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction() <li class="method public "><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction()
</span><pre>inTransaction()</pre></a></li> </span><pre>inTransaction()</pre></a></li>
<li class="method public "><a href="#insert_batch" title="insert_batch :: Create sql for batch insert"><span class="description">Create sql for batch insert</span><pre>insert_batch()</pre></a></li>
<li class="method public "><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId() <li class="method public "><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId()
</span><pre>lastInsertId()</pre></a></li> </span><pre>lastInsertId()</pre></a></li>
<li class="method public "><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li> <li class="method public "><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li>
@ -494,6 +495,25 @@ the connection/database</h2>
</tr></table> </tr></table>
</div></div> </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>Create sql for batch insert</h2>
<pre>insert_batch(string $table, array $data) : 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>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>array</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
<a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse"> <a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse">
<h2>lastInsertId() <h2>lastInsertId()
</h2> </h2>
@ -743,7 +763,7 @@ the connection/database</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -210,7 +210,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -95,6 +95,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li> <li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li>
<li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction() <li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction()
</span><pre>inTransaction()</pre></a></li> </span><pre>inTransaction()</pre></a></li>
<li class="method public "><a href="#insert_batch" title="insert_batch :: Create sql for batch insert"><span class="description">Create sql for batch insert</span><pre>insert_batch()</pre></a></li>
<li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId() <li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId()
</span><pre>lastInsertId()</pre></a></li> </span><pre>lastInsertId()</pre></a></li>
<li class="method public inherited"><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li> <li class="method public inherited"><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li>
@ -575,6 +576,25 @@ the connection/database</h2>
</table> </table>
</div></div> </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>Create sql for batch insert</h2>
<pre>insert_batch(string $table, array $data) : 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>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>array</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
<a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse"> <a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse">
<h2>lastInsertId() <h2>lastInsertId()
</h2> </h2>
@ -925,7 +945,7 @@ the last query executed</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -505,7 +505,7 @@ the query</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -234,7 +234,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -213,7 +213,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -99,6 +99,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li> <li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li>
<li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction() <li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction()
</span><pre>inTransaction()</pre></a></li> </span><pre>inTransaction()</pre></a></li>
<li class="method public inherited"><a href="#insert_batch" title="insert_batch :: Create sql for batch insert"><span class="description">Create sql for batch insert</span><pre>insert_batch()</pre></a></li>
<li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId() <li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId()
</span><pre>lastInsertId()</pre></a></li> </span><pre>lastInsertId()</pre></a></li>
<li class="method public inherited"><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li> <li class="method public inherited"><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li>
@ -618,6 +619,29 @@ the connection/database</h2>
</table> </table>
</div></div> </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>Create sql for batch insert</h2>
<pre>insert_batch(string $table, array $data) : string</pre>
<div class="labels"><span class="label">Inherited</span></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<table class="table table-bordered"><tr>
<th>inherited_from</th>
<td>\DB_PDO::insert_batch()</td>
</tr></table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>array</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
<a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse"> <a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse">
<h2>lastInsertId() <h2>lastInsertId()
</h2> </h2>
@ -963,7 +987,7 @@ the connection/database</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -239,7 +239,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -209,7 +209,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -99,6 +99,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li> <li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li>
<li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction() <li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction()
</span><pre>inTransaction()</pre></a></li> </span><pre>inTransaction()</pre></a></li>
<li class="method public "><a href="#insert_batch" title="insert_batch :: Create sql for batch insert"><span class="description">Create sql for batch insert</span><pre>insert_batch()</pre></a></li>
<li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId() <li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId()
</span><pre>lastInsertId()</pre></a></li> </span><pre>lastInsertId()</pre></a></li>
<li class="method public inherited"><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li> <li class="method public inherited"><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li>
@ -618,6 +619,25 @@ the connection/database</h2>
</table> </table>
</div></div> </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>Create sql for batch insert</h2>
<pre>insert_batch(string $table, array $data) : 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>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>array</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
<a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse"> <a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse">
<h2>lastInsertId() <h2>lastInsertId()
</h2> </h2>
@ -963,7 +983,7 @@ the connection/database</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -234,7 +234,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -204,7 +204,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -99,6 +99,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li> <li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li>
<li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction() <li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction()
</span><pre>inTransaction()</pre></a></li> </span><pre>inTransaction()</pre></a></li>
<li class="method public inherited"><a href="#insert_batch" title="insert_batch :: Create sql for batch insert"><span class="description">Create sql for batch insert</span><pre>insert_batch()</pre></a></li>
<li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId() <li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId()
</span><pre>lastInsertId()</pre></a></li> </span><pre>lastInsertId()</pre></a></li>
<li class="method public inherited"><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li> <li class="method public inherited"><a href="#num_rows" title="num_rows :: Return the number of rows returned for a SELECT query"><span class="description">Return the number of rows returned for a SELECT query</span><pre>num_rows()</pre></a></li>
@ -614,6 +615,29 @@ the connection/database</h2>
</table> </table>
</div></div> </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>Create sql for batch insert</h2>
<pre>insert_batch(string $table, array $data) : string</pre>
<div class="labels"><span class="label">Inherited</span></div>
<div class="row collapse"><div class="span8">
<p class="long_description"></p>
<table class="table table-bordered"><tr>
<th>inherited_from</th>
<td>\DB_PDO::insert_batch()</td>
</tr></table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>array</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
<a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse"> <a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse">
<h2>lastInsertId() <h2>lastInsertId()
</h2> </h2>
@ -965,7 +989,7 @@ the connection/database</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -234,7 +234,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -209,7 +209,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -80,6 +80,7 @@ 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="#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="#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" 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 :: Create sql for batch insert"><span class="description">Create sql for batch insert</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="#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="#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> <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>
@ -499,6 +500,25 @@ execute current compiled query</h2>
<div class="subelement response"><code>mixed</code></div> <div class="subelement response"><code>mixed</code></div>
</div></div> </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>Create sql for batch insert</h2>
<pre>insert_batch(string $table, array $data) : 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>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>array</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</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"> <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> <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> <pre>join(string $table, string $condition, string $type) : <a href="../classes/Query_Builder.html">\Query_Builder</a></pre>
@ -1135,7 +1155,7 @@ passed array with key / value pairs</h2>
</div> </div>
<a name="_run" id="_run"></a><div class="element clickable method protected _run" data-toggle="collapse" data-target="._run .collapse"> <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> <h2>Executes the compiled query</h2>
<pre>_run(string $type, string $table, bool $simple) : mixed</pre> <pre>_run(string $type, string $table, bool $simple, string $sql, mixed $vals) : mixed</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"> <div class="row collapse"><div class="span8">
<p class="long_description"></p> <p class="long_description"></p>
@ -1152,6 +1172,14 @@ passed array with key / value pairs</h2>
<h4>$simple</h4> <h4>$simple</h4>
<code>bool</code> <code>bool</code>
</div> </div>
<div class="subelement argument">
<h4>$sql</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$vals</h4>
<code>mixed</code>
</div>
<h3>Returns</h3> <h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div> <div class="subelement response"><code>mixed</code></div>
</div></div> </div></div>
@ -1361,7 +1389,7 @@ passed array with key / value pairs</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -145,7 +145,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -97,6 +97,7 @@ method if the database does not support 'TRUNCATE';</span><pre>empty_table()</pr
<li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li> <li class="method public inherited"><a href="#get_views" title="get_views :: Return list of views for the current database"><span class="description">Return list of views for the current database</span><pre>get_views()</pre></a></li>
<li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction() <li class="method public inherited"><a href="#inTransaction" title="inTransaction :: "><span class="description">inTransaction()
</span><pre>inTransaction()</pre></a></li> </span><pre>inTransaction()</pre></a></li>
<li class="method public "><a href="#insert_batch" title="insert_batch :: Create sql for batch insert"><span class="description">Create sql for batch insert</span><pre>insert_batch()</pre></a></li>
<li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId() <li class="method public inherited"><a href="#lastInsertId" title="lastInsertId :: "><span class="description">lastInsertId()
</span><pre>lastInsertId()</pre></a></li> </span><pre>lastInsertId()</pre></a></li>
<li class="method public "><a href="#load_database" title="load_database :: Load a database for the current connection"><span class="description">Load a database for the current connection</span><pre>load_database()</pre></a></li> <li class="method public "><a href="#load_database" title="load_database :: Load a database for the current connection"><span class="description">Load a database for the current connection</span><pre>load_database()</pre></a></li>
@ -605,6 +606,25 @@ method if the database does not support 'TRUNCATE';</h2>
</table> </table>
</div></div> </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>Create sql for batch insert</h2>
<pre>insert_batch(string $table, array $data) : 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>$table</h4>
<code>string</code>
</div>
<div class="subelement argument">
<h4>$data</h4>
<code>array</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>string</code></div>
</div></div>
</div>
<a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse"> <a name="lastInsertId" id="lastInsertId"></a><div class="element clickable method public lastInsertId" data-toggle="collapse" data-target=".lastInsertId .collapse">
<h2>lastInsertId() <h2>lastInsertId()
</h2> </h2>
@ -980,7 +1000,7 @@ method if the database does not support 'TRUNCATE';</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -234,7 +234,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -209,7 +209,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -244,7 +244,7 @@ specified table</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -964,7 +964,7 @@ passed array with key / value pairs</h2>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -68,7 +68,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -237,7 +237,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -65,7 +65,7 @@
</script><div class="row"><footer class="span12"> </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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -110,7 +110,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -340,7 +340,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -68,7 +68,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -95,7 +95,7 @@
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -212,7 +212,7 @@ data-fetching methods</p>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -150,7 +150,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -362,7 +362,7 @@ instantiates the specific db driver</p>
<div class="row"><footer class="span12"> <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> 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> Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a2</a> and<br>
generated on 2013-05-02T12:51:15-04:00.<br></footer></div> generated on 2013-05-03T13:07:08-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -98,7 +98,7 @@
</method> </method>
</class> </class>
</file> </file>
<file path="classes/db_pdo.php" hash="7dd92d54828bc8d3bdda32110461a26d" package="Query"> <file path="classes/db_pdo.php" hash="af9d6d9d4467fed310bdf3db8a80e2b5" package="Query">
<docblock line="2"> <docblock line="2">
<description><![CDATA[Query]]></description> <description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description> <long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -577,9 +577,36 @@ the connection/database]]></description>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="551" package="">
<name>insert_batch</name>
<type>function</type>
<docblock line="544">
<description><![CDATA[Create sql for batch insert]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="544" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
</tag>
<tag line="544" name="param" description="" type="array" variable="$data">
<type by_reference="false">array</type>
</tag>
<tag line="544" name="return" description="" type="string">
<type by_reference="false">string</type>
</tag>
</docblock>
<argument line="551">
<name>$table</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="551">
<name>$data</name>
<default><![CDATA[array()]]></default>
<type/>
</argument>
</method>
</class> </class>
</file> </file>
<file path="classes/query_builder.php" hash="c6d0516df04257774de596c04dd26627" package="Query"> <file path="classes/query_builder.php" hash="1b38488025b183317fd68abbfd28e7c3" package="Query">
<docblock line="2"> <docblock line="2">
<description><![CDATA[Query]]></description> <description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description> <long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -1766,19 +1793,19 @@ in place of the get() method]]></description>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1029" package=""> <method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1029" package="">
<name>update</name> <name>insert_batch</name>
<type>function</type> <type>function</type>
<docblock line="1022"> <docblock line="1022">
<description><![CDATA[Creates an update clause, and executes it]]></description> <description><![CDATA[Create sql for batch insert]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1022" name="param" description="" type="string" variable="$table"> <tag line="1022" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1022" name="param" description="" type="mixed" variable="$data"> <tag line="1022" name="param" description="" type="array" variable="$data">
<type by_reference="false">mixed</type> <type by_reference="false">array</type>
</tag> </tag>
<tag line="1022" name="return" description="" type="mixed"> <tag line="1022" name="return" description="" type="string">
<type by_reference="false">mixed</type> <type by_reference="false">string</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1029"> <argument line="1029">
@ -1792,267 +1819,310 @@ in place of the get() method]]></description>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1049" package=""> <method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1051" package="">
<name>delete</name> <name>update</name>
<type>function</type> <type>function</type>
<docblock line="1042"> <docblock line="1044">
<description><![CDATA[Deletes data from a table]]></description> <description><![CDATA[Creates an update clause, and executes it]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1042" name="param" description="" type="string" variable="$table"> <tag line="1044" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1042" name="param" description="" type="mixed" variable="$where"> <tag line="1044" name="param" description="" type="mixed" variable="$data">
<type by_reference="false">mixed</type> <type by_reference="false">mixed</type>
</tag> </tag>
<tag line="1042" name="return" description="" type="mixed"> <tag line="1044" name="return" description="" type="mixed">
<type by_reference="false">mixed</type> <type by_reference="false">mixed</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1049"> <argument line="1051">
<name>$table</name> <name>$table</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1049"> <argument line="1051">
<name>$data</name>
<default><![CDATA[array()]]></default>
<type/>
</argument>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1071" package="">
<name>delete</name>
<type>function</type>
<docblock line="1064">
<description><![CDATA[Deletes data from a table]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="1064" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
</tag>
<tag line="1064" name="param" description="" type="mixed" variable="$where">
<type by_reference="false">mixed</type>
</tag>
<tag line="1064" name="return" description="" type="mixed">
<type by_reference="false">mixed</type>
</tag>
</docblock>
<argument line="1071">
<name>$table</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="1071">
<name>$where</name> <name>$where</name>
<default><![CDATA['']]></default> <default><![CDATA['']]></default>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1071" package=""> <method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1093" package="">
<name>get_compiled_select</name> <name>get_compiled_select</name>
<type>function</type> <type>function</type>
<docblock line="1064"> <docblock line="1086">
<description><![CDATA[Returns the generated 'select' sql query]]></description> <description><![CDATA[Returns the generated 'select' sql query]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1064" name="param" description="" type="string" variable="$table"> <tag line="1086" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1064" name="param" description="" type="bool" variable="$reset"> <tag line="1086" name="param" description="" type="bool" variable="$reset">
<type by_reference="false">bool</type> <type by_reference="false">bool</type>
</tag> </tag>
<tag line="1064" name="return" description="" type="string"> <tag line="1086" name="return" description="" type="string">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1071"> <argument line="1093">
<name>$table</name> <name>$table</name>
<default><![CDATA['']]></default> <default><![CDATA['']]></default>
<type/> <type/>
</argument> </argument>
<argument line="1071"> <argument line="1093">
<name>$reset</name> <name>$reset</name>
<default><![CDATA[TRUE]]></default> <default><![CDATA[TRUE]]></default>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1091" package=""> <method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1113" package="">
<name>get_compiled_insert</name> <name>get_compiled_insert</name>
<type>function</type> <type>function</type>
<docblock line="1084"> <docblock line="1106">
<description><![CDATA[Returns the generated 'insert' sql query]]></description> <description><![CDATA[Returns the generated 'insert' sql query]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1084" name="param" description="" type="string" variable="$table"> <tag line="1106" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1084" name="param" description="" type="bool" variable="$reset"> <tag line="1106" name="param" description="" type="bool" variable="$reset">
<type by_reference="false">bool</type> <type by_reference="false">bool</type>
</tag> </tag>
<tag line="1084" name="return" description="" type="string"> <tag line="1106" name="return" description="" type="string">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1091"> <argument line="1113">
<name>$table</name> <name>$table</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1091"> <argument line="1113">
<name>$reset</name> <name>$reset</name>
<default><![CDATA[TRUE]]></default> <default><![CDATA[TRUE]]></default>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1105" package=""> <method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1127" package="">
<name>get_compiled_update</name> <name>get_compiled_update</name>
<type>function</type> <type>function</type>
<docblock line="1098"> <docblock line="1120">
<description><![CDATA[Returns the generated 'update' sql query]]></description> <description><![CDATA[Returns the generated 'update' sql query]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1098" name="param" description="" type="string" variable="$table"> <tag line="1120" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1098" name="param" description="" type="bool" variable="$reset"> <tag line="1120" name="param" description="" type="bool" variable="$reset">
<type by_reference="false">bool</type> <type by_reference="false">bool</type>
</tag> </tag>
<tag line="1098" name="return" description="" type="string"> <tag line="1120" name="return" description="" type="string">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1105"> <argument line="1127">
<name>$table</name> <name>$table</name>
<default><![CDATA['']]></default> <default><![CDATA['']]></default>
<type/> <type/>
</argument> </argument>
<argument line="1105"> <argument line="1127">
<name>$reset</name> <name>$reset</name>
<default><![CDATA[TRUE]]></default> <default><![CDATA[TRUE]]></default>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1119" package=""> <method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1141" package="">
<name>get_compiled_delete</name> <name>get_compiled_delete</name>
<type>function</type> <type>function</type>
<docblock line="1112"> <docblock line="1134">
<description><![CDATA[Returns the generated 'delete' sql query]]></description> <description><![CDATA[Returns the generated 'delete' sql query]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1112" name="param" description="" type="string" variable="$table"> <tag line="1134" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1112" name="param" description="" type="bool" variable="$reset"> <tag line="1134" name="param" description="" type="bool" variable="$reset">
<type by_reference="false">bool</type> <type by_reference="false">bool</type>
</tag> </tag>
<tag line="1112" name="return" description="" type="string"> <tag line="1134" name="return" description="" type="string">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1119"> <argument line="1141">
<name>$table</name> <name>$table</name>
<default><![CDATA[""]]></default> <default><![CDATA[""]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1119"> <argument line="1141">
<name>$reset</name> <name>$reset</name>
<default><![CDATA[TRUE]]></default> <default><![CDATA[TRUE]]></default>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1134" package=""> <method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1156" package="">
<name>_get_compile</name> <name>_get_compile</name>
<type>function</type> <type>function</type>
<docblock line="1126"> <docblock line="1148">
<description><![CDATA[Helper function for returning sql strings]]></description> <description><![CDATA[Helper function for returning sql strings]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1126" name="param" description="" type="string" variable="$type"> <tag line="1148" name="param" description="" type="string" variable="$type">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1126" name="param" description="" type="string" variable="$table"> <tag line="1148" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1126" name="param" description="bool" type="" variable="$reset"/> <tag line="1148" name="param" description="bool" type="" variable="$reset"/>
<tag line="1126" name="resturn" description="string"/> <tag line="1148" name="resturn" description="string"/>
</docblock> </docblock>
<argument line="1134"> <argument line="1156">
<name>$type</name> <name>$type</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1134"> <argument line="1156">
<name>$table</name> <name>$table</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1134"> <argument line="1156">
<name>$reset</name> <name>$reset</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1156" package=""> <method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1178" package="">
<name>reset_query</name> <name>reset_query</name>
<type>function</type> <type>function</type>
<docblock line="1151"> <docblock line="1173">
<description><![CDATA[Clear out the class variables, so the next query can be run]]></description> <description><![CDATA[Clear out the class variables, so the next query can be run]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1151" name="return" description="" type="void"> <tag line="1173" name="return" description="" type="void">
<type by_reference="false">void</type> <type by_reference="false">void</type>
</tag> </tag>
</docblock> </docblock>
</method> </method>
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1190" package=""> <method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1214" package="">
<name>_run</name> <name>_run</name>
<type>function</type> <type>function</type>
<docblock line="1182"> <docblock line="1204">
<description><![CDATA[Executes the compiled query]]></description> <description><![CDATA[Executes the compiled query]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1182" name="param" description="" type="string" variable="$type"> <tag line="1204" name="param" description="" type="string" variable="$type">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1182" name="param" description="" type="string" variable="$table"> <tag line="1204" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1182" name="param" description="" type="bool" variable="$simple"> <tag line="1204" name="param" description="" type="bool" variable="$simple">
<type by_reference="false">bool</type> <type by_reference="false">bool</type>
</tag> </tag>
<tag line="1182" name="return" description="" type="mixed"> <tag line="1204" name="param" description="" type="string" variable="$sql">
<type by_reference="false">string</type>
</tag>
<tag line="1204" name="param" description="" type="mixed" variable="$vals">
<type by_reference="false">mixed</type>
</tag>
<tag line="1204" name="return" description="" type="mixed">
<type by_reference="false">mixed</type> <type by_reference="false">mixed</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1190"> <argument line="1214">
<name>$type</name> <name>$type</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1190"> <argument line="1214">
<name>$table</name> <name>$table</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1190"> <argument line="1214">
<name>$simple</name> <name>$simple</name>
<default><![CDATA[FALSE]]></default> <default><![CDATA[FALSE]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1214">
<name>$sql</name>
<default><![CDATA[NULL]]></default>
<type/>
</argument>
<argument line="1214">
<name>$vals</name>
<default><![CDATA[NULL]]></default>
<type/>
</argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1244" package=""> <method final="false" abstract="false" static="false" visibility="public" namespace="default" line="1275" package="">
<name>__call</name> <name>__call</name>
<type>function</type> <type>function</type>
<docblock line="1237"> <docblock line="1268">
<description><![CDATA[Calls a function further down the inheritence chain]]></description> <description><![CDATA[Calls a function further down the inheritence chain]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1237" name="param" description="" type="string" variable="$name"> <tag line="1268" name="param" description="" type="string" variable="$name">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1237" name="param" description="" type="array" variable="$params"> <tag line="1268" name="param" description="" type="array" variable="$params">
<type by_reference="false">array</type> <type by_reference="false">array</type>
</tag> </tag>
<tag line="1237" name="return" description="" type="mixed"> <tag line="1268" name="return" description="" type="mixed">
<type by_reference="false">mixed</type> <type by_reference="false">mixed</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1244"> <argument line="1275">
<name>$name</name> <name>$name</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
<argument line="1244"> <argument line="1275">
<name>$params</name> <name>$params</name>
<default><![CDATA[]]></default> <default><![CDATA[]]></default>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1263" package=""> <method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="1294" package="">
<name>_compile</name> <name>_compile</name>
<type>function</type> <type>function</type>
<docblock line="1256"> <docblock line="1287">
<description><![CDATA[String together the sql statements for sending to the db]]></description> <description><![CDATA[String together the sql statements for sending to the db]]></description>
<long-description><![CDATA[]]></long-description> <long-description><![CDATA[]]></long-description>
<tag line="1256" name="param" description="" type="string" variable="$type"> <tag line="1287" name="param" description="" type="string" variable="$type">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1256" name="param" description="" type="string" variable="$table"> <tag line="1287" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type> <type by_reference="false">string</type>
</tag> </tag>
<tag line="1256" name="return" description="" type="\$string"> <tag line="1287" name="return" description="" type="\$string">
<type by_reference="false">\$string</type> <type by_reference="false">\$string</type>
</tag> </tag>
</docblock> </docblock>
<argument line="1263"> <argument line="1294">
<name>$type</name> <name>$type</name>
<default><![CDATA['']]></default> <default><![CDATA['']]></default>
<type/> <type/>
</argument> </argument>
<argument line="1263"> <argument line="1294">
<name>$table</name> <name>$table</name>
<default><![CDATA['']]></default> <default><![CDATA['']]></default>
<type/> <type/>
@ -4324,7 +4394,7 @@ with array_map and glob]]></description>
</method> </method>
</class> </class>
</file> </file>
<file path="drivers/odbc/odbc_driver.php" hash="21b5bca5c1acff6950b123062a68f087" package="Query"> <file path="drivers/odbc/odbc_driver.php" hash="ab6f81ed29a97fd41936c3a047a8a83d" package="Query">
<docblock line="2"> <docblock line="2">
<description><![CDATA[Query]]></description> <description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description> <long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -4411,6 +4481,33 @@ with array_map and glob]]></description>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="67" package="">
<name>insert_batch</name>
<type>function</type>
<docblock line="60">
<description><![CDATA[Create sql for batch insert]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="60" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
</tag>
<tag line="60" name="param" description="" type="array" variable="$data">
<type by_reference="false">array</type>
</tag>
<tag line="60" name="return" description="" type="string">
<type by_reference="false">string</type>
</tag>
</docblock>
<argument line="67">
<name>$table</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="67">
<name>$data</name>
<default><![CDATA[array()]]></default>
<type/>
</argument>
</method>
</class> </class>
</file> </file>
<file path="drivers/mysql/mysql_util.php" hash="3ca27484a6d5aedd3cb6e56d9f33290a" package="Query"> <file path="drivers/mysql/mysql_util.php" hash="3ca27484a6d5aedd3cb6e56d9f33290a" package="Query">
@ -4963,7 +5060,7 @@ with array_map and glob]]></description>
</method> </method>
</class> </class>
</file> </file>
<file path="drivers/sqlite/sqlite_driver.php" hash="618f0a64de20f7d6d70f7d3fe2a2c7de" package="Query"> <file path="drivers/sqlite/sqlite_driver.php" hash="eb144d4791dbb339cf335ac30bbc5a5d" package="Query">
<docblock line="2"> <docblock line="2">
<description><![CDATA[Query]]></description> <description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description> <long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -5104,6 +5201,33 @@ with array_map and glob]]></description>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="138" package="">
<name>insert_batch</name>
<type>function</type>
<docblock line="131">
<description><![CDATA[Create sql for batch insert]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="131" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
</tag>
<tag line="131" name="param" description="" type="array" variable="$data">
<type by_reference="false">array</type>
</tag>
<tag line="131" name="return" description="" type="string">
<type by_reference="false">string</type>
</tag>
</docblock>
<argument line="138">
<name>$table</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="138">
<name>$data</name>
<default><![CDATA[array()]]></default>
<type/>
</argument>
</method>
</class> </class>
</file> </file>
<file path="drivers/sqlite/sqlite_sql.php" hash="dbbc1ce8cef16ff39e46f65bc790d103" package="Query"> <file path="drivers/sqlite/sqlite_sql.php" hash="dbbc1ce8cef16ff39e46f65bc790d103" package="Query">
@ -5856,7 +5980,7 @@ the query]]></description>
</method> </method>
</class> </class>
</file> </file>
<file path="drivers/firebird/firebird_driver.php" hash="b3d355826e6725b4fd55b75fb49e47d6" package="Query"> <file path="drivers/firebird/firebird_driver.php" hash="3383f1a61909f305b279e6b2b7da73b6" package="Query">
<docblock line="2"> <docblock line="2">
<description><![CDATA[Query]]></description> <description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description> <long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -6151,6 +6275,33 @@ the last query executed]]></description>
<type/> <type/>
</argument> </argument>
</method> </method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="281" package="">
<name>insert_batch</name>
<type>function</type>
<docblock line="274">
<description><![CDATA[Create sql for batch insert]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="274" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
</tag>
<tag line="274" name="param" description="" type="array" variable="$data">
<type by_reference="false">array</type>
</tag>
<tag line="274" name="return" description="" type="string">
<type by_reference="false">string</type>
</tag>
</docblock>
<argument line="281">
<name>$table</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="281">
<name>$data</name>
<default><![CDATA[array()]]></default>
<type/>
</argument>
</method>
</class> </class>
</file> </file>
<file path="drivers/firebird/firebird_util.php" hash="4bb834086d2cff626c27e2c405616e00" package="Query"> <file path="drivers/firebird/firebird_util.php" hash="4bb834086d2cff626c27e2c405616e00" package="Query">

View File

@ -268,5 +268,20 @@ class Firebird extends DB_PDO {
// the firebird database // the firebird database
return NULL; return NULL;
} }
// --------------------------------------------------------------------------
/**
* Create sql for batch insert
*
* @param string $table
* @param array $data
* @return string
*/
public function insert_batch($table, $data=array())
{
// This is not very applicable to the firebird database
return NULL;
}
} }
// End of firebird_driver.php // End of firebird_driver.php

View File

@ -54,5 +54,20 @@ class ODBC extends DB_PDO {
$sql = "DELETE FROM {$table}"; $sql = "DELETE FROM {$table}";
$this->query($sql); $this->query($sql);
} }
// --------------------------------------------------------------------------
/**
* Create sql for batch insert
*
* @param string $table
* @param array $data
* @return string
*/
public function insert_batch($table, $data=array())
{
// This is not very applicable to the firebird database
return NULL;
}
} }
// End of odbc_driver.php // End of odbc_driver.php

View File

@ -125,5 +125,20 @@ SQL;
$this->statement->execute(); $this->statement->execute();
} }
// --------------------------------------------------------------------------
/**
* Create sql for batch insert
*
* @param string $table
* @param array $data
* @return string
*/
public function insert_batch($table, $data=array())
{
// This is not very applicable to the firebird database
return NULL;
}
} }
//End of sqlite_driver.php //End of sqlite_driver.php

View File

@ -459,6 +459,35 @@ abstract class QBTest extends UnitTestCase {
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
public function TestInsertBatch()
{
if (empty($this->db)) return;
$data = array(
array(
'id' => 544,
'key' => 3,
'val' => 7,
),
array(
'id' => 89,
'key' => 34,
'val' => 57,
),
array(
'id' => 48,
'key' => 403,
'val' => 97,
),
);
$query = $this->db->insert_batch('test', $data);
$this->assertIsA($query, 'PDOStatement');
}
// --------------------------------------------------------------------------
public function TestUpdate() public function TestUpdate()
{ {
if (empty($this->db)) return; if (empty($this->db)) return;

View File

@ -66,6 +66,8 @@ class FirebirdQBTest extends QBTest {
$this->assertNull($query); $this->assertNull($query);
} }
// --------------------------------------------------------------------------
public function TestTypeList() public function TestTypeList()
{ {
$sql = $this->db->sql->type_list(); $sql = $this->db->sql->type_list();

View File

@ -31,4 +31,33 @@
// echo '<hr /> SQLite Queries <hr />'; // echo '<hr /> SQLite Queries <hr />';
} }
// --------------------------------------------------------------------------
public function TestInsertBatch()
{
if (empty($this->db)) return;
$insert_array = array(
array(
'id' => 6,
'key' => 2,
'val' => 3
),
array(
'id' => 5,
'key' => 6,
'val' => 7
),
array(
'id' => 8,
'key' => 1,
'val' => 2
)
);
$query = $this->db->insert_batch('test', $insert_array);
$this->assertNull($query);
}
} }

Binary file not shown.