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:
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17:
18: /**
19: * Wrapper class for Integration of smarty.
20: *
21: * @package Plugin
22: * @subpackage SmartyWrapper
23: */
24: class Contenido_Backend_SmartyWrapper extends cSmartyBackend {
25:
26: }
27: /**
28: * Wrapper class for Integration of smarty.
29: *
30: * @package Plugin
31: * @subpackage SmartyWrapper
32: */
33: class cSmartyBackend extends Contenido_SmartyWrapper {
34:
35: public function __construct(&$aCfg, &$aClientCfg, $bSanityCheck = false) {
36: parent::__construct($aCfg, $aClientCfg, false);
37:
38: parent::$aDefaultPaths = array(
39: 'template_dir' => $aCfg['path']['contenido'] . 'plugins/smarty_templates/',
40: 'cache_dir' => $aCfg['path']['contenido_cache'],
41: 'compile_dir' => $aCfg['path']['contenido_cache'] . 'templates_c/'
42: );
43:
44: parent::$bSmartyInstanciated = true;
45:
46: $this->resetPaths();
47: }
48:
49: }