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

  • cCLISetup
  • cSetupLanguageChooser
  • cSetupNotInstallable
  • cSetupTypeChooser

Functions

  • checkAndInclude
  • checkExistingPlugin
  • checkInstallationSettings
  • findSimilarText
  • getArgs
  • getContenidoVersion
  • getSystemDirectories
  • initializeVariables
  • listClients
  • passwordPrompt
  • printHelpText
  • prnt
  • prntln
  • prntst
  • progressBar
  • stripLastSlash
  • updateClientPath
  • updateContenidoVersion
  • updateSysadminPassword
  • updateSystemProperties
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the setup language chooser class.
 4:  *
 5:  * @package    Setup
 6:  * @subpackage Setup
 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: session_unset();
17: 
18: /**
19:  * Setup language chooser class
20:  *
21:  * @package Setup
22:  * @subpackage Setup
23:  */
24: class cSetupLanguageChooser extends cSetupMask
25: {
26: 
27:     /**
28:      * cSetupLanguageChooser constructor.
29:      */
30:     public function __construct() {
31:         cSetupMask::__construct("templates/languagechooser.tpl");
32:         $this->setHeader('Version ' . CON_SETUP_VERSION);
33:         $this->_stepTemplateClass->set("s", "DE_HINT", "Diese Anwendung hilft Ihnen bei der Installation von CONTENIDO.");
34:         $this->_stepTemplateClass->set("s", "EN_HINT", "This application will guide you trough the setup process.");
35:         $this->_stepTemplateClass->set("s", "DE_HINT_LANG", "W&auml;hlen Sie bitte die gew&uuml;nschte Sprache f&uuml;r das Setup aus.");
36:         $this->_stepTemplateClass->set("s", "EN_HINT_LANG", "Please choose your language to continue.");
37: 
38:         $langs = array("de_DE" => "Deutsch", "C" => "English");
39: 
40:         $m = "";
41: 
42:         foreach ($langs as $entity => $lang) {
43:             $test = new cHTMLLanguageLink($entity, $lang, "setuptype");
44:             $m .= $test->render();
45:         }
46: 
47:         $this->_stepTemplateClass->set("s", "LANGUAGECHOOSER", $m);
48:     }
49: 
50:     /**
51:      * Old constructor
52:      * @deprecated [2016-04-14] This method is deprecated and is not needed any longer. Please use __construct() as constructor function.
53:      */
54:     public function cSetupLanguageChooser() {
55:         cDeprecated('This method is deprecated and is not needed any longer. Please use __construct() as constructor function.');
56:         $this->__construct();
57:     }
58: }
59: 
60: $cSetupStep1 = new cSetupLanguageChooser();
61: $cSetupStep1->render();
62: 
CMS CONTENIDO 4.10.0 API documentation generated by ApiGen 2.8.0