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

  • cSetupAdminPassword
  • cSetupClientAdjust
  • cSetupClientMode
  • cSetupConfigMode
  • cSetupInstaller
  • cSetupPath
  • cSetupResults
  • cSetupSetupSummary
  • cSetupSystemData
  • cSetupSystemtest
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the path information setup mask.
 4:  *
 5:  * @package    Setup
 6:  * @subpackage Form
 7:  * @author     Unknown
 8:  * @copyright  four for business AG <www.4fb.de>
 9:  * @license    http://www.contenido.org/license/LIZENZ.txt
10:  * @link       http://www.4fb.de
11:  * @link       http://www.contenido.org
12:  */
13: 
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15: 
16: /**
17:  * Path information setup mask.
18:  *
19:  * @package Setup
20:  * @subpackage Form
21:  */
22: class cSetupPath extends cSetupMask
23: {
24: 
25:     /**
26:      * cSetupPath constructor.
27:      * @param string $step
28:      * @param bool $previous
29:      * @param $next
30:      */
31:     public function __construct($step, $previous, $next) {
32:         cSetupMask::__construct("templates/setup/forms/pathinfo.tpl", $step);
33:         $this->setHeader(i18n("System Directories", "setup"));
34:         $this->_stepTemplateClass->set("s", "TITLE", i18n("System Directories", "setup"));
35:         $this->_stepTemplateClass->set("s", "DESCRIPTION", i18n("Please check the directories identified by the system. If you need to change a path, click on the name and enter the new path in the available input box.", "setup"));
36: 
37:         list($rootPath, $rootHttpPath) = getSystemDirectories(true);
38: 
39:         $cHTMLErrorMessageList = new cHTMLErrorMessageList();
40:         $cHTMLFoldableErrorMessages = array();
41: 
42:         list($rootPath2, $rootHttpPath2) = getSystemDirectories();
43:         $oRootPath = new cHTMLTextbox("override_root_path", $rootPath2);
44:         $oRootPath->setWidth(100);
45:         $oRootPath->setClass("small");
46:         $oWebPath = new cHTMLTextbox("override_root_http_path", $rootHttpPath2);
47:         $oWebPath->setWidth(100);
48:         $oWebPath->setClass("small");
49: 
50:         $cHTMLFoldableErrorMessages[0] = new cHTMLFoldableErrorMessage(i18n("CONTENIDO Root Path", "setup").":<br>".$rootPath, $oRootPath);
51:         $cHTMLFoldableErrorMessages[0]->_oContent->setStyle("padding-bottom: 8px;");
52:         $cHTMLFoldableErrorMessages[1] = new cHTMLFoldableErrorMessage(i18n("CONTENIDO Web Path", "setup").":<br>".$rootHttpPath, $oWebPath);
53:         $cHTMLFoldableErrorMessages[1]->_oContent->setStyle("padding-bottom: 8px;");
54: 
55:         $cHTMLErrorMessageList->setContent($cHTMLFoldableErrorMessages);
56: 
57:         $this->_stepTemplateClass->set("s", "CONTROL_PATHINFO", $cHTMLErrorMessageList->render());
58: 
59:         $this->setNavigation($previous, $next);
60:     }
61: 
62:     /**
63:      * Old constructor
64:      * @deprecated [2016-04-14] This method is deprecated and is not needed any longer. Please use __construct() as constructor function.
65:      * @param $step
66:      * @param $previous
67:      * @param $next
68:      */
69:     public function cSetupPath($step, $previous, $next) {
70:         cDeprecated('This method is deprecated and is not needed any longer. Please use __construct() as constructor function.');
71:         $this->__construct($step, $previous, $next);
72:     }
73: }
74: ?>
CMS CONTENIDO 4.10.0 API documentation generated by ApiGen 2.8.0