Commit 9ced1931 authored by Josh Campbell's avatar Josh Campbell

Updated docs

parent 79b3bd45
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
* @package MysqliDB * @package MysqliDB
* @author Jeffery Way <jeffrey@jeffrey-way.com> * @author Jeffery Way <jeffrey@jeffrey-way.com>
* @author Josh Campbell <jcampbell@ajillion.com> * @author Josh Campbell <jcampbell@ajillion.com>
* @copyright Copyright (c) 2010 Jeffery Way * @copyright Copyright (c) 2010
* @license http://opensource.org/licenses/gpl-3.0.html GNU Public License * @license http://opensource.org/licenses/gpl-3.0.html GNU Public License
* @version 1.1 * @version 1.1
**/ **/
...@@ -53,7 +53,7 @@ class MysqliDB { ...@@ -53,7 +53,7 @@ class MysqliDB {
* *
* @var array * @var array
*/ */
protected $_bindParams = array(''); protected $_bindParams = array(''); // Create the empty 0 index
public function __construct($host, $username, $password, $db) { public function __construct($host, $username, $password, $db) {
$this->_mysqli = new mysqli($host, $username, $password, $db) $this->_mysqli = new mysqli($host, $username, $password, $db)
...@@ -83,7 +83,7 @@ class MysqliDB { ...@@ -83,7 +83,7 @@ class MysqliDB {
protected function reset() protected function reset()
{ {
$this->_where = array(); $this->_where = array();
$this->_bindParams = array(''); $this->_bindParams = array(''); // Create the empty 0 index
unset($this->_query); unset($this->_query);
unset($this->_whereTypeList); unset($this->_whereTypeList);
unset($this->_paramTypeList); unset($this->_paramTypeList);
...@@ -102,7 +102,7 @@ class MysqliDB { ...@@ -102,7 +102,7 @@ class MysqliDB {
$stmt = $this->_prepareQuery(); $stmt = $this->_prepareQuery();
if (gettype($bindParams) === 'array') { if (gettype($bindParams) === 'array') {
$params = array(''); $params = array(''); // Create the empty 0 index
foreach ($bindParams as $prop => $val) { foreach ($bindParams as $prop => $val) {
$params[0] .= $this->_determineType($val); $params[0] .= $this->_determineType($val);
array_push($params, &$bindParams[$prop]); array_push($params, &$bindParams[$prop]);
...@@ -390,7 +390,6 @@ class MysqliDB { ...@@ -390,7 +390,6 @@ class MysqliDB {
return $results; return $results;
} }
/** /**
* Method attempts to prepare the SQL query * Method attempts to prepare the SQL query
* and throws an error if there was a problem. * and throws an error if there was a problem.
...@@ -403,7 +402,6 @@ class MysqliDB { ...@@ -403,7 +402,6 @@ class MysqliDB {
return $stmt; return $stmt;
} }
public function __destruct() public function __destruct()
{ {
$this->_mysqli->close(); $this->_mysqli->close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment