19 require_once(BASE.
"wcmf/3rdparty/smarty/libs/Smarty.class.php");
20 require_once(BASE.
"wcmf/lib/util/class.InifileParser.php");
21 require_once(BASE.
"wcmf/lib/core/class.WCMFException.php");
49 if (($debugView = $parser->getValue(
'debugView',
'cms')) ===
false)
52 if (($compileCheck = $parser->getValue(
'compileCheck',
'smarty')) ===
false)
55 if (($caching = $parser->getValue(
'caching',
'smarty')) ===
false)
57 if (($cacheLifetime = $parser->getValue(
'cacheLifetime',
'smarty')) ===
false)
58 $cacheLifetime = 3600;
60 $this->debugging = $debugView;
61 $this->compile_check = $compileCheck;
62 $this->caching = $caching;
63 $this->cache_lifetime = $cacheLifetime;
64 $this->plugins_dir = array(
'plugins', BASE.
'wcmf/lib/presentation/smarty_plugins');
67 $this->load_filter(
'pre',
'removeprids');
68 $this->load_filter(
'output',
'trimwhitespace');
71 if (($smartyPath = $parser->getValue(
'templateDir',
'smarty')) ===
false)
74 if (substr($smartyPath,-1) !=
'/')
77 $this->template_dir = $smartyPath;
78 $this->compile_dir = $smartyPath.
'smarty/templates_c/';
79 $this->config_dir = $smartyPath.
'smarty/configs/';
80 $this->cache_dir = $smartyPath.
'smarty/cache/';
82 if (!file_exists($this->compile_dir))
84 if (!file_exists($this->cache_dir))
100 return $view->clear_all_cache();
110 return $view->clear_cache($tplFile, $cacheId);
121 return ($view->caching && $view->is_cached($tplFile, $cacheId));
clearCache($tplFile=null, $cacheId=null)
throwEx($message, $file='', $line='')
isCached($tplFile, $cacheId=null)
View is used by Controller to handle the view presentation in MVC pattern. View is a subclass of Smar...
trigger_error($error_msg, $error_type=E_USER_WARNING)