1: <?php
2: /**
3: * This file contains the upgrade job 10.
4: *
5: * @package Setup
6: * @subpackage UpgradeJob
7: * @author Mischa Holz
8: * @copyright four for business AG <www.4fb.de>
9: * @license http://www.contenido.org/license/LIZENZ.txt
10: * @link http://www.4fb.de
11: * @link http://www.contenido.org
12: */
13:
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15:
16: /**
17: * Upgrade job 10.
18: * Add the execution order column to the plugin table
19: *
20: * @package Setup
21: * @subpackage UpgradeJob
22: */
23: class cUpgradeJob_0010 extends cUpgradeJobAbstract {
24:
25: public $maxVersion = "4.9.1";
26:
27: public function _execute() {
28: global $db, $cfg;
29:
30: plugin_include('pim', 'classes/class.pim.plugin.collection.php');
31:
32: $pluginColl = new PimPluginCollection();
33: $pluginColl->select();
34: $i = 1;
35: while ($plugin = $pluginColl->next()) {
36: $plugin->set('executionorder', $i);
37: $plugin->store();
38:
39: $i++;
40: }
41: }
42:
43: }
44: