\TEMPLATE

Load the WIKINDX display template system

Summary

Methods
Properties
Constants
__construct()
getDirectory()
clearAllCache()
clearCache()
clearCompileCache()
loadTemplate()
loadDir()
plugin_SmartyMenu_handler()
$tpl
DEFAULT_NAME
ROOT_DIR
COMPILE_DIR
CACHE_DIR
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

DEFAULT_NAME

DEFAULT_NAME = \WIKINDX_TEMPLATE_DEFAULT

ROOT_DIR

ROOT_DIR = templates

COMPILE_DIR

COMPILE_DIR = tplcompilation

CACHE_DIR

CACHE_DIR = tplcache

Properties

$tpl

$tpl : 

object

Type

Methods

__construct()

__construct() : 

TEMPLATE

Returns

getDirectory()

getDirectory() : 

Return the directory of the loaded template

Returns

clearAllCache()

clearAllCache() : 

Clear all caches of Smarty

Returns

clearCache()

clearCache() : 

Clear the entire template cache of Smarty

Returns

clearCompileCache()

clearCompileCache() : 

Clear all compilation directories of Smarty

Returns

loadTemplate()

loadTemplate() : 

Called from CLOSE, this sets up the right template to use before the script is exited

Returns

loadDir()

loadDir() : mixed||string|int

read templates/ directory for template preferences and check we have a sane environment

Returns

mixed||string|int —

plugin_SmartyMenu_handler()

plugin_SmartyMenu_handler(  name,   type, \Smarty_Internal_Template  template,  callback,  script,  cacheable) : 

SmartyMenu Plugin Handler

called when Smarty encounters an undefined tag during compilation

Parameters

name

name of the undefined tag

type

tag type (e.g. Smarty::PLUGIN_FUNCTION, Smarty::PLUGIN_BLOCK, Smarty::PLUGIN_COMPILER, Smarty::PLUGIN_MODIFIER, Smarty::PLUGIN_MODIFIERCOMPILER)

\Smarty_Internal_Template template

template object

callback
script
cacheable

Returns

true if successful