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 14.
  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 14
 20:  *
 21:  * Switched AMR and url_shortener plugins from "Content" navigation to "Extras" navigation
 22:  *
 23:  * @package Setup
 24:  * @subpackage UpgradeJob
 25:  */
 26: class cUpgradeJob_0014 extends cUpgradeJobAbstract {
 27: 
 28:     public $maxVersion = "4.9.4";
 29: 
 30:     public function _execute() {
 31: 
 32:         if ($_SESSION['setuptype'] == 'upgrade') {
 33: 
 34:             // Initializing cApiNavSub
 35:             $navsub = new cApiNavSub();
 36: 
 37:             // mod_rewrite/main
 38:             // Get informations for mod_rewrite/xml/;navigation/content/mod_rewrite/main
 39:             $navsub->loadBy('location', 'mod_rewrite/xml/;navigation/content/mod_rewrite/main');
 40: 
 41:             // If entry exist, change location to mod_rewrite/xml/;navigation/extra/mod_rewrite/main
 42:             if ($navsub !== null) {
 43:                 $navsub->set('location', 'mod_rewrite/xml/;navigation/extra/mod_rewrite/main');
 44:                 $navsub->store();
 45:             }
 46: 
 47:             // mod_rewrite/settings
 48:             // Get informations for mod_rewrite/xml/;navigation/content/mod_rewrite/settings
 49:             $navsub->loadBy('location', 'mod_rewrite/xml/;navigation/content/mod_rewrite/settings');
 50: 
 51:             // If entry exist, change location to mod_rewrite/xml/;navigation/extra/mod_rewrite/settings
 52:             if ($navsub !== null) {
 53:                 $navsub->set('location', 'mod_rewrite/xml/;navigation/extra/mod_rewrite/settings');
 54:                 $navsub->store();
 55:             }
 56: 
 57:             // mod_rewrite/expert
 58:             // Get informations for mod_rewrite/xml/;navigation/content/mod_rewrite/expert
 59:             $navsub->loadBy('location', 'mod_rewrite/xml/;navigation/content/mod_rewrite/expert');
 60: 
 61:             // If entry exist, change location to mod_rewrite/xml/;navigation/extra/mod_rewrite/expert
 62:             if ($navsub !== null) {
 63:                 $navsub->set('location', 'mod_rewrite/xml/;navigation/extra/mod_rewrite/expert');
 64:                 $navsub->store();
 65:             }
 66: 
 67:             // mod_rewrite/test
 68:             // Get informations for mod_rewrite/xml/;navigation/content/mod_rewrite/test
 69:             $navsub->loadBy('location', 'mod_rewrite/xml/;navigation/content/mod_rewrite/test');
 70: 
 71:             // If entry exist, change location to mod_rewrite/xml/;navigation/extra/mod_rewrite/test
 72:             if ($navsub !== null) {
 73:                 $navsub->set('location', 'mod_rewrite/xml/;navigation/extra/mod_rewrite/test');
 74:                 $navsub->store();
 75:             }
 76: 
 77:             // url_shortener/main
 78:             // Get informations for url_shortener/xml/;navigation/content/url_shortener/main
 79:             $navsub->loadBy('location', 'url_shortener/xml/;navigation/content/url_shortener/main');
 80: 
 81:             // If entry exist, change location to url_shortener/xml/;navigation/extra/url_shortener/main
 82:             if ($navsub !== null) {
 83:                 $navsub->set('location', 'url_shortener/xml/;navigation/extra/url_shortener/main');
 84:                 $navsub->store();
 85:             }
 86: 
 87:             // mod_rewrite
 88:             // Get informations for mod_rewrite/xml;navigation/content/mod_rewrite
 89:             $navsub->loadBy('location', 'mod_rewrite/xml/;navigation/content/mod_rewrite');
 90: 
 91:             // If entry exist, please delete it
 92:             if ($navsub !== null) {
 93:                 $navsubColl = new cApiNavSubCollection();
 94:                 $navsubColl->deleteByWhereClause("location = 'mod_rewrite/xml/;navigation/content/mod_rewrite'");
 95:             }
 96: 
 97:         }
 98:     }
 99: 
100: }
101: 
102: 
CMS CONTENIDO 4.10.0 API documentation generated by ApiGen 2.8.0