Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/db/i_db_connection.php
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Line(s) | |||||
/** | /** | ||||
* Queries db with $sql query supplied and returns rows selected if any, false otherwise. | * Queries db with $sql query supplied and returns rows selected if any, false otherwise. | ||||
* | * | ||||
* Optional parameter $key_field allows to set one of the query fields value as key in string array. | * Optional parameter $key_field allows to set one of the query fields value as key in string array. | ||||
* | * | ||||
* @param string $sql | * @param string $sql | ||||
* @param string $key_field | * @param string $key_field | ||||
* @param bool $no_debug | * @param boolean|null $no_debug | ||||
* @return Array | * @return Array | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function Query($sql, $key_field = null, $no_debug = false); | public function Query($sql, $key_field = null, $no_debug = null); | ||||
/** | /** | ||||
* Returns iterator to a recordset, produced from running $sql query. | * Returns iterator to a recordset, produced from running $sql query. | ||||
* | * | ||||
* Queries db with $sql query supplied and returns kMySQLQuery iterator or false in case of error. | * Queries db with $sql query supplied and returns kMySQLQuery iterator or false in case of error. | ||||
* Optional parameter $key_field allows to set one of the query fields value as key in string array. | * Optional parameter $key_field allows to set one of the query fields value as key in string array. | ||||
* | * | ||||
* @param string $sql | * @param string $sql | ||||
* @param string $key_field | * @param string $key_field | ||||
* @param bool $no_debug | * @param boolean|null $no_debug | ||||
* @param string $iterator_class | * @param string $iterator_class | ||||
* @return kMySQLQuery|bool | * @return kMySQLQuery|bool | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function GetIterator($sql, $key_field = null, $no_debug = false, $iterator_class = 'kMySQLQuery'); | public function GetIterator($sql, $key_field = null, $no_debug = null, $iterator_class = 'kMySQLQuery'); | ||||
/** | /** | ||||
* Free memory used to hold recordset handle. | * Free memory used to hold recordset handle. | ||||
* | * | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function Destroy(); | public function Destroy(); | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |