Index: branches/5.2.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r16424 -r16432 --- branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 16424) +++ branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 16432) @@ -1,6 +1,6 @@ hasError(); } - - /** - * Returns auto increment field value from - * insert like operation if any, zero otherwise + * Returns auto increment field value from insert like operation if any, zero otherwise. * * @return int * @access public @@ -659,7 +648,7 @@ } /** - * Returns row count affected by last query + * Returns row count affected by last query. * * @return int * @access public @@ -670,7 +659,7 @@ } /** - * Returns LIMIT sql clause part for specific db + * Returns LIMIT sql clause part for specific db. * * @param int $offset * @param int $rows @@ -687,8 +676,7 @@ } /** - * If it's a string, adds quotes and backslashes (only work since PHP 4.3.0) - * Otherwise returns as-is + * If it's a string, adds quotes and backslashes. Otherwise returns as-is. * * @param mixed $string * @return string @@ -708,7 +696,7 @@ } /** - * Calls "qstr" function for each given array element + * Calls "qstr" function for each given array element. * * @param Array $array * @param string $function @@ -720,7 +708,7 @@ } /** - * Escapes strings (only work since PHP 4.3.0) + * Escapes string. * * @param mixed $string * @return string @@ -739,7 +727,7 @@ } /** - * Returns last error code occurred + * Returns last error code occurred. * * @return int * @access public @@ -750,7 +738,7 @@ } /** - * Returns last error message + * Returns last error message. * * @return string * @access public @@ -762,7 +750,7 @@ /** * Performs insert of given data (useful with small number of queries) - * or stores it to perform multiple insert later (useful with large number of queries) + * or stores it to perform multiple insert later (useful with large number of queries). * * @param Array $fields_hash * @param string $table @@ -805,7 +793,7 @@ } /** - * Update given field values to given record using $key_clause + * Update given field values to given record using $key_clause. * * @param Array $fields_hash * @param string $table @@ -831,7 +819,7 @@ } /** - * Allows to detect table's presence in database + * Allows to detect table's presence in database. * * @param string $table_name * @param bool $force @@ -863,7 +851,7 @@ } /** - * Returns query processing statistics + * Returns query processing statistics. * * @return Array * @access public @@ -874,7 +862,7 @@ } /** - * Get status information from SHOW STATUS in an associative array + * Get status information from SHOW STATUS in an associative array. * * @param string $which * @return Array @@ -977,12 +965,10 @@ } /** - * 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. + * 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. + * * @param string $sql * @param string $key_field * @param bool $no_debug @@ -1057,13 +1043,14 @@ } /** - * 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. + * 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. + * Optional parameter $key_field allows to set one of the query fields value as key in string array. + * * @param string $sql * @param string $key_field - * @param bool $no_debug + * @param bool $no_debug * @param string $iterator_class * @return kMySQLQuery|bool * @access public