Commit c4fd68c6 authored by Alexander Butenko's avatar Alexander Butenko

fix rawQuery prototype and doc

parent 35cc763c
...@@ -280,15 +280,14 @@ class MysqliDb ...@@ -280,15 +280,14 @@ class MysqliDb
} }
/** /**
* Pass in a raw query and an array containing the parameters to bind to the prepaird statement. * Execute raw SQL query.
* *
* @param string $query Contains a user-provided query. * @param string $query User-provided query to execute.
* @param array $bindParams All variables to bind to the SQL statment. * @param array $bindParams Variables array to bind to the SQL statement.
* @param bool $sanitize If query should be filtered before execution
* *
* @return array Contains the returned rows from the query. * @return array Contains the returned rows from the query.
*/ */
public function rawQuery ($query, $bindParams = null, $sanitize = true) public function rawQuery ($query, $bindParams = null)
{ {
$params = array(''); // Create the empty 0 index $params = array(''); // Create the empty 0 index
$this->_query = $query; $this->_query = $query;
......
...@@ -7,7 +7,7 @@ MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements ...@@ -7,7 +7,7 @@ MysqliDb -- Simple MySQLi wrapper and object mapper with prepared statements
**[Update Query](#update-query)** **[Update Query](#update-query)**
**[Select Query](#select-query)** **[Select Query](#select-query)**
**[Delete Query](#delete-query)** **[Delete Query](#delete-query)**
**[Running raw SQL queries](#running-raw-sql-queries)** **[Running raw SQL queries](#running-raw-sql-queries)**
**[Query Keywords](#query-keywords)** **[Query Keywords](#query-keywords)**
**[Raw Query](#raw-query-method)** **[Raw Query](#raw-query-method)**
**[Where Conditions](#where-method)** **[Where Conditions](#where-method)**
......
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