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: }