MDL-44017 Events: Deprecated content_viewed event

Replaced content_viewed event with appropriate events and deprecated
content_viewed event
This commit is contained in:
Rajesh Taneja 2014-03-04 16:13:28 +08:00
parent 0a489777fc
commit e1b16f9773
39 changed files with 1291 additions and 453 deletions

View file

@ -28,17 +28,11 @@ defined('MOODLE_INTERNAL') || die();
/**
* Event for when a choice activity report is viewed.
*
* @property-read array $other {
* Extra information about event.
*
* @type string content viewed content identifier.
* }
*
* @package mod_choice
* @copyright 2013 Adrian Greeve
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class report_viewed extends \core\event\content_viewed {
class report_viewed extends \core\event\base {
/**
* Init method.
@ -58,6 +52,15 @@ class report_viewed extends \core\event\content_viewed {
return get_string('event_report_viewed', 'choice');
}
/**
* Returns description of what happened.
*
* @return string
*/
public function get_description() {
return "The user with id $this->userid has viewed report for choice with instanceid $this->objectid";
}
/**
* Returns relevant URL.
* @return \moodle_url