Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationMain
    • NavigationTop
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • 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
  • cUpgradeJobAbstract
  • cUpgradeJobMain
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the upgrade job 12.
 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: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
16: 
17: /**
18:  * Upgrade job 12.
19:  * Copy the example client to cms folder if needed
20:  *
21:  * @package Setup
22:  * @subpackage UpgradeJob
23:  */
24: class cUpgradeJob_0012 extends cUpgradeJobAbstract {
25: 
26:     public $maxVersion = "4.9.0";
27: 
28:     public function _execute() {
29:         if ($this->_setupType == 'setup') {
30:             switch ($_SESSION["clientmode"]) {
31:                 case "NOCLIENT":
32:                     break;
33:                 case "CLIENTEXAMPLES":
34:                     // copy the styles folder to the cms folder for the example
35:                     // client
36:                     if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "css")) {
37:                         cFileHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "css");
38:                         mkdir($this->_aCfgClient[1]["path"]["frontend"] . "css");
39:                     }
40:                     cFileHandler::recursiveCopy("data/examples/css", $this->_aCfgClient[1]["path"]["frontend"] . "css");
41: 
42:                     // copy the scripts folder to the cms folder for the example
43:                     // client
44:                     if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "js")) {
45:                         cFileHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "js");
46:                         mkdir($this->_aCfgClient[1]["path"]["frontend"] . "js");
47:                     }
48:                     cFileHandler::recursiveCopy("data/examples/js", $this->_aCfgClient[1]["path"]["frontend"] . "js");
49: 
50:                     // copy the template folder to the cms folder for the
51:                     // example client
52:                     if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "templates")) {
53:                         cFileHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "templates");
54:                         mkdir($this->_aCfgClient[1]["path"]["frontend"] . "templates");
55:                     }
56:                     cFileHandler::recursiveCopy("data/examples/templates", $this->_aCfgClient[1]["path"]["frontend"] . "templates");
57: 
58:                     // copy the upload folder to the cms folder for the example
59:                     // client
60:                     if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "upload")) {
61:                         cFileHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "upload");
62:                         mkdir($this->_aCfgClient[1]["path"]["frontend"] . "upload");
63:                     }
64:                     cFileHandler::recursiveCopy("data/examples/upload", $this->_aCfgClient[1]["path"]["frontend"] . "upload");
65: 
66:                     // copy the layout folder to the cms folder for the example
67:                     // client
68:                     if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "data/layouts")) {
69:                         cFileHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "data/layouts");
70:                         mkdir($this->_aCfgClient[1]["path"]["frontend"] . "data/layouts");
71:                     }
72:                     cFileHandler::recursiveCopy("data/examples/data/layouts", $this->_aCfgClient[1]["path"]["frontend"] . "data/layouts");
73:                 case "CLIENTMODULES":
74:                     // copy the module folder to the cms folder for the example
75:                     // client
76:                     if (cFileHandler::exists($this->_aCfgClient[1]["path"]["frontend"] . "data/modules")) {
77:                         cFileHandler::recursiveRmdir($this->_aCfgClient[1]["path"]["frontend"] . "data/modules");
78:                         mkdir($this->_aCfgClient[1]["path"]["frontend"] . "data/modules");
79:                     }
80:                     cFileHandler::recursiveCopy("data/examples/data/modules", $this->_aCfgClient[1]["path"]["frontend"] . "data/modules");
81:             }
82:         }
83:     }
84: 
85: }
86: 
87: ?>
CMS CONTENIDO 4.9.0 API documentation generated by ApiGen 2.8.0