3 require_once(
_XE_PATH_.
'modules/page/page.view.php');
12 switch($this->module_info->page_type)
17 $this->interval = (int)($this->module_info->page_caching_interval);
22 $this->cache_file = sprintf(
"./files/cache/opage/%d.%s.m.cache.php", $this->module_info->module_srl,
Context::getSslStatus());
23 $this->interval = (int)($this->module_info->page_caching_interval);
24 $this->path = $this->module_info->mpath;
35 $page_type_name = strtolower($this->module_info->page_type);
36 $method =
'_get' . ucfirst($page_type_name) .
'Content';
37 if (method_exists($this, $method)) $page_content = $this->{$method}();
38 else return new BaseObject(-1, sprintf(
'%s method is not exists', $method));
49 if($this->module_info->mcontent)
52 $interval = (int)($this->module_info->page_caching_interval);
64 if($mtime +
$interval*60 > $_SERVER[
'REQUEST_TIME'])
67 $page_content = preg_replace(
'@<\!--#Meta:@',
'<!--Meta:', $page_content);
72 $page_content = $oWidgetController->transWidgetCode($this->module_info->mcontent);
82 $page_content = $this->module_info->mcontent;
87 $page_content = $this->module_info->content;
100 if($this->module_info->mdocument_srl)
106 if(!$oDocument->isExists())
114 if($this->module_info->mskin)
116 $templatePath = (sprintf($this->module_path.
'm.skins/%s', $this->module_info->mskin));
120 $templatePath = ($this->module_path.
'm.skins/default');
123 $page_content = $oTemplate->compile($templatePath,
'mobile');
125 return $page_content;
133 if(preg_match(
"/^([a-z]+):\/\//i",$this->path)) $content = $this->
getHtmlPage($this->path, $this->interval, $this->cache_file);
134 else $content = $this->
executeFile($this->path, $this->interval, $this->cache_file);
setTemplateFile($filename)
getController($module_name)
executeFile($target_file, $caching_interval, $cache_file)
Create a cache file in order to include if it is an internal file.
set($key, $val, $set_to_get_vars=0)
writeFile($filename, $buff, $mode="w")
page view class of the module
getHtmlPage($path, $caching_interval, $cache_file)
Save the file and return if a file is requested by http.