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
    • SIWECOS
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cSmartyBackend
  • cSmartyFrontend
  • cSmartyWrapper
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the backend class for smarty wrapper plugin.
 4:  *
 5:  * @package Plugin
 6:  * @subpackage SmartyWrapper
 7:  * @author Andreas Dieter
 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: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
14: 
15: /**
16:  * Wrapper class for Integration of smarty.
17:  *
18:  * @package Plugin
19:  * @subpackage SmartyWrapper
20:  */
21: class cSmartyBackend extends cSmartyFrontend {
22:     /**
23:      * cSmartyBackend constructor.
24:      *
25:      * @param      $aCfg
26:      * @param      $aClientCfg
27:      * @param bool $bSanityCheck
28:      *
29:      * @throws cException
30:      * @throws cInvalidArgumentException
31:      */
32:     public function __construct(&$aCfg, &$aClientCfg, $bSanityCheck = false) {
33:         parent::__construct($aCfg, $aClientCfg, false);
34: 
35:         parent::$aDefaultPaths = array(
36:             'template_dir' => $aCfg['path']['contenido'] . 'plugins/smarty_templates/',
37:             'cache_dir' => $aCfg['path']['contenido_cache'],
38:             'compile_dir' => $aCfg['path']['contenido_cache'] . 'templates_c/'
39:         );
40: 
41:         parent::$bSmartyInstanciated = true;
42: 
43:         $this->resetPaths();
44:     }
45: 
46: }
CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0