Represents a PHP Template file
| author | Jorgen Evens |
|---|---|
| package | WebLab |
__construct(String $template, String $theme, String $directory)
StringThe path to the template, relative to the configured template directory.
StringThe name of the theme to be used. default theme is 'source'
StringThe directory in which to look for the template. Defaults to configuration setting.
__get(String $name) : Object
StringThe name of the property (variable) te get.
ObjectThe value of this property.__set(String $name, Object $value) : \WebLab_Template
StringThe name of the property (variable) being set.
Object&$value The value to be set.
\WebLab_TemplateThis template instance.__toString() : String
StringReturns HTML that has been rendered by the render function. If a Exception occurs the message of this exception will be returned.attach(\WebLab_Template $template, String $moduleName) : \WebLab_Template
| deprecated | Use WebLab_Template::set now. |
|---|
StringVariable name for $template.
\WebLab_TemplateThis template instance.get(string $variable) : \mixed:
string
\mixed:getRootTemplate()
getVars() : Array
ArrayReturn an array of attached variables. VariableNames as keys.render($flush) : mixed
mixedThe HTML code rendered or true if $show==truesetRootTemplate(\WebLab_Template $template)
\WebLab_Template
setTemplateDir(String $dir)
This directory contains all of the themes.
StringThe directory to look for templates and themes.
_getCache($path) : string | NULL
stringNULL
_getConfig()
_init()
Injecting headers, scripts or styles should be done here.
_load(string $component, $extract)
string
_putCache($path, string $code)
string
setBasicVariables()
$max_cache_age : int
$_dir : String
$_root : \WebLab_Template
$_setup : string
$_template : String
$_theme : String
$_variables : Array