Class NTemplate
NTemplate stored in file.
NObject | --NBaseTemplate | --NTemplate
Implements interfaces:
Public Method Summary | |
---|---|
static ICacheStorage |
|
string |
getFile
()
Returns the path to the template file.
|
void |
render
()
Renders template to output.
|
static void |
setCacheStorage
($storage)
NSet cache storage.
|
NTemplate |
setFile
(string $file)
Sets the path to the template file.
|
Methods Inherited From NBaseTemplate |
---|
add(), compile(), getFilters(), getHelpers(), getParams(), optimizePhp(), registerFilter(), registerHelper(), registerHelperLoader(), render(), setParams(), setTranslator(), __call(), __get(), __isset(), __set(), __toString(), __unset() |
Methods Inherited From NObject |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
static int | $cacheExpire | FALSE |
line 38 |
Method Details | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
line 153 getCacheStoragepublic static ICacheStorage getCacheStorage ()
|
||||||||||||
line 65 getFilepublic string getFile () Returns the path to the template file. Implementation of:
|
||||||||||||
line 80 renderpublic void render () Renders template to output. Implementation of:
|
||||||||||||
line 143 setCacheStoragepublic static void setCacheStorage ($storage) NSet cache storage.
|
||||||||||||
line 53 setFilepublic NTemplate setFile (string $file) Sets the path to the template file. Implementation of:
|