MDL-43557 events: fixed minor issues in existing events

This commit is contained in:
Mark Nelson
2014-04-29 19:16:11 -07:00
parent 4d9c1b573e
commit 02a5a4b2ff
319 changed files with 2616 additions and 1982 deletions
+8 -7
View File
@@ -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'.";
}
/**