Commit Graph

24 Commits

Author SHA1 Message Date
Mark Nelson
607021c14b MDL-46455 events: added more mapping
Also fixed a few bugs.
2015-10-11 18:52:36 -07:00
Damyon Wiese
0817451470 MDL-46455 events: Add mapping info to events
This commit covers all events outside of /mod/. It adds mapping info for restoring
events, or the default implementation which returns false if mapping is not required.
2015-10-11 18:14:58 -07:00
Mark Nelson
3b0347712a MDL-45445 events: added '(optional)' to event params where applicable 2014-06-12 20:46:58 -07:00
Mark Nelson
d0c65a411f MDL-45445 events: added missing 'other' validation 2014-06-12 20:46:58 -07:00
Mark Nelson
943c61051f MDL-45445 events: added missing 'relateduserid' validation 2014-06-12 20:46:58 -07:00
Andrew Nicols
02915dfc23 MDL-45357 events: Remove unnecessary the before 'id' in event descriptions 2014-05-06 16:45:05 +08:00
Mark Nelson
c5cfb3ca98 MDL-45357 events: changed event descriptions to ensure consistency in core 2014-05-05 00:55:50 -07:00
Mark Nelson
02a5a4b2ff MDL-43557 events: fixed minor issues in existing events 2014-04-29 19:16:11 -07:00
Ankit Agarwal
9638600bbb MDL-45035 events: Fix @package and @since tags in Moodle 2.6 events 2014-04-11 13:32:33 +08:00
Petr Škoda
32f906b677 MDL-43661 use new edulevel in all existing events 2014-01-21 16:12:35 +08:00
Rajesh Taneja
184afb6b73 MDL-43238 events: Added event other information in event php doc block 2014-01-03 15:03:48 +08:00
Petr Škoda
fc4365d0fe MDL-42555 fix moodle_url typo in namespaces 2013-10-29 17:03:58 +08:00
Mark Nelson
5999e40f01 MDL-41619 events: ensure direct access to event class files is prohibited 2013-09-05 18:43:58 +08:00
Frederic Massart
38d6fbfa87 MDL-41040 event: Level property uses defined event constants 2013-08-21 10:04:02 +08:00
Rajesh Taneja
35e4eb42c0 MDL-40044 Roles: Updated role_assigned and role_unassigned event to remove add_to_log 2013-08-09 18:02:02 +08:00
Ankit Agarwal
2244600337 MDL-40935 events: get_legacy_eventname() should be public and static 2013-08-06 14:25:37 +08:00
Rajesh Taneja
91665753df MDL-41000 Events: Fixed return values for get_name() and get_description() in existing events
Changes done for following events:
- \core_auth\event\user_loggedin
- \core\event\role_assigned
- \core\event\role_unassigned
2013-08-02 14:45:52 +08:00
Petr Škoda
82b1fb5184 MDL-39846 make all legacy info protected so that it is not used accidentally outside of trigger() 2013-07-19 09:00:42 +02:00
Petr Škoda
a85258cac8 MDL-39846 introduce new objecttable property 2013-07-19 08:43:29 +02:00
Petr Škoda
5fef139cd9 MDL-39846 rename cached record to snapshot 2013-07-19 08:43:28 +02:00
Petr Škoda
c4297815eb MDL-39846 rename 'extra' event property to 'other' 2013-07-19 08:43:28 +02:00
Petr Škoda
05a970d3be MDL-39846 add logging TODOs 2013-07-19 08:43:28 +02:00
Petr Škoda
4b734e74ae MDL-39846 more fixing and cleanup of new events
* fix typos (thanks Rajesh)
* move log related data out from event API specification
* change callable key in definition to callback
* use event data in observers instead of cached records if possible
* event level is now a number 1…100
* improved event safety checks
* add event name and description method
* new can_view() method
* improve unit tests to test all callable types
* improved performance
2013-07-19 08:43:27 +02:00
Petr Škoda
b474bec396 MDL-39846 sample conversion of role assignment events 2013-07-19 08:43:27 +02:00