MDL-38210 report_participation: implement get view/post actions

This commit is contained in:
Tim Lock
2015-04-01 10:28:41 +10:30
parent a3fcd87495
commit 0ea62d56c4
+29
View File
@@ -247,6 +247,35 @@ function workshop_delete_instance($id) {
return true;
}
/**
* 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
*/
function workshop_get_view_actions() {
return array('view', 'view all', 'view submission', 'view example');
}
/**
* 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 workshop_get_post_actions() {
return array('add', 'add assessment', 'add example', 'add submission',
'update', 'update assessment', 'update example', 'update submission');
}
/**
* Return a small object with summary information about what a
* user has done with a given particular instance of this module