Frederic Massart
31e571cdf0
MDL-42021 events: Debug message when objecttable set without an objectid
2013-09-27 14:29:21 +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
Petr Škoda
96f81ea385
MDL-39474 introduce $CFG->debugdeveloper and cleanup $CFG init
2013-08-12 13:01:47 +02:00
Ankit Agarwal
2244600337
MDL-40935 events: get_legacy_eventname() should be public and static
2013-08-06 14:25:37 +08:00
Sam Hemelryk
d2132f02e2
Merge branch 'wip-mdl-41000' of git://github.com/rajeshtaneja/moodle
2013-08-06 17:45:16 +12:00
Sam Hemelryk
17440b2198
Merge branch 'w32_MDL-40815_m26_deprevent' of https://github.com/skodak/moodle
...
Conflicts:
lib/deprecatedlib.php
2013-08-06 15:38:18 +12:00
Sam Hemelryk
471dd4ff67
Merge branch 'MDL-40963-master' of git://github.com/ankitagarwal/moodle
2013-08-06 13:59:23 +12:00
Frederic Massart
513d879381
MDL-41029 core: Fix wrong guessing of course id in event base
2013-08-05 15:41:16 +08:00
Petr Škoda
f0f0e1fe73
MDL-40815 deprecate events_trigger()
2013-08-02 16:48:19 +02:00
Rajesh Taneja
fc9fc9fb30
MDL-41000 Events: Fixed phpdoc for get_name and get_description in \core\event\base class
2013-08-02 13:48:11 +08:00
Ankit Agarwal
1ccc126806
MDL-40963 events: get_name() should use get_called_class() instead of __CLASS__
2013-08-01 15:30:08 +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
fd4f3e9e8e
MDL-39846 lock down snapshot handling in event
2013-07-19 08:46:29 +02:00
Petr Škoda
fb23739e8d
MDL-39846 prevent data modification from event init() method
2013-07-19 08:43:31 +02:00
Petr Škoda
ef1987dcdd
MDL-39846 use new special value -1 in $CFG->loglifetime to prevent legacy logging
2013-07-19 08:43:31 +02:00
Petr Škoda
132eff909c
MDL-39846 rename the $object var to match the property name
...
Thanks Fred again.
2013-07-19 08:43:31 +02:00
Petr Škoda
660f049f09
MDL-39846 rename object property to target
...
Credit goes to Fred, this should be easier to understand.
2013-07-19 08:43:31 +02:00
Petr Škoda
c61a3a5c94
MDL-39846 improve docs
2013-07-19 08:43:31 +02:00
Petr Škoda
f8a39659aa
MDL-39846 remove contextlevel validation
...
Do this in new validate_data() instead, thanks Fred.
2013-07-19 08:43:30 +02:00
Petr Škoda
2d36d49860
MDL-39846 fix comment typos
...
Thanks Fred!
2013-07-19 08:43:30 +02:00
Petr Škoda
097011c450
MDL-39846 simplify context parameter when creating new evetns
2013-07-19 08:43:30 +02:00
Petr Škoda
fddd1018f6
MDL-39846 improve validation and enable hardcoding of system context
2013-07-19 08:43:30 +02:00
Petr Škoda
4ad6d5c589
MDL-39846 prevent use of snapshots in restored events
2013-07-19 08:43:30 +02:00
Petr Škoda
300dbc66f2
MDL-39846 prevent adding of snapshots after event trigger
2013-07-19 08:43:30 +02:00
Petr Škoda
b396d40e93
MDL-39846 fix name of property for record snapshots
2013-07-19 08:43:29 +02:00
Petr Škoda
ed17808d99
MDL-39846 add event property iterator
2013-07-19 08:43:29 +02:00
Petr Škoda
27af3e625c
MDL-39846 require context when creating events
...
No more guessing or falling back to system context.
2013-07-19 08:43:29 +02:00
Petr Škoda
62401e8fd5
MDL-39846 implement event sink for unit testing
2013-07-19 08:43:29 +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
b0cdc969f7
MDL-39846 use word 'extra' for special log fields
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
605a8c336f
MDL-39846 add more magic and improve tests
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
2262656430
MDL-39846 protect event dispatching process
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
d8a1f4263a
MDL-39846 implement new event dispatching and base event class
2013-07-19 08:43:27 +02:00