diff --git a/lib/classes/persistent.php b/lib/classes/persistent.php index ac214b0d7c2..16095d6bed3 100644 --- a/lib/classes/persistent.php +++ b/lib/classes/persistent.php @@ -389,7 +389,7 @@ abstract class persistent { * represent what is stored in the database. * * @param \stdClass $record A DB record. - * @return persistent + * @return static */ final public function from_record(stdClass $record) { $record = (array) $record; @@ -419,7 +419,7 @@ abstract class persistent { /** * Load the data from the DB. * - * @return persistent + * @return static */ final public function read() { global $DB; @@ -452,7 +452,7 @@ abstract class persistent { /** * Insert a record in the DB. * - * @return persistent + * @return static */ final public function create() { global $DB, $USER; @@ -800,7 +800,7 @@ abstract class persistent { * @param int $skip Limitstart. * @param int $limit Number of rows to return. * - * @return \core\persistent[] + * @return static[] */ public static function get_records($filters = array(), $sort = '', $order = 'ASC', $skip = 0, $limit = 0) { global $DB; @@ -824,7 +824,7 @@ abstract class persistent { * Load a single record. * * @param array $filters Filters to apply. - * @return false|\core\persistent + * @return false|static */ public static function get_record($filters = array()) { global $DB; @@ -842,7 +842,7 @@ abstract class persistent { * @param string $fields * @param int $limitfrom * @param int $limitnum - * @return \core\persistent[] + * @return static[] */ public static function get_records_select($select, $params = null, $sort = '', $fields = '*', $limitfrom = 0, $limitnum = 0) { global $DB;