MDL-59057 analytics: Standarize indicators and targets ids

Part of MDL-57791 epic.
This commit is contained in:
David Monllao 2017-06-09 13:29:56 +02:00
parent e499074f39
commit b0c2492906
5 changed files with 14 additions and 6 deletions

View file

@ -53,6 +53,15 @@ abstract class calculable {
return get_called_class();
}
/**
* The class id is the calculable class full qualified class name.
*
* @return string
*/
public function get_id() {
return '\\' . get_class($this);
}
/**
* add_sample_data
*