Improve Quote_ident method of DB_PDO, fixes #3

This commit is contained in:
Timothy Warren 2012-05-01 14:16:03 -04:00
parent 1a4fd0a9af
commit 790e82729e
37 changed files with 267 additions and 107 deletions

View File

@ -211,15 +211,35 @@ abstract class DB_PDO extends PDO {
return array_map(array($this, 'quote_ident'), $ident);
}
// Remove existing escape characters
$ident = str_replace($this->escape_char, '', $ident);
// If the string is already quoted, return the string
if (($pos = strpos($ident, $this->escape_char)) !== FALSE && $pos === 0)
{
return $ident;
}
// Split each identifier by the period
$hiers = explode('.', $ident);
return $this->escape_char .
implode("{$this->escape_char}.{$this->escape_char}", $hiers) .
$this->escape_char;
// Return the re-compiled string
return implode('.', array_map(array($this, '_quote'), $hiers));
}
// --------------------------------------------------------------------------
/**
* Helper method for quote_ident
*
* @param mixed $str
* @return mixed
*/
protected function _quote($str)
{
if ( ! is_string($str) && is_numeric($str))
{
return $str;
}
return "{$this->escape_char}{$str}{$this->escape_char}";
}
// -------------------------------------------------------------------------

View File

@ -428,7 +428,7 @@ class Query_Builder {
$this->query_map[] = array(
'type' => 'like',
'conjunction' => (empty($this->query_map)) ? 'WHERE ' : " {$conj} ",
'conjunction' => (empty($this->query_map)) ? ' WHERE ' : " {$conj} ",
'string' => $l
);
@ -1204,6 +1204,8 @@ class Query_Builder {
/**
* Clear out the class variables, so the next query can be run
*
* @return void
*/
private function _reset()
{
@ -1336,7 +1338,7 @@ class Query_Builder {
break;
}
//echo $sql . '<br />';
echo $sql . '<br />';
return $sql;
}

View File

@ -113,6 +113,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public "><a href="#switch_db" title="switch_db :: Connect to a different database"><span class="description">Connect to a different database</span><pre>switch_db()</pre></a></li>
<li class="method public "><a href="#truncate" title="truncate :: Empty the passed table"><span class="description">Empty the passed table</span><pre>truncate()</pre></a></li>
<li class="nav-header protected">» Protected</li>
<li class="method protected "><a href="#_quote" title="_quote :: Helper method for quote_ident"><span class="description">Helper method for quote_ident</span><pre>_quote()</pre></a></li>
<li class="method protected "><a href="#driver_query" title="driver_query :: Method to simplify retreiving db results for meta-data queries"><span class="description">Method to simplify retreiving db results for meta-data queries</span><pre>driver_query()</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties</li>
@ -610,6 +611,21 @@ the connection/database</h2>
</div>
</div></div>
</div>
<a name="_quote" id="_quote"></a><div class="element clickable method protected _quote" data-toggle="collapse" data-target="._quote .collapse">
<h2>Helper method for quote_ident</h2>
<pre>_quote(mixed $str) : 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>$str</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a name="driver_query" id="driver_query"></a><div class="element clickable method protected driver_query" data-toggle="collapse" data-target=".driver_query .collapse">
<h2>Method to simplify retreiving db results for meta-data queries</h2>
<pre>driver_query(string $sql, bool $filtered_index) : mixed</pre>
@ -662,7 +678,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -151,7 +151,7 @@ and organizes database connections</p></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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -268,7 +268,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -208,7 +208,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -105,6 +105,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public "><a href="#switch_db" title="switch_db :: Doesn't apply to Firebird"><span class="description">Doesn't apply to Firebird</span><pre>switch_db()</pre></a></li>
<li class="method public "><a href="#truncate" title="truncate :: Empty a database table"><span class="description">Empty a database table</span><pre>truncate()</pre></a></li>
<li class="nav-header protected">» Protected</li>
<li class="method protected inherited"><a href="#_quote" title="_quote :: Helper method for quote_ident"><span class="description">Helper method for quote_ident</span><pre>_quote()</pre></a></li>
<li class="method protected inherited"><a href="#driver_query" title="driver_query :: Method to simplify retreiving db results for meta-data queries"><span class="description">Method to simplify retreiving db results for meta-data queries</span><pre>driver_query()</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties</li>
@ -719,6 +720,25 @@ the connection/database</h2>
</div>
</div></div>
</div>
<a name="_quote" id="_quote"></a><div class="element clickable method protected _quote" data-toggle="collapse" data-target="._quote .collapse">
<h2>Helper method for quote_ident</h2>
<pre>_quote(mixed $str) : mixed</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::_quote()</td>
</tr></table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$str</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a name="driver_query" id="driver_query"></a><div class="element clickable method protected driver_query" data-toggle="collapse" data-target=".driver_query .collapse">
<h2>Method to simplify retreiving db results for meta-data queries</h2>
<pre>driver_query(string $sql, bool $filtered_index) : mixed</pre>
@ -812,7 +832,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -503,7 +503,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -296,7 +296,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -211,7 +211,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -113,6 +113,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public "><a href="#switch_db" title="switch_db :: Connect to a different database"><span class="description">Connect to a different database</span><pre>switch_db()</pre></a></li>
<li class="method public "><a href="#truncate" title="truncate :: Empty a table"><span class="description">Empty a table</span><pre>truncate()</pre></a></li>
<li class="nav-header protected">» Protected</li>
<li class="method protected inherited"><a href="#_quote" title="_quote :: Helper method for quote_ident"><span class="description">Helper method for quote_ident</span><pre>_quote()</pre></a></li>
<li class="method protected inherited"><a href="#driver_query" title="driver_query :: Method to simplify retreiving db results for meta-data queries"><span class="description">Method to simplify retreiving db results for meta-data queries</span><pre>driver_query()</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties</li>
@ -774,6 +775,25 @@ the connection/database</h2>
</div>
</div></div>
</div>
<a name="_quote" id="_quote"></a><div class="element clickable method protected _quote" data-toggle="collapse" data-target="._quote .collapse">
<h2>Helper method for quote_ident</h2>
<pre>_quote(mixed $str) : mixed</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::_quote()</td>
</tr></table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$str</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a name="driver_query" id="driver_query"></a><div class="element clickable method protected driver_query" data-toggle="collapse" data-target=".driver_query .collapse">
<h2>Method to simplify retreiving db results for meta-data queries</h2>
<pre>driver_query(string $sql, bool $filtered_index) : mixed</pre>
@ -848,7 +868,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -280,7 +280,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -207,7 +207,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -113,6 +113,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public "><a href="#switch_db" title="switch_db :: Doesn't apply to ODBC"><span class="description">Doesn't apply to ODBC</span><pre>switch_db()</pre></a></li>
<li class="method public "><a href="#truncate" title="truncate :: Empty the current database"><span class="description">Empty the current database</span><pre>truncate()</pre></a></li>
<li class="nav-header protected">» Protected</li>
<li class="method protected inherited"><a href="#_quote" title="_quote :: Helper method for quote_ident"><span class="description">Helper method for quote_ident</span><pre>_quote()</pre></a></li>
<li class="method protected inherited"><a href="#driver_query" title="driver_query :: Method to simplify retreiving db results for meta-data queries"><span class="description">Method to simplify retreiving db results for meta-data queries</span><pre>driver_query()</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties</li>
@ -776,6 +777,25 @@ the connection/database</h2>
</div>
</div></div>
</div>
<a name="_quote" id="_quote"></a><div class="element clickable method protected _quote" data-toggle="collapse" data-target="._quote .collapse">
<h2>Helper method for quote_ident</h2>
<pre>_quote(mixed $str) : mixed</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::_quote()</td>
</tr></table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$str</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a name="driver_query" id="driver_query"></a><div class="element clickable method protected driver_query" data-toggle="collapse" data-target=".driver_query .collapse">
<h2>Method to simplify retreiving db results for meta-data queries</h2>
<pre>driver_query(string $sql, bool $filtered_index) : mixed</pre>
@ -850,7 +870,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -280,7 +280,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -202,7 +202,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -113,6 +113,7 @@ the connection/database</span><pre>get_system_tables()</pre></a></li>
<li class="method public "><a href="#switch_db" title="switch_db :: Connect to a different database"><span class="description">Connect to a different database</span><pre>switch_db()</pre></a></li>
<li class="method public "><a href="#truncate" title="truncate :: Empty a table"><span class="description">Empty a table</span><pre>truncate()</pre></a></li>
<li class="nav-header protected">» Protected</li>
<li class="method protected inherited"><a href="#_quote" title="_quote :: Helper method for quote_ident"><span class="description">Helper method for quote_ident</span><pre>_quote()</pre></a></li>
<li class="method protected inherited"><a href="#driver_query" title="driver_query :: Method to simplify retreiving db results for meta-data queries"><span class="description">Method to simplify retreiving db results for meta-data queries</span><pre>driver_query()</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties</li>
@ -770,6 +771,25 @@ the connection/database</h2>
</div>
</div></div>
</div>
<a name="_quote" id="_quote"></a><div class="element clickable method protected _quote" data-toggle="collapse" data-target="._quote .collapse">
<h2>Helper method for quote_ident</h2>
<pre>_quote(mixed $str) : mixed</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::_quote()</td>
</tr></table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$str</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a name="driver_query" id="driver_query"></a><div class="element clickable method protected driver_query" data-toggle="collapse" data-target=".driver_query .collapse">
<h2>Method to simplify retreiving db results for meta-data queries</h2>
<pre>driver_query(string $sql, bool $filtered_index) : mixed</pre>
@ -850,7 +870,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -296,7 +296,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -207,7 +207,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -1017,7 +1017,7 @@ passed array with key / value pairs</h2>
</div>
<a name="_reset" id="_reset"></a><div class="element clickable method private _reset" data-toggle="collapse" data-target="._reset .collapse">
<h2>Clear out the class variables, so the next query can be run</h2>
<pre>_reset() </pre>
<pre>_reset() : void</pre>
<div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div>
@ -1221,7 +1221,7 @@ for complex select queries</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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -113,6 +113,7 @@ method if the database does not support 'TRUNCATE';</span><pre>empty_table()</pr
<li class="method public "><a href="#truncate" title="truncate :: Empty a table"><span class="description">Empty a table</span><pre>truncate()</pre></a></li>
<li class="method public "><a href="#unload_database" title="unload_database :: Unload a database from the current connection"><span class="description">Unload a database from the current connection</span><pre>unload_database()</pre></a></li>
<li class="nav-header protected">» Protected</li>
<li class="method protected inherited"><a href="#_quote" title="_quote :: Helper method for quote_ident"><span class="description">Helper method for quote_ident</span><pre>_quote()</pre></a></li>
<li class="method protected inherited"><a href="#driver_query" title="driver_query :: Method to simplify retreiving db results for meta-data queries"><span class="description">Method to simplify retreiving db results for meta-data queries</span><pre>driver_query()</pre></a></li>
<li class="nav-header">
<i class="icon-custom icon-property"></i> Properties</li>
@ -791,6 +792,25 @@ method if the database does not support 'TRUNCATE';</h2>
</div>
</div></div>
</div>
<a name="_quote" id="_quote"></a><div class="element clickable method protected _quote" data-toggle="collapse" data-target="._quote .collapse">
<h2>Helper method for quote_ident</h2>
<pre>_quote(mixed $str) : mixed</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::_quote()</td>
</tr></table>
<h3>Parameters</h3>
<div class="subelement argument">
<h4>$str</h4>
<code>mixed</code>
</div>
<h3>Returns</h3>
<div class="subelement response"><code>mixed</code></div>
</div></div>
</div>
<a name="driver_query" id="driver_query"></a><div class="element clickable method protected driver_query" data-toggle="collapse" data-target=".driver_query .collapse">
<h2>Method to simplify retreiving db results for meta-data queries</h2>
<pre>driver_query(string $sql, bool $filtered_index) : mixed</pre>
@ -865,7 +885,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -280,7 +280,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -207,7 +207,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -243,7 +243,7 @@ directly - the settings should be safe!</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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -66,7 +66,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -92,7 +92,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -63,7 +63,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:17-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -282,7 +282,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -66,7 +66,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -93,7 +93,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -210,7 +210,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -96,7 +96,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -114,7 +114,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -315,7 +315,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 2012-05-01T13:44:57-04:00.<br></footer></div>
generated on 2012-05-01T14:03:16-04:00.<br></footer></div>
</div>
</body>
</html>

View File

@ -510,7 +510,7 @@ directly - the settings should be safe!]]></description>
</method>
</class>
</file>
<file path="classes/db_pdo.php" hash="2f5d078b255b67629fb1267a38a354e3" package="Query">
<file path="classes/db_pdo.php" hash="343830257e8bc84fe3ef14bafbec5287" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -736,197 +736,216 @@ directly - the settings should be safe!]]></description>
<type/>
</argument>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="234" package="">
<name>empty_table</name>
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="235" package="">
<name>_quote</name>
<type>function</type>
<docblock line="227">
<description><![CDATA[Deletes all the rows from a table. Does the same as the truncate
method if the database does not support 'TRUNCATE';]]></description>
<docblock line="229">
<description><![CDATA[Helper method for quote_ident]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="227" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
<tag line="229" name="param" description="" type="mixed" variable="$str">
<type by_reference="false">mixed</type>
</tag>
<tag line="227" name="return" description="" type="mixed">
<tag line="229" name="return" description="" type="mixed">
<type by_reference="false">mixed</type>
</tag>
</docblock>
<argument line="234">
<argument line="235">
<name>$str</name>
<default><![CDATA[]]></default>
<type/>
</argument>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="254" package="">
<name>empty_table</name>
<type>function</type>
<docblock line="247">
<description><![CDATA[Deletes all the rows from a table. Does the same as the truncate
method if the database does not support 'TRUNCATE';]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="247" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
</tag>
<tag line="247" name="return" description="" type="mixed">
<type by_reference="false">mixed</type>
</tag>
</docblock>
<argument line="254">
<name>$table</name>
<default><![CDATA[]]></default>
<type/>
</argument>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="248" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="268" package="">
<name>get_schemas</name>
<type>function</type>
<docblock line="243">
<docblock line="263">
<description><![CDATA[Return schemas for databases that list them]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="243" name="return" description="" type="array">
<tag line="263" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="260" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="280" package="">
<name>get_tables</name>
<type>function</type>
<docblock line="255">
<docblock line="275">
<description><![CDATA[Return list of tables for the current database]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="255" name="return" description="" type="array">
<tag line="275" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="272" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="292" package="">
<name>get_dbs</name>
<type>function</type>
<docblock line="267">
<docblock line="287">
<description><![CDATA[Return list of dbs for the current connection, if possible]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="267" name="return" description="" type="array">
<tag line="287" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="284" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="304" package="">
<name>get_views</name>
<type>function</type>
<docblock line="279">
<docblock line="299">
<description><![CDATA[Return list of views for the current database]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="279" name="return" description="" type="array">
<tag line="299" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="296" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="316" package="">
<name>get_sequences</name>
<type>function</type>
<docblock line="291">
<docblock line="311">
<description><![CDATA[Return list of sequences for the current database, if they exist]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="291" name="return" description="" type="array">
<tag line="311" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="308" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="328" package="">
<name>get_functions</name>
<type>function</type>
<docblock line="303">
<docblock line="323">
<description><![CDATA[Return list of function for the current database]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="303" name="return" description="" type="array">
<tag line="323" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="320" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="340" package="">
<name>get_procedures</name>
<type>function</type>
<docblock line="315">
<docblock line="335">
<description><![CDATA[Return list of stored procedures for the current database]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="315" name="return" description="" type="array">
<tag line="335" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="332" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="352" package="">
<name>get_triggers</name>
<type>function</type>
<docblock line="327">
<docblock line="347">
<description><![CDATA[Return list of triggers for the current database]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="327" name="return" description="" type="array">
<tag line="347" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="345" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="365" package="">
<name>get_system_tables</name>
<type>function</type>
<docblock line="339">
<docblock line="359">
<description><![CDATA[Retreives an array of non-user-created tables for
the connection/database]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="339" name="return" description="" type="array">
<tag line="359" name="return" description="" type="array">
<type by_reference="false">array</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="359" package="">
<method final="false" abstract="false" static="false" visibility="protected" namespace="default" line="379" package="">
<name>driver_query</name>
<type>function</type>
<docblock line="352">
<docblock line="372">
<description><![CDATA[Method to simplify retreiving db results for meta-data queries]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="352" name="param" description="" type="string" variable="$sql">
<tag line="372" name="param" description="" type="string" variable="$sql">
<type by_reference="false">string</type>
</tag>
<tag line="352" name="param" description="" type="bool" variable="$filtered_index">
<tag line="372" name="param" description="" type="bool" variable="$filtered_index">
<type by_reference="false">bool</type>
</tag>
<tag line="352" name="return" description="" type="mixed">
<tag line="372" name="return" description="" type="mixed">
<type by_reference="false">mixed</type>
</tag>
</docblock>
<argument line="359">
<argument line="379">
<name>$sql</name>
<default><![CDATA[]]></default>
<type/>
</argument>
<argument line="359">
<argument line="379">
<name>$filtered_index</name>
<default><![CDATA[TRUE]]></default>
<type/>
</argument>
</method>
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="381" package="">
<method final="false" abstract="false" static="false" visibility="public" namespace="default" line="401" package="">
<name>num_rows</name>
<type>function</type>
<docblock line="376">
<docblock line="396">
<description><![CDATA[Return the number of rows returned for a SELECT query]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="376" name="return" description="" type="int">
<tag line="396" name="return" description="" type="int">
<type by_reference="false">int</type>
</tag>
</docblock>
</method>
<method final="false" abstract="true" static="false" visibility="public" namespace="default" line="399" package="">
<method final="false" abstract="true" static="false" visibility="public" namespace="default" line="419" package="">
<name>truncate</name>
<type>function</type>
<docblock line="392">
<docblock line="412">
<description><![CDATA[Empty the passed table]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="392" name="param" description="" type="string" variable="$table">
<tag line="412" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
</tag>
<tag line="392" name="return" description="" type="void">
<tag line="412" name="return" description="" type="void">
<type by_reference="false">void</type>
</tag>
</docblock>
<argument line="399">
<argument line="419">
<name>$table</name>
<default><![CDATA[]]></default>
<type/>
</argument>
</method>
<method final="false" abstract="true" static="false" visibility="public" namespace="default" line="407" package="">
<method final="false" abstract="true" static="false" visibility="public" namespace="default" line="427" package="">
<name>switch_db</name>
<type>function</type>
<docblock line="401">
<docblock line="421">
<description><![CDATA[Connect to a different database]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="401" name="param" description="" type="string" variable="$name">
<tag line="421" name="param" description="" type="string" variable="$name">
<type by_reference="false">string</type>
</tag>
<tag line="401" name="return" description="" type="void">
<tag line="421" name="return" description="" type="void">
<type by_reference="false">void</type>
</tag>
</docblock>
<argument line="407">
<argument line="427">
<name>$name</name>
<default><![CDATA[]]></default>
<type/>
@ -934,7 +953,7 @@ the connection/database]]></description>
</method>
</class>
</file>
<file path="classes/query_builder.php" hash="3fe421b6f93eb4440b52ba6bc5380305" package="Query">
<file path="classes/query_builder.php" hash="62ebf82ab7db6cee173bfde3c3a1d6e3" package="Query">
<docblock line="2">
<description><![CDATA[Query]]></description>
<long-description><![CDATA[<p>Free Query Builder / Database Abstraction Layer</p>]]></long-description>
@ -2277,36 +2296,39 @@ in place of the get() method]]></description>
<type/>
</argument>
</method>
<method final="false" abstract="false" static="false" visibility="private" namespace="default" line="1208" package="">
<method final="false" abstract="false" static="false" visibility="private" namespace="default" line="1210" package="">
<name>_reset</name>
<type>function</type>
<docblock line="1205">
<description><![CDATA[Clear out the class variables, so the next query can be run]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="1205" name="return" description="" type="void">
<type by_reference="false">void</type>
</tag>
</docblock>
</method>
<method final="false" abstract="false" static="false" visibility="private" namespace="default" line="1248" package="">
<method final="false" abstract="false" static="false" visibility="private" namespace="default" line="1250" package="">
<name>_compile</name>
<type>function</type>
<docblock line="1241">
<docblock line="1243">
<description><![CDATA[String together the sql statements for sending to the db]]></description>
<long-description><![CDATA[]]></long-description>
<tag line="1241" name="param" description="" type="string" variable="$type">
<tag line="1243" name="param" description="" type="string" variable="$type">
<type by_reference="false">string</type>
</tag>
<tag line="1241" name="param" description="" type="string" variable="$table">
<tag line="1243" name="param" description="" type="string" variable="$table">
<type by_reference="false">string</type>
</tag>
<tag line="1241" name="return" description="" type="\$string">
<tag line="1243" name="return" description="" type="\$string">
<type by_reference="false">\$string</type>
</tag>
</docblock>
<argument line="1248">
<argument line="1250">
<name>$type</name>
<default><![CDATA['']]></default>
<type/>
</argument>
<argument line="1248">
<argument line="1250">
<name>$table</name>
<default><![CDATA['']]></default>
<type/>

Binary file not shown.