Skip to content

Commit

Permalink
MDL-59950 analytics: Use cognitive depth and social breadth constants
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Oct 27, 2017
1 parent db9d745 commit ef9f60a
Show file tree
Hide file tree
Showing 42 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion mod/assign/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 5;
return self::COGNITIVE_LEVEL_5;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/assign/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/book/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/book/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/chat/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 4;
return self::COGNITIVE_LEVEL_4;
}
}
2 changes: 1 addition & 1 deletion mod/chat/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}
4 changes: 2 additions & 2 deletions mod/choice/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public function get_cognitive_depth_level(\cm_info $cm) {

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;
}
}
2 changes: 1 addition & 1 deletion mod/choice/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ public function get_indicator_type() {

public function get_social_breadth_level(\cm_info $cm) {
$this->fill_choice_data($cm);
return 2;
return self::SOCIAL_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/data/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 2;
return self::COGNITIVE_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/data/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
4 changes: 2 additions & 2 deletions mod/feedback/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function get_cognitive_depth_level(\cm_info $cm) {

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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public function get_indicator_type() {
public function get_social_breadth_level(\cm_info $cm) {
$this->fill_publishstats($cm);

return 2;
return self::SOCIAL_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/folder/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/folder/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/forum/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 4;
return self::COGNITIVE_LEVEL_4;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/forum/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 2;
return self::COGNITIVE_LEVEL_2;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/imscp/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}

}
2 changes: 1 addition & 1 deletion mod/imscp/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/label/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}

}
2 changes: 1 addition & 1 deletion mod/label/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/lesson/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 5;
return self::COGNITIVE_LEVEL_5;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/lesson/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/lti/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 3;
return self::COGNITIVE_LEVEL_3;
}

}
2 changes: 1 addition & 1 deletion mod/lti/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/page/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/page/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/quiz/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 5;
return self::COGNITIVE_LEVEL_5;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/scorm/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 3;
return self::COGNITIVE_LEVEL_3;
}
}
2 changes: 1 addition & 1 deletion mod/scorm/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/survey/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 2;
return self::COGNITIVE_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/survey/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/url/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 1;
return self::COGNITIVE_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/url/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
2 changes: 1 addition & 1 deletion mod/wiki/classes/analytics/indicator/cognitive_depth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 2;
return self::COGNITIVE_LEVEL_2;
}
}
2 changes: 1 addition & 1 deletion mod/wiki/classes/analytics/indicator/social_breadth.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 1;
return self::SOCIAL_LEVEL_1;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_indicator_type() {
}

public function get_cognitive_depth_level(\cm_info $cm) {
return 5;
return self::COGNITIVE_LEVEL_5;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public function get_indicator_type() {
}

public function get_social_breadth_level(\cm_info $cm) {
return 2;
return self::SOCIAL_LEVEL_2;
}
}

0 comments on commit ef9f60a

Please sign in to comment.