Misc tweaks

This commit is contained in:
Timothy Warren 2012-04-23 13:28:49 -04:00
parent 8fc9a7295d
commit 1849e2d6a8
41 changed files with 553 additions and 466 deletions

View File

@ -4,10 +4,11 @@
* *
* Free Query Builder / Database Abstraction Layer * Free Query Builder / Database Abstraction Layer
* *
* @author Timothy J. Warren * @package Query
* @author Timothy J. Warren
* @copyright Copyright (c) 2012 * @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/Query * @link https://github.com/aviat4ion/Query
* @license http://philsturgeon.co.uk/code/dbad-license * @license http://philsturgeon.co.uk/code/dbad-license
*/ */
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -23,26 +24,36 @@ class Query_Builder {
/** /**
* Compiled 'select' clause * Compiled 'select' clause
*
* @var string
*/ */
private $select_string; private $select_string;
/** /**
* Compiled 'from' clause * Compiled 'from' clause
*
* @var string
*/ */
private $from_string; private $from_string;
/** /**
* Compiled arguments for insert / update * Compiled arguments for insert / update
*
* @var string
*/ */
private $set_string; private $set_string;
/** /**
* Order by clause * Order by clause
*
* @var string
*/ */
private $order_string; private $order_string;
/** /**
* Group by clause * Group by clause
*
* @var string
*/ */
private $group_string; private $group_string;
@ -50,21 +61,29 @@ class Query_Builder {
/** /**
* key/val pairs for insert/update statement * key/val pairs for insert/update statement
*
* @var array
*/ */
private $set_array; private $set_array;
/** /**
* Keys for insert/update statement * Keys for insert/update statement
*
* @var array
*/ */
private $set_array_keys; private $set_array_keys;
/** /**
* Key/val pairs for order by clause * Key/val pairs for order by clause
*
* @var array
*/ */
private $order_array; private $order_array;
/** /**
* Key/val pairs for group by clause * Key/val pairs for group by clause
*
* @var array
*/ */
private $group_array; private $group_array;
@ -72,21 +91,29 @@ class Query_Builder {
/** /**
* Values to apply to prepared statements * Values to apply to prepared statements
*
* @var array
*/ */
private $values; private $values;
/** /**
* Value for limit string * Value for limit string
*
* @var int
*/ */
private $limit; private $limit;
/** /**
* Value for offset in limit string * Value for offset in limit string
*
* @var int
*/ */
private $offset; private $offset;
/** /**
* Alias to $this->db->sql * Alias to $this->db->sql
*
* @var DB_PDO
*/ */
private $sql; private $sql;
@ -101,16 +128,22 @@ class Query_Builder {
* 'conjunction' => ' AND ', * 'conjunction' => ' AND ',
* 'string' => 'k=?' * 'string' => 'k=?'
* ) * )
*
* @var array
*/ */
private $query_map; private $query_map;
/** /**
* Map for having clause * Map for having clause
*
* @var array
*/ */
private $having_map; private $having_map;
/** /**
* Convenience property for connection management * Convenience property for connection management
*
* @var string
*/ */
public $conn_name = ""; public $conn_name = "";

View File

@ -662,7 +662,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -151,7 +151,7 @@ and organizes database connections</p></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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -268,7 +268,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -208,7 +208,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -812,7 +812,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -503,7 +503,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -296,7 +296,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -211,7 +211,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -848,7 +848,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -280,7 +280,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -207,7 +207,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -850,7 +850,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -280,7 +280,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -202,7 +202,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -850,7 +850,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -296,7 +296,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -207,7 +207,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -978,62 +978,62 @@ passed array with key / value pairs</h2>
<i class="icon-custom icon-property"></i> Properties</h3> <i class="icon-custom icon-property"></i> Properties</h3>
<a name="%24conn_name" id="$conn_name"> </a><div class="element clickable property public $conn_name" data-toggle="collapse" data-target=".$conn_name .collapse"> <a name="%24conn_name" id="$conn_name"> </a><div class="element clickable property public $conn_name" data-toggle="collapse" data-target=".$conn_name .collapse">
<h2>Convenience property for connection management</h2> <h2>Convenience property for connection management</h2>
<pre>$conn_name </pre> <pre>$conn_name : string</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24from_string" id="$from_string"> </a><div class="element clickable property private $from_string" data-toggle="collapse" data-target=".$from_string .collapse"> <a name="%24from_string" id="$from_string"> </a><div class="element clickable property private $from_string" data-toggle="collapse" data-target=".$from_string .collapse">
<h2>Compiled 'from' clause</h2> <h2>Compiled 'from' clause</h2>
<pre>$from_string </pre> <pre>$from_string : string</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24group_array" id="$group_array"> </a><div class="element clickable property private $group_array" data-toggle="collapse" data-target=".$group_array .collapse"> <a name="%24group_array" id="$group_array"> </a><div class="element clickable property private $group_array" data-toggle="collapse" data-target=".$group_array .collapse">
<h2>Key/val pairs for group by clause</h2> <h2>Key/val pairs for group by clause</h2>
<pre>$group_array </pre> <pre>$group_array : array</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24group_string" id="$group_string"> </a><div class="element clickable property private $group_string" data-toggle="collapse" data-target=".$group_string .collapse"> <a name="%24group_string" id="$group_string"> </a><div class="element clickable property private $group_string" data-toggle="collapse" data-target=".$group_string .collapse">
<h2>Group by clause</h2> <h2>Group by clause</h2>
<pre>$group_string </pre> <pre>$group_string : string</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24having_map" id="$having_map"> </a><div class="element clickable property private $having_map" data-toggle="collapse" data-target=".$having_map .collapse"> <a name="%24having_map" id="$having_map"> </a><div class="element clickable property private $having_map" data-toggle="collapse" data-target=".$having_map .collapse">
<h2>Map for having clause</h2> <h2>Map for having clause</h2>
<pre>$having_map </pre> <pre>$having_map : array</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24limit" id="$limit"> </a><div class="element clickable property private $limit" data-toggle="collapse" data-target=".$limit .collapse"> <a name="%24limit" id="$limit"> </a><div class="element clickable property private $limit" data-toggle="collapse" data-target=".$limit .collapse">
<h2>Value for limit string</h2> <h2>Value for limit string</h2>
<pre>$limit </pre> <pre>$limit : int</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24offset" id="$offset"> </a><div class="element clickable property private $offset" data-toggle="collapse" data-target=".$offset .collapse"> <a name="%24offset" id="$offset"> </a><div class="element clickable property private $offset" data-toggle="collapse" data-target=".$offset .collapse">
<h2>Value for offset in limit string</h2> <h2>Value for offset in limit string</h2>
<pre>$offset </pre> <pre>$offset : int</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24order_array" id="$order_array"> </a><div class="element clickable property private $order_array" data-toggle="collapse" data-target=".$order_array .collapse"> <a name="%24order_array" id="$order_array"> </a><div class="element clickable property private $order_array" data-toggle="collapse" data-target=".$order_array .collapse">
<h2>Key/val pairs for order by clause</h2> <h2>Key/val pairs for order by clause</h2>
<pre>$order_array </pre> <pre>$order_array : array</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24order_string" id="$order_string"> </a><div class="element clickable property private $order_string" data-toggle="collapse" data-target=".$order_string .collapse"> <a name="%24order_string" id="$order_string"> </a><div class="element clickable property private $order_string" data-toggle="collapse" data-target=".$order_string .collapse">
<h2>Order by clause</h2> <h2>Order by clause</h2>
<pre>$order_string </pre> <pre>$order_string : string</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24query_map" id="$query_map"> </a><div class="element clickable property private $query_map" data-toggle="collapse" data-target=".$query_map .collapse"> <a name="%24query_map" id="$query_map"> </a><div class="element clickable property private $query_map" data-toggle="collapse" data-target=".$query_map .collapse">
<h2>Query component order mapping <h2>Query component order mapping
for complex select queries</h2> for complex select queries</h2>
<pre>$query_map </pre> <pre>$query_map : array</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"><p>Format:</p> <div class="row collapse"><div class="span8"><p class="long_description"><p>Format:</p>
@ -1045,37 +1045,37 @@ for complex select queries</h2>
</div> </div>
<a name="%24select_string" id="$select_string"> </a><div class="element clickable property private $select_string" data-toggle="collapse" data-target=".$select_string .collapse"> <a name="%24select_string" id="$select_string"> </a><div class="element clickable property private $select_string" data-toggle="collapse" data-target=".$select_string .collapse">
<h2>Compiled 'select' clause</h2> <h2>Compiled 'select' clause</h2>
<pre>$select_string </pre> <pre>$select_string : string</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24set_array" id="$set_array"> </a><div class="element clickable property private $set_array" data-toggle="collapse" data-target=".$set_array .collapse"> <a name="%24set_array" id="$set_array"> </a><div class="element clickable property private $set_array" data-toggle="collapse" data-target=".$set_array .collapse">
<h2>key/val pairs for insert/update statement</h2> <h2>key/val pairs for insert/update statement</h2>
<pre>$set_array </pre> <pre>$set_array : array</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24set_array_keys" id="$set_array_keys"> </a><div class="element clickable property private $set_array_keys" data-toggle="collapse" data-target=".$set_array_keys .collapse"> <a name="%24set_array_keys" id="$set_array_keys"> </a><div class="element clickable property private $set_array_keys" data-toggle="collapse" data-target=".$set_array_keys .collapse">
<h2>Keys for insert/update statement</h2> <h2>Keys for insert/update statement</h2>
<pre>$set_array_keys </pre> <pre>$set_array_keys : array</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24set_string" id="$set_string"> </a><div class="element clickable property private $set_string" data-toggle="collapse" data-target=".$set_string .collapse"> <a name="%24set_string" id="$set_string"> </a><div class="element clickable property private $set_string" data-toggle="collapse" data-target=".$set_string .collapse">
<h2>Compiled arguments for insert / update</h2> <h2>Compiled arguments for insert / update</h2>
<pre>$set_string </pre> <pre>$set_string : string</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24sql" id="$sql"> </a><div class="element clickable property private $sql" data-toggle="collapse" data-target=".$sql .collapse"> <a name="%24sql" id="$sql"> </a><div class="element clickable property private $sql" data-toggle="collapse" data-target=".$sql .collapse">
<h2>Alias to $this-&gt;db-&gt;sql</h2> <h2>Alias to $this-&gt;db-&gt;sql</h2>
<pre>$sql </pre> <pre>$sql : <a href="../classes/DB_PDO.html">\DB_PDO</a></pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
<a name="%24values" id="$values"> </a><div class="element clickable property private $values" data-toggle="collapse" data-target=".$values .collapse"> <a name="%24values" id="$values"> </a><div class="element clickable property private $values" data-toggle="collapse" data-target=".$values .collapse">
<h2>Values to apply to prepared statements</h2> <h2>Values to apply to prepared statements</h2>
<pre>$values </pre> <pre>$values : array</pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
@ -1086,7 +1086,7 @@ for complex select queries</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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -854,7 +854,7 @@ method if the database does not support 'TRUNCATE';</h2>
</div> </div>
<a name="%24statement" id="$statement"> </a><div class="element clickable property protected $statement" data-toggle="collapse" data-target=".$statement .collapse"> <a name="%24statement" id="$statement"> </a><div class="element clickable property protected $statement" data-toggle="collapse" data-target=".$statement .collapse">
<h2>Reference to the last executed sql query</h2> <h2>Reference to the last executed sql query</h2>
<pre>$statement </pre> <pre>$statement : <a href="http://php.net/manual/en/class.pdostatement.php">\PDOStatement</a></pre>
<div class="labels"></div> <div class="labels"></div>
<div class="row collapse"><div class="span8"><p class="long_description"></p></div></div> <div class="row collapse"><div class="span8"><p class="long_description"></p></div></div>
</div> </div>
@ -865,7 +865,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -280,7 +280,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -207,7 +207,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -243,7 +243,7 @@ directly - the settings should be safe!</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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -66,7 +66,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -92,7 +92,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -63,7 +63,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -282,7 +282,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -66,7 +66,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -93,7 +93,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -210,7 +210,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -96,7 +96,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -114,7 +114,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

View File

@ -315,7 +315,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 2012-04-20T16:33:01-04:00.<br></footer></div> generated on 2012-04-23T13:28:33-04:00.<br></footer></div>
</div> </div>
</body> </body>
</html> </html>

File diff suppressed because it is too large Load Diff

View File

@ -42,7 +42,7 @@ class MySQL extends DB_PDO {
PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES UTF-8 COLLATE 'UTF-8'", PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES UTF-8 COLLATE 'UTF-8'",
)); ));
parent::__construct("mysql:$dsn", $username, $password, $options); parent::__construct("mysql:{$dsn}", $username, $password, $options);
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@ -38,7 +38,7 @@ class ODBC extends DB_PDO {
*/ */
public function __construct($dsn, $username=null, $password=null, $options=array()) public function __construct($dsn, $username=null, $password=null, $options=array())
{ {
parent::__construct("odbc:$dsn", $username, $password, $options); parent::__construct("odbc:{$dsn}", $username, $password, $options);
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@ -13,12 +13,12 @@
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/** /**
* ODBC SQL Class * ODBC SQL Class
* *
* @package Query * @package Query
* @subpackage Drivers * @subpackage Drivers
*/ */
class ODBC_SQL extends DB_SQL { class ODBC_SQL extends DB_SQL {
/** /**

View File

@ -31,7 +31,7 @@ class PgSQL extends DB_PDO {
*/ */
public function __construct($dsn, $username=null, $password=null, $options=array()) public function __construct($dsn, $username=null, $password=null, $options=array())
{ {
parent::__construct("pgsql:$dsn", $username, $password, $options); parent::__construct("pgsql:{$dsn}", $username, $password, $options);
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

View File

@ -23,6 +23,8 @@ class SQLite extends DB_PDO {
/** /**
* Reference to the last executed sql query * Reference to the last executed sql query
*
* @var PDOStatement
*/ */
protected $statement; protected $statement;

Binary file not shown.