MDL-50328 tool_lp: Allow competencies to be assigned to a user plan
This commit is contained in:
committed by
Frederic Massart
parent
2ec1b70bcd
commit
554b369b60
@@ -649,6 +649,20 @@ abstract class persistent {
|
||||
return $instances;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load a single record.
|
||||
*
|
||||
* @param array $filters Filters to apply.
|
||||
*
|
||||
* @return \tool_lp\persistent
|
||||
*/
|
||||
public static function get_record($filters = array()) {
|
||||
global $DB;
|
||||
|
||||
$record = $DB->get_record(static::TABLE, $filters);
|
||||
return $record ? new static(0, $record) : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load a list of records based on a select query.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user