XOOPS
2.6.0
|
Public Member Functions | |
__construct () | |
_get_auto_id ($cache_id=null, $compile_id=null) | |
clearCache ($template_name, $cache_id=null, $compile_id=null, $exp_time=null, $type=null) | |
clearModuleCompileCache ($module_dirname=null, $theme_set=null, $template_set=null) | |
fetchFromData ($tplSource, $display=false, $vars=null) | |
setCompileId ($module_dirname=null, $theme_set=null, $template_set=null) | |
touch ($resourceName) | |
Public Attributes | |
$currentTheme = null | |
Definition at line 32 of file template.php.
XoopsTpl::__construct | ( | ) |
Definition at line 39 of file template.php.
References $xoops, XoopsBaseConfig\get(), Xoops_Locale_Abstract\getCharset(), Xoops\getInstance(), Xoops_Locale_Abstract\getLangCode(), setCompileId(), and Xoops\VERSION.
XoopsTpl::_get_auto_id | ( | $cache_id = null , |
|
$compile_id = null |
|||
) |
returns an auto_id for auto-file-functions
string | $cache_id | |
string | $compile_id |
Definition at line 109 of file template.php.
XoopsTpl::clearCache | ( | $template_name, | |
$cache_id = null , |
|||
$compile_id = null , |
|||
$exp_time = null , |
|||
$type = null |
|||
) |
Empty cache for a specific template
This is just a pass thru wrapper with a warning since this method previously existed only in XoopsTpl, but now is also a regulat Smarty method.
clearModuleCompileCache() is the replacement for the old clearCache
string | $template_name | template name |
string | $cache_id | cache id |
string | $compile_id | compile id |
integer | $exp_time | expiration time |
string | $type | resource type |
Definition at line 191 of file template.php.
References $type, and Xoops\getInstance().
Referenced by touch().
XoopsTpl::clearModuleCompileCache | ( | $module_dirname = null , |
|
$theme_set = null , |
|||
$template_set = null |
|||
) |
XoopsTpl::clearModuleCompileCache()
Clean up compiled and cached templates for a module
TODO - handle $use_sub_dirs cases
mixed | $module_dirname | |
mixed | $theme_set | |
mixed | $template_set |
Definition at line 153 of file template.php.
References $count, $files, and setCompileId().
XoopsTpl::fetchFromData | ( | $tplSource, | |
$display = false , |
|||
$vars = null |
|||
) |
Renders output from template data
string | $tplSource | The template to render |
bool | $display | If rendered text should be output or returned |
array | $vars |
Definition at line 71 of file template.php.
XoopsTpl::setCompileId | ( | $module_dirname = null , |
|
$theme_set = null , |
|||
$template_set = null |
|||
) |
mixed | $module_dirname | |
mixed | $theme_set | |
mixed | $template_set |
Definition at line 130 of file template.php.
References $xoops, XoopsBaseConfig\get(), and Xoops\getInstance().
Referenced by __construct(), and clearModuleCompileCache().
XoopsTpl::touch | ( | $resourceName | ) |
string | $resourceName |
Definition at line 92 of file template.php.
References $result, and clearCache().
XoopsTpl::$currentTheme = null |
Definition at line 37 of file template.php.