mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-59057 analytics: Standarize indicators and targets ids
Part of MDL-57791 epic.
This commit is contained in:
parent
e499074f39
commit
b0c2492906
5 changed files with 14 additions and 6 deletions
|
@ -268,7 +268,7 @@ class model {
|
|||
$now = time();
|
||||
|
||||
$modelobj = new \stdClass();
|
||||
$modelobj->target = '\\' . get_class($target);
|
||||
$modelobj->target = $target->get_id();
|
||||
$modelobj->indicators = json_encode($indicatorclasses);
|
||||
$modelobj->version = $now;
|
||||
$modelobj->timecreated = $now;
|
||||
|
@ -1057,7 +1057,7 @@ class model {
|
|||
}
|
||||
throw new \moodle_exception('errorinvalidindicator', 'analytics', '', $indicator);
|
||||
}
|
||||
$indicatorclasses[] = '\\' . get_class($indicator);
|
||||
$indicatorclasses[] = $indicator->get_id();
|
||||
}
|
||||
|
||||
return $indicatorclasses;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue