MDL-59950 analytics: Use cognitive depth and social breadth constants
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user