.

ViewFactoryStaticPageData Class Reference
[StaticPageData]

Overload View Factory to catch recent content view's PageData. More...

Inheritance diagram for ViewFactoryStaticPageData:
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 catch recent content view's PageData.

Author:
Gerd Riesselmann

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


Member Function Documentation

ViewFactoryStaticPageData::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 staticpagedataviewfactory.cls.php.

00018                                                                     {
00019                 if ($type == self::CONTENT) {
00020                         StaticPageData::set_data($params);      
00021                 }
00022                 return parent::create_view($type, $template_name, $params);
00023         }

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