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
    • 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

  • Contenido_Backend_SmartyWrapper
  • Contenido_SmartyWrapper
  • 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:  * @version SVN Revision $Rev:$
 8:  *
 9:  * @author Andreas Dieter
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:  * Wrapper class for Integration of smarty.
19:  *
20:  * @deprecated 2013-11-12 - Use the class cSmartyBackend instead.
21:  * @package Plugin
22:  * @subpackage SmartyWrapper
23:  */
24: class Contenido_Backend_SmartyWrapper extends cSmartyBackend {
25: 
26:     public function __construct(&$aCfg, &$aClientCfg, $bSanityCheck = false) {
27:         cDeprecated("Use the class cSmartyBackend instead.");
28:         parent::__construct($aCfg, $aClientCfg, $bSanityCheck);
29:     }
30: 
31: }
32: /**
33:  * Wrapper class for Integration of smarty.
34:  *
35:  * @package Plugin
36:  * @subpackage SmartyWrapper
37:  */
38: class cSmartyBackend extends cSmartyFrontend {
39: 
40:     public function __construct(&$aCfg, &$aClientCfg, $bSanityCheck = false) {
41:         parent::__construct($aCfg, $aClientCfg, false);
42: 
43:         parent::$aDefaultPaths = array(
44:             'template_dir' => $aCfg['path']['contenido'] . 'plugins/smarty_templates/',
45:             'cache_dir' => $aCfg['path']['contenido_cache'],
46:             'compile_dir' => $aCfg['path']['contenido_cache'] . 'templates_c/'
47:         );
48: 
49:         parent::$bSmartyInstanciated = true;
50: 
51:         $this->resetPaths();
52:     }
53: 
54: }
CMS CONTENIDO 4.9.3 API documentation generated by ApiGen 2.8.0