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
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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
$compileCheckBoolean

Definition at line 75 of file SmartyView.php.

setCaching (   $caching)

Set whether views should be cached.

Parameters
$cachingBoolean

Definition at line 83 of file SmartyView.php.

setCacheLifetime (   $cacheLifeTime)

Set the time a view should be cached.

Parameters
$cacheLifeTimeInteger (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
$cacheDirString

Definition at line 100 of file SmartyView.php.

setPluginsDir (   $pluginsDir)

Set a additional plugins directory.

Parameters
$pluginsDirDirectory 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 
)
See also
View::setValue()

Implements View.

Definition at line 130 of file SmartyView.php.

getValue (   $name)
See also
View::getValue()

Implements View.

Definition at line 137 of file SmartyView.php.

getValues ( )
See also
View::getValues()

Implements View.

Definition at line 144 of file SmartyView.php.

clearAllValues ( )
See also
View::clearAllValues()

Implements View.

Definition at line 151 of file SmartyView.php.

render (   $tplFile,
  $cacheId = null,
  $display = true 
)
See also
View::display()

Implements View.

Definition at line 158 of file SmartyView.php.

static clearCache ( )
static
See also
View::clearCache()

Implements View.

Definition at line 170 of file SmartyView.php.

static isCached (   $tplFile,
  $cacheId = null 
)
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 getTemplate (   $controller,
  $context,
  $action 
)
static
See also
View::getTemplate()

Implements View.

Definition at line 192 of file SmartyView.php.

Member Data Documentation

$_view = null
protected

Definition at line 42 of file SmartyView.php.