MDL-41283 report_participation: Added phpdoc about function not used

In new logging api, xxx_get_view_actions() and xxx_get_post_actions()
will not be used to identify the paticipation of user. Event's crud
and edulevel status will define user's participation.
This commit is contained in:
Rajesh Taneja
2014-04-15 13:31:03 +08:00
parent ff6a853aad
commit b2b4ec308e
23 changed files with 241 additions and 28 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ class record_created extends \core\event\base {
protected function init() {
$this->data['objecttable'] = 'data_records';
$this->data['crud'] = 'c';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
+1 -1
View File
@@ -42,7 +42,7 @@ class record_deleted extends \core\event\base {
protected function init() {
$this->data['objecttable'] = 'data_records';
$this->data['crud'] = 'd';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
+1 -1
View File
@@ -42,7 +42,7 @@ class record_updated extends \core\event\base {
protected function init() {
$this->data['objecttable'] = 'data_records';
$this->data['crud'] = 'u';
$this->data['edulevel'] = self::LEVEL_TEACHING;
$this->data['edulevel'] = self::LEVEL_PARTICIPATING;
}
/**
+13 -1
View File
@@ -1722,7 +1722,12 @@ function data_print_ratings($data, $record) {
}
/**
* For Participantion Reports
* List the actions that correspond to a view of this module.
* This is used by the participation report.
*
* Note: This is not used by new logging system. Event with
* crud = 'r' and edulevel = LEVEL_PARTICIPATING will
* be considered as view action.
*
* @return array
*/
@@ -1731,6 +1736,13 @@ function data_get_view_actions() {
}
/**
* List the actions that correspond to a post of this module.
* This is used by the participation report.
*
* Note: This is not used by new logging system. Event with
* crud = ('c' || 'u' || 'd') and edulevel = LEVEL_PARTICIPATING
* will be considered as post action.
*
* @return array
*/
function data_get_post_actions() {