1: <?php
2:
3: /**
4: * This file contains the upgrade job 11.
5: *
6: * @package Setup
7: * @subpackage UpgradeJob
8: * @version SVN Revision $Rev:$
9: *
10: * @author marcus.gnass
11: * @copyright four for business AG <www.4fb.de>
12: * @license http://www.contenido.org/license/LIZENZ.txt
13: * @link http://www.4fb.de
14: * @link http://www.contenido.org
15: */
16:
17: // assert CONTENIDO framework
18: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
19:
20: /**
21: * Upgrade job 11.
22: *
23: * Add column 'uri' in table con_pifa_form so that buttons of type image can
24: * store an URI to their image.
25: *
26: * @package Setup
27: * @subpackage UpgradeJob
28: */
29: class cUpgradeJob_0011 extends cUpgradeJobAbstract {
30:
31: public $maxVersion = "4.9.3";
32:
33: public function _execute() {
34: global $db, $cfg;
35:
36: if ($_SESSION['setuptype'] == 'upgrade' && $cfg['tab']['pifa_form'] != "") {
37: $db->query('
38: ALTER TABLE
39: `' . $cfg['tab']['pifa_form'] . '`
40: ADD
41: `uri`
42: VARCHAR(1023)
43: DEFAULT NULL
44: COMMENT \'URI for image buttons\';');
45: }
46: }
47:
48: private function _addColumnToPifa() {
49:
50: }
51:
52: private function _generatePluginRelations() {
53:
54: }
55: }
56: