ViewFactoryAjax Class Reference
[Ajax]
Overload View Factory to create AjaxView. More...
Inheritance diagram for
ViewFactoryAjax:
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.
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
const ViewFactoryAjax::AJAX = 'AJAX' |
Definition at line 9 of file ajaxviewfactory.cls.php.
The documentation for this class was generated from the following file:
- gyro/modules/ajax/view/base/ajaxviewfactory.cls.php