MDL-50328 tool_lp: Allow competencies to be assigned to a user plan

This commit is contained in:
Issam Taboubi
2016-04-18 10:58:40 +08:00
committed by Frederic Massart
parent 2ec1b70bcd
commit 554b369b60
11 changed files with 644 additions and 16 deletions
+14
View File
@@ -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.
*