MDL-57273 core: Remove magic setters and getters

Remove the magic getters and setters from persistent. They are deprecated only in the persistent
class for competencies.
This commit is contained in:
Damyon Wiese
2017-01-20 12:56:19 +08:00
parent 32896dcbab
commit 9c91a9593d
120 changed files with 2868 additions and 2823 deletions
@@ -49,12 +49,12 @@ class competency_framework_created extends base {
* @return self
*/
public static final function create_from_framework(competency_framework $framework) {
if (!$framework->get_id()) {
if (!$framework->get('id')) {
throw new \coding_exception('The competency framework ID must be set.');
}
$event = static::create(array(
'contextid' => $framework->get_contextid(),
'objectid' => $framework->get_id()
'contextid' => $framework->get('contextid'),
'objectid' => $framework->get('id')
));
$event->add_record_snapshot(competency_framework::TABLE, $framework->to_record());
return $event;