Skip to content

Commit

Permalink
MDL-59117 core_analytics: Move all indicators to respective modules
Browse files Browse the repository at this point in the history
Part of MDL-57791 epic.
  • Loading branch information
ankitagarwal authored and David Monllao committed Jul 24, 2017
1 parent ebd55f6 commit 5846c72
Show file tree
Hide file tree
Showing 95 changed files with 716 additions and 705 deletions.
45 changes: 0 additions & 45 deletions analytics/classes/local/indicator/choice/activity_base.php

This file was deleted.

Expand Up @@ -59,10 +59,19 @@ abstract class community_of_inquiry_activity extends linear {
const INDICATOR_SOCIAL = "social";

/**
* TODO Automate this when merging into core.
* Returns the activity type. No point in changing this class in children classes.
*
* @var string The activity name (e.g. assign or quiz)
*/
abstract protected function get_activity_type();
final protected function get_activity_type() {
$class = get_class($this);
$package = stristr($class, "\\", true);
$type = str_replace("mod_", "", $package);
if ($type === $package) {
throw new \coding_exception("$class does not belong to any module specific namespace");
}
return $type;
}

protected function get_cognitive_depth_level(\cm_info $cm) {
throw new \coding_exception('Overwrite get_cognitive_depth_level method to set your activity potential cognitive ' .
Expand Down
45 changes: 0 additions & 45 deletions analytics/classes/local/indicator/feedback/activity_base.php

This file was deleted.

45 changes: 0 additions & 45 deletions analytics/classes/local/indicator/folder/activity_base.php

This file was deleted.

45 changes: 0 additions & 45 deletions analytics/classes/local/indicator/glossary/activity_base.php

This file was deleted.

45 changes: 0 additions & 45 deletions analytics/classes/local/indicator/imscp/activity_base.php

This file was deleted.

45 changes: 0 additions & 45 deletions analytics/classes/local/indicator/label/activity_base.php

This file was deleted.

45 changes: 0 additions & 45 deletions analytics/classes/local/indicator/resource/activity_base.php

This file was deleted.

45 changes: 0 additions & 45 deletions analytics/classes/local/indicator/survey/activity_base.php

This file was deleted.

0 comments on commit 5846c72

Please sign in to comment.