Class Template (namespace Nette\Templates)
Template stored in file.
Object | --BaseTemplate | --Template
Implements interfaces:
Public Method Summary | |
---|---|
Template |
__construct
([string $file =
NULL ])
Constructor.
|
static ICacheStorage |
|
string |
getFile
()
Returns the path to the template file.
|
void |
render
()
Renders template to output.
|
static void |
setCacheStorage
($storage)
Set cache storage.
|
Template |
setFile
(string $file)
Sets the path to the template file.
|
Methods Inherited From BaseTemplate |
---|
add(), compile(), getFilters(), getHelpers(), getParams(), optimizePhp(), registerFilter(), registerHelper(), registerHelperLoader(), render(), setParams(), setTranslator(), __call(), __get(), __isset(), __set(), __toString(), __unset() |
Methods Inherited From Object |
---|
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset() |
Variable Summary | ||||
---|---|---|---|---|
static int | $cacheExpire | FALSE |
line 24 |
Method Details | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
line 38 __constructpublic Template __construct ([string $file = Constructor.
|
||||||||||||
line 152 getCacheStoragepublic static ICacheStorage getCacheStorage ()
|
||||||||||||
line 67 getFilepublic string getFile () Returns the path to the template file. Implementation of:
|
||||||||||||
line 82 renderpublic void render () Renders template to output. Implementation of:
|
||||||||||||
line 142 setCacheStoragepublic static void setCacheStorage ($storage) Set cache storage.
|
||||||||||||
line 52 setFilepublic Template setFile (string $file) Sets the path to the template file. Implementation of:
|