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