Petr Škoda
6b32d6bc93
MDL-40995 simplify minify integration and fix all known issues
2013-08-03 17:16:17 +02:00
Petr Škoda
f0f0e1fe73
MDL-40815 deprecate events_trigger()
2013-08-02 16:48:19 +02: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
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
Ankit Agarwal
3049780a3a
MDL-40682 events: Add a event for when a blog entry is created
2013-07-31 10:09:17 +08:00
Frederic Massart
d95db915ed
MDL-40934 core: Moving \core_auth\event\user_loggedin to \core
2013-07-30 16:41:20 +08:00
Dan Poltawski
7a3f9421cb
Merge branch 'w30_MDL-40545_m26_localcachedir' of https://github.com/skodak/moodle
2013-07-22 15:47:48 +08:00
Petr Škoda
9ba6076cff
MDL-23493 add support for theme fonts
2013-07-20 12:47:08 +02: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
9cd7c32524
MDL-39846 improve docs and fix use of deprecated classes
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
b474bec396
MDL-39846 sample conversion of role assignment events
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
Damyon Wiese
6ec1f2f2eb
Merge branch 'wip-MDL-40167-m26' of git://github.com/samhemelryk/moodle
2013-07-16 13:25:54 +08:00
Sam Hemelryk
84192d7836
MDL-40167 dock: converted the dock JS to a YUI shifted module.
...
The patch converts the dock into a YUI shifter module and at
the same time improves several aspects of its operation.
The features of this patch include:
* Dock Module conversion.
* A loader that ensures we don't include the dock JS or its
requirements unless actually required.
* We no longer include the dock JS for themes that don't
enable it.
* Blocks no longer add registration events to the page
instead a dockable attribute is added to the html and the
loader looks for that.
* The dock module is properly documented and running YUIDoc
gives good quality documentation.
* We no longer need the dock module registration or
subcomponent.
* All events that can be delegated are now delegated.
* Removed unused variables and code left over after fixes.
* Support for docking blocks renderered using the new blocks
render method. Better support for custom block regions.
2013-07-15 09:46:03 +12:00
Petr Škoda
abb043c3a1
MDL-40435 require MOODLE_INTERNAL in core_component
...
We need to include db/subplugins.php when building core_component cache,
there are some MOODLE_INTERNALs there…
2013-07-13 19:25:17 +02:00
Petr Škoda
766e04f38a
MDL-40435 detect permission setting problems in core_component
2013-07-13 16:08:50 +02:00
Petr Škoda
d7245e3400
MDL-40475 add alternative component cache location and other improvements
...
Improvements include:
* Alternative location might be useful when server administrator wants to maintain
a local copy of component cache instead of using shared $CFG->cachedir.
* Component caching is now enabled in behat tests which should improve performance.
* Standardised ignoring of component caching.
* Fixed debug mode in ABORT_AFTER_CONFIG scripts.
* General documentation improvements.
2013-07-12 13:05:41 +02:00
Petr Škoda
c05a50992e
MDL-40415 add explicit OPcache support
2013-07-04 19:32:26 +02:00
Damyon Wiese
f48f4827d1
Merge branch 'w27_MDL-40299_m26_textlib' of https://github.com/skodak/moodle
2013-07-02 15:23:38 +08:00
Petr Škoda
3601c5f09c
MDL-26943 implement subplugin support for local plugins
2013-06-30 09:18:35 +02:00
Petr Škoda
d534708fd3
MDL-40299 textlib conversion to core_text and core_collator
2013-06-27 22:18:57 +02:00
Petr Škoda
1652aa9cdd
MDL-39854 fix borked core_component cache
2013-06-19 09:42:05 +02:00
David Monllao
1d4ae19d62
MDL-39854 disable component cachin in BEHAT_TEST
2013-06-19 11:28:32 +08:00
Petr Škoda
04a4b97f99
MDL-39854 disable component caching in BEHAT_UTIL
2013-06-18 12:02:07 +02:00
Petr Škoda
9e19a0f08b
MDL-39854 reimplement Frankenstyle support and enable classloader
...
Better performance, more reliable, completely self contained,
more validation and full backwards compatibility.
This will also allow us to implement ignoring of plugins.
2013-06-18 09:10:07 +02:00