Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cUpgradeJob_0001
  • cUpgradeJob_0002
  • cUpgradeJob_0003
  • cUpgradeJob_0004
  • cUpgradeJob_0005
  • cUpgradeJob_0006
  • cUpgradeJob_0007
  • cUpgradeJob_0008
  • cUpgradeJob_0009
  • cUpgradeJob_0010
  • cUpgradeJob_0011
  • cUpgradeJob_0012
  • cUpgradeJob_0013
  • cUpgradeJob_0014
  • cUpgradeJob_0015
  • cUpgradeJob_0016
  • cUpgradeJob_0017
  • cUpgradeJob_0018
  • cUpgradeJobAbstract
  • cUpgradeJobMain
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  1: <?php
  2: 
  3: /**
  4:  * This file contains the upgrade job 13.
  5:  *
  6:  * @package Setup
  7:  * @subpackage UpgradeJob
  8:  * @author frederic.schneider
  9:  * @copyright four for business AG <www.4fb.de>
 10:  * @license http://www.contenido.org/license/LIZENZ.txt
 11:  * @link http://www.4fb.de
 12:  * @link http://www.contenido.org
 13:  */
 14: 
 15: // assert CONTENIDO framework
 16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
 17: 
 18: /**
 19:  * Upgrade job 13.
 20:  *
 21:  * Change of areas for actions pifa_export_form, pifa_show_fields and
 22:  * pifa_show_data
 23:  *
 24:  * @package Setup
 25:  * @subpackage UpgradeJob
 26:  */
 27: class cUpgradeJob_0013 extends cUpgradeJobAbstract {
 28: 
 29:     public $maxVersion = "4.9.3";
 30: 
 31:     public function _execute() {
 32:         global $cfg;
 33: 
 34:         if ($_SESSION['setuptype'] == 'upgrade') {
 35: 
 36:             // Initializing cApiArea
 37:             $area = new cApiArea();
 38: 
 39:             // Initializing cApiAction
 40:             $action = new cApiAction();
 41: 
 42:             // PIFA_EXPORT_FORM
 43:             // Get informations for area form_ajax
 44:             $area->loadBy('name', 'form_ajax');
 45: 
 46:             // If area form_ajax not exist, return false
 47:             if ($area === null) {
 48:                 return;
 49:             }
 50: 
 51:             // Get informations for action pifa_export_form
 52:             $action->loadBy('name', 'pifa_export_form');
 53: 
 54:             // If action pifa_export_form not exist, return false
 55:             if ($action === null) {
 56:                 return;
 57:             }
 58: 
 59:             // Change area for action pifa_export_form to form_ajax
 60:             $action->set('idarea', $area->get('idarea'));
 61:             $action->store();
 62: 
 63:             // PIFA_SHOW_FIELDS
 64:             $area->loadBy('name', 'form_fields');
 65: 
 66:             // If area form_fields not exist, return false
 67:             if ($area === null) {
 68:                 return;
 69:             }
 70: 
 71:             // Get informations for action pifa_show_fields
 72:             $action->loadBy('name', 'pifa_show_fields');
 73: 
 74:             // If action pifa_show_fields not exist, return false
 75:             if ($action === null) {
 76:                 return;
 77:             }
 78: 
 79:             // Change area for action pifa_show_fields to form_fields
 80:             $action->set('idarea', $area->get('idarea'));
 81:             $action->store();
 82: 
 83:             // PIFA_SHOW_DATA
 84:             $area->loadBy('name', 'form_data');
 85: 
 86:             // If area form_data not exist, return false
 87:             if ($area === null) {
 88:                 return;
 89:             }
 90: 
 91:             // Get informations for action pifa_show_data
 92:             $action->loadBy('name', 'pifa_show_data');
 93: 
 94:             // If action pifa_show_data not exist, return false
 95:             if ($action === null) {
 96:                 return;
 97:             }
 98: 
 99:             // Change area for action pifa_show_data to form_data
100:             $action->set('idarea', $area->get('idarea'));
101:             $action->store();
102:         }
103:     }
104: }
105: 
CMS CONTENIDO 4.10.0 API documentation generated by ApiGen 2.8.0