MDL-41437 rework plugin_manager caching and version info in blocks and modules

This patch includes:

* version column removed from modules table, now using standard config, this allows decimal version for modules
* version column removed from block table, now using standard config, this allows decimal version for blocks
* module version.php can safely use $plugins instead of module
* new plugin_manager bulk caching, this should help with MUC performance when logged in as admin
* all missing plugins are now in plugin overview (previously only blocks and modules)
* simplified code and improved coding style
* reworked plugin_manager unit tests - now using real plugins instead of mocks
* unit tests now fail if any plugin does not contain proper version.php file
* allow uninstall of deleted filters
This commit is contained in:
Petr Škoda 2013-09-14 23:57:21 +02:00
parent 81881cb9d6
commit bde002b81a
50 changed files with 1601 additions and 1940 deletions

View file

@ -1,4 +0,0 @@
<?php
$module->version = 2012030500;
$module->requires = 2012010100;

View file

@ -1,5 +0,0 @@
<?php
$plugin->version = 2013041103;
$plugin->requires = 2013010100;
$plugin->component = 'bazmeg_one';

View file

@ -1,4 +0,0 @@
<?php
$module->version = 2012030500;
$module->requires = 2012010100;

View file

@ -1,6 +0,0 @@
<?php
$plugin->version = 2013041103;
$plugin->requires = 2013010100;
$plugin->component = 'foolish_frog';
$plugin->dependencies = array('mod_foo' => 2012030500);

View file

@ -1,6 +0,0 @@
<?php
$plugin->version = 2013041103;
$plugin->requires = 2012010100;
$plugin->component = 'foolish_hippo';
$plugin->dependencies = array('foolish_frog' => ANY_VERSION);

View file

@ -1,10 +0,0 @@
<?php
$module->version = 2012030500;
$module->requires = 2012010100;
$module->component = 'mod_foo';
$module->dependencies = array(
'mod_bar' => 2012030500,
'mod_missing' => ANY_VERSION,
'foolish_frog' => ANY_VERSION,
);

View file

@ -1,5 +0,0 @@
<?php
$module->version = 2013041900;
$module->requires = 2012010100;
$module->component = 'mod_new';

View file

@ -1,6 +0,0 @@
<?php
$plugin->version = 2013041103;
$plugin->requires = 2013010100;
$plugin->component = 'quxcat_one';
$plugin->dependencies = array('bazmeg_one' => 2013010100);

View file

@ -1,5 +0,0 @@
<?php
$plugin->version = 2013041103;
$plugin->requires = 2013010100;
$plugin->component = 'mod_qux';