MDL-59950 analytics: Use cognitive depth and social breadth constants

This commit is contained in:
David Monllao 2017-10-27 10:28:54 +02:00
parent db9d745c7b
commit ef9f60a635
42 changed files with 44 additions and 44 deletions

View File

@ -51,7 +51,7 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 5;
return self::COGNITIVE_LEVEL_5;
}
/**

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 4;
return self::COGNITIVE_LEVEL_4;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -55,9 +55,9 @@ class cognitive_depth extends activity_base {
if ($this->choicedata[$cm->instance]->showresults == 0 || $this->choicedata[$cm->instance]->showresults == 4) {
// Results are not shown to students or are always shown.
return 2;
return self::COGNITIVE_LEVEL_2;
}
return 3;
return self::COGNITIVE_LEVEL_3;
}
}

View File

@ -52,6 +52,6 @@ class social_breadth extends activity_base {
public function get_social_breadth_level(\cm_info $cm) {
$this->fill_choice_data($cm);
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 2;
return self::COGNITIVE_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -55,8 +55,8 @@ class cognitive_depth extends activity_base {
if (!empty($this->publishstats[$cm->instance])) {
// If stats are published we count that the user viewed feedback.
return 3;
return self::COGNITIVE_LEVEL_3;
}
return 2;
return self::COGNITIVE_LEVEL_2;
}
}

View File

@ -53,6 +53,6 @@ class social_breadth extends activity_base {
public function get_social_breadth_level(\cm_info $cm) {
$this->fill_publishstats($cm);
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,7 +51,7 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 4;
return self::COGNITIVE_LEVEL_4;
}
/**

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 2;
return self::COGNITIVE_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,7 +51,7 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,7 +51,7 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,7 +51,7 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 5;
return self::COGNITIVE_LEVEL_5;
}
/**

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -51,7 +51,7 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 3;
return self::COGNITIVE_LEVEL_3;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,7 +51,7 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 5;
return self::COGNITIVE_LEVEL_5;
}
/**

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 3;
return self::COGNITIVE_LEVEL_3;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 2;
return self::COGNITIVE_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,6 +51,6 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 2;
return self::COGNITIVE_LEVEL_2;
}
}

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}

View File

@ -51,7 +51,7 @@ class cognitive_depth extends activity_base {
}
public function get_cognitive_depth_level(\cm_info $cm) {
return 5;
return self::COGNITIVE_LEVEL_5;
}
/**

View File

@ -51,6 +51,6 @@ class social_breadth extends activity_base {
}
public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}