MDL-43557 events: fixed minor issues in existing events
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* core webservice function_called event.
|
||||
* Web service function called event.
|
||||
*
|
||||
* @package core
|
||||
* @copyright 2013 Frédéric Massart
|
||||
@@ -26,12 +26,12 @@ namespace core\event;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* core webservice function_called event class.
|
||||
* Web service function called event class.
|
||||
*
|
||||
* @property-read array $other {
|
||||
* Extra information about event.
|
||||
*
|
||||
* @type string function name of the function.
|
||||
* - string function: name of the function.
|
||||
* }
|
||||
*
|
||||
* @package core
|
||||
@@ -39,7 +39,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2013 Frédéric Massart
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class webservice_function_called extends \core\event\base {
|
||||
class webservice_function_called extends base {
|
||||
|
||||
/**
|
||||
* Legacy log data.
|
||||
@@ -87,7 +87,7 @@ class webservice_function_called extends \core\event\base {
|
||||
/**
|
||||
* Return the legacy event log data.
|
||||
*
|
||||
* @return void
|
||||
* @param array $legacydata the legacy data to set
|
||||
*/
|
||||
public function set_legacy_logdata($legacydata) {
|
||||
$this->legacylogdata = $legacydata;
|
||||
@@ -102,7 +102,7 @@ class webservice_function_called extends \core\event\base {
|
||||
protected function validate_data() {
|
||||
parent::validate_data();
|
||||
if (!isset($this->other['function'])) {
|
||||
throw new \coding_exception('The key \'function\' needs to be set in $other.');
|
||||
throw new \coding_exception('The \'function\' value must be set in other.');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user