.

ViewFactoryCacheHeaders Class Reference
[CacheHeaders]

Overload View Factory to create PageViews with overloaded cache headers. More...

Inheritance diagram for ViewFactoryCacheHeaders:
ViewFactoryBase IViewFactory

List of all members.

Public Member Functions

  create_view ($type, $template_name, $params)
  Create a suitable view.

Detailed Description

Overload View Factory to create PageViews with overloaded cache headers.

Author:
Gerd Riesselmann

Definition at line 8 of file cacheheadersviewfactory.cls.php.


Member Function Documentation

ViewFactoryCacheHeaders::create_view ( type,
template_name,
params  
)

Create a suitable view.

Parameters:
string  $type The type of view to create e.g. "page", or "content", or "XML" ...
string  $template_name Name of the template
mixed  $params Params to pass to view, may depend on type
Returns:
IView

Reimplemented from ViewFactoryBase.

Definition at line 18 of file cacheheadersviewfactory.cls.php.

00018                                                                     {
00019                 if ($type == self::PAGE) {
00020                         return new CacheHeadersPageView($params, $template_name); 
00021                 }
00022                 return parent::create_view($type, $template_name, $params);
00023         }

The documentation for this class was generated from the following file: