MDL-43557 events: fixed minor issues in existing events
This commit is contained in:
@@ -14,10 +14,6 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace core\event;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Event for when a new note entry is updated.
|
||||
*
|
||||
@@ -26,6 +22,10 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
namespace core\event;
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
/**
|
||||
* Class note_updated
|
||||
*
|
||||
@@ -34,7 +34,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @property-read array $other {
|
||||
* Extra information about event.
|
||||
*
|
||||
* @type string publishstate publish state.
|
||||
* - string publishstate: the publish state.
|
||||
* }
|
||||
*
|
||||
* @package core
|
||||
@@ -42,7 +42,7 @@ defined('MOODLE_INTERNAL') || die();
|
||||
* @copyright 2013 Ankit Agarwal
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
class note_updated extends \core\event\base {
|
||||
class note_updated extends base {
|
||||
|
||||
/**
|
||||
* Set basic properties for the event.
|
||||
@@ -68,7 +68,8 @@ class note_updated extends \core\event\base {
|
||||
* @return string
|
||||
*/
|
||||
public function get_description() {
|
||||
return 'Note for user with id "'. $this->relateduserid . '" was updated by user with id "'. $this->userid . '"';
|
||||
return "The note with the id '$this->objectid' for the user with the id '$this->relateduserid' was updated by the user " .
|
||||
"with the id '$this->userid'.";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user