- 09 Oct, 2015 7 commits
-
-
David Mudrák authored
The patch moves the resolving logic from the renderer (where it should not really be) to the plugin manager (controller). This is needed because we will need the very same logic to be used at other places.
-
David Mudrák authored
The actual loading of available updates info objects is moved back to the plugin manager class. As we can now mockup the manager in unit tests, this allows us to bypass the real \core\update\checker and have unit tests for \core\plugininfo\base::available_updates().
-
David Mudrák authored
Plugin info objects are owned by the plugin manager (composition pattern). Even if the plugin manager is a singleton, we need to keep explicit reference to the plugin manager that owns the plugin info so that we can mock up things in unit tests. Therefore this patch introduces a new property of plugin info objects that holds the reference to the instance of the plugin manager that made (and hence owns) the given info instance. The only trouble here is with static methods of plugin info classes such as \core\plugininfo\base::get_enabled_plugins(). In these cases, the code keeps using the core_plugin_manager singleton. The solution would be to pass the plugin manager instance as a parameter but that is not worth of change for now, IMHO.
-
David Mudrák authored
We can now override the plugin manager's methods in the testable subclass while still keeping the singleton behaviour of it. The change makes use of late static binding.
-
David Mudrák authored
Before this patch, whenever core_plugin_manager::get_plugins() was called, it always attached info about available updates. But this is needed only in quite rare cases, such as when the admin is looking at the Plugins overview and Plugins check screens. There is no need to load this on other places and for non-admin users. The patch removes the loading from the method core_plugin_manager::get_plugins_of_type() and implements lazy loading directly in the plugininfo classes so that it is loaded only when \core\plugininfo\base::available_updates() is actually called.
-
David Mudrák authored
The method should check against $CFG->disableupdatenotifications and not $CFG->disableupdateautodeploy. This had to be a copy&paste mistake from the \core\update\deployer::enabled(). While looking at it, I also fixed couple of places where this method should and could be used.
-
David Mudrák authored
The intention here is to make the table a little bit more compact (using less columns) and to make use of the bootstrap based label elements if available.
-
- 08 Oct, 2015 12 commits
-
-
Dan Poltawski authored
-
Dan Poltawski authored
-
-
-
David Monllaó authored
-
-
-
-
-
-
-
Davo Smith authored
-
- 07 Oct, 2015 21 commits
-
-
-
Juan Leyva authored
-
Juan Leyva authored
-
Juan Leyva authored
-
-
git://github.com/xow/moodleDan Poltawski authored
-
-
-
-
-
Rajesh Taneja authored
-
-
-
Cameron Ball authored
-
David Monllaó authored
-
-
-
-
With contributions from Mary Evans.
-
jun authored
-
-