.

ViewFactoryAjax Class Reference
[Ajax]

Overload View Factory to create AjaxView. More...

Inheritance diagram for ViewFactoryAjax:
ViewFactoryBase IViewFactory

List of all members.

Public Member Functions

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

Public Attributes

const  AJAX = 'AJAX'

Detailed Description

Overload View Factory to create AjaxView.

Author:
Gerd Riesselmann

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


Member Function Documentation

ViewFactoryAjax::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 19 of file ajaxviewfactory.cls.php.

00019                                                                     {
00020                 if ($type == self::AJAX) {
00021                         return new AjaxView($params);   
00022                 }
00023                 return parent::create_view($type, $template_name, $params);
00024         }

Member Data Documentation

Definition at line 9 of file ajaxviewfactory.cls.php.


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