mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
Merge branch 'MDL-65096-m' of https://github.com/micaherne/moodle
This commit is contained in:
commit
5e58b43ca7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user