Detailed Description
View is used by Controller to handle the view presentation in MVC pattern.
View is a subclass of Smarty that is customized for use with the wCMF.
- Note
- This class requires Smarty
Definition at line 36 of file SmartyView.php.
Inheritance diagram for SmartyView:Public Member Functions | |
| __construct () | |
| setCompileCheck ($compileCheck) | |
| setCaching ($caching) | |
| setCacheLifetime ($cacheLifeTime) | |
| setCacheDir ($cacheDir) | |
| setPluginsDir ($pluginsDir) | |
| setOutputFilter ($outputFilter) | |
| setValue ($name, $value) | |
| getValue ($name) | |
| getValues () | |
| clearAllValues () | |
| render ($tplFile, $cacheId=null, $display=true) | |
Static Public Member Functions | |
| static | clearCache () |
| static | isCached ($tplFile, $cacheId=null) |
| static | getTemplate ($controller, $context, $action) |
Protected Attributes | |
| $_view = null | |
Constructor & Destructor Documentation
| __construct | ( | ) |
Constructor.
Definition at line 47 of file SmartyView.php.
Member Function Documentation
| setCompileCheck | ( | $compileCheck | ) |
Set whether the view should check for template modifications or not.
- Parameters
-
$compileCheck Boolean
Definition at line 75 of file SmartyView.php.
| setCaching | ( | $caching | ) |
Set whether views should be cached.
- Parameters
-
$caching Boolean
Definition at line 83 of file SmartyView.php.
| setCacheLifetime | ( | $cacheLifeTime | ) |
Set the time a view should be cached.
- Parameters
-
$cacheLifeTime Integer (seconds)
Definition at line 91 of file SmartyView.php.
| setCacheDir | ( | $cacheDir | ) |
Set the caching directory If not existing, the directory will be created relative to WCMF_BASE.
- Parameters
-
$cacheDir String
Definition at line 100 of file SmartyView.php.
| setPluginsDir | ( | $pluginsDir | ) |
Set a additional plugins directory.
- Parameters
-
$pluginsDir Directory relative to WCMF_BASE
Definition at line 113 of file SmartyView.php.
| setOutputFilter | ( | $outputFilter | ) |
Set additional output filters.
- Parameters
-
$outputFilter
Definition at line 121 of file SmartyView.php.
| setValue | ( | $name, | |
| $value | |||
| ) |
| getValue | ( | $name | ) |
| getValues | ( | ) |
| clearAllValues | ( | ) |
| render | ( | $tplFile, | |
$cacheId = null, |
|||
$display = true |
|||
| ) |
|
static |
|
static |
- See also
- View::isCached() Returns also false, if caching is disabled to make sure that views get regenerated every time when expected.
Implements View.
Definition at line 182 of file SmartyView.php.
|
static |
Member Data Documentation
|
protected |
Definition at line 42 of file SmartyView.php.