MDL-14679 fixing more incorrect return types

This commit is contained in:
Petr Skoda
2010-08-22 19:00:28 +00:00
parent 5212b07f20
commit 3503dcad31
7 changed files with 27 additions and 27 deletions
+4 -4
View File
@@ -647,7 +647,7 @@ class pgsql_native_moodle_database extends moodle_database {
* @param array $params array of sql parameters
* @param int $limitfrom return a subset of records, starting at this point (optional, required if $limitnum is set).
* @param int $limitnum return a subset comprising this many records (optional, required if $limitfrom is set).
* @return mixed an array of objects, or empty array if no records were found
* @return array of objects, or empty array if no records were found
* @throws dml_exception if error
*/
public function get_records_sql($sql, array $params=null, $limitfrom=0, $limitnum=0) {
@@ -705,7 +705,7 @@ class pgsql_native_moodle_database extends moodle_database {
*
* @param string $sql The SQL query
* @param array $params array of sql parameters
* @return mixed array of values
* @return array of values
* @throws dml_exception if error
*/
public function get_fieldset_sql($sql, array $params=null) {
@@ -728,7 +728,7 @@ class pgsql_native_moodle_database extends moodle_database {
* @param bool $returnit return it of inserted record
* @param bool $bulk true means repeated inserts expected
* @param bool $customsequence true if 'id' included in $params, disables $returnid
* @return true or new id
* @return bool|int true or new id
* @throws dml_exception if error
*/
public function insert_record_raw($table, $params, $returnid=true, $bulk=false, $customsequence=false) {
@@ -791,7 +791,7 @@ class pgsql_native_moodle_database extends moodle_database {
* @param string $table The database table to be inserted into
* @param object $data A data object with values for one or more fields in the record
* @param bool $returnid Should the id of the newly created record entry be returned? If this option is not requested then true/false is returned.
* @return true or new id
* @return bool|int true or new id
* @throws dml_exception if error
*/
public function insert_record($table, $dataobject, $returnid=true, $bulk=false) {