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