ViewFactoryConsole Class Reference
[Console]
Overload View Factory to create Console view. More...
Inheritance diagram for
ViewFactoryConsole:
Public Member Functions |
|
create_view ($type, $template_name, $params) | |
Create a suitable view. |
|
Public Attributes |
|
const | PAGE_CONSOLE = 'PAGE_CONSOLE' |
Detailed Description
Overload View Factory to create Console view.
Definition at line 8 of file consoleviewfactory.cls.php.
Member Function Documentation
ViewFactoryConsole::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 consoleviewfactory.cls.php.
00018 { 00019 if ($type == self::PAGE_CONSOLE) { 00020 return new ConsolePageView($params, $template_name); 00021 } 00022 return parent::create_view($type, $template_name, $params); 00023 }
Member Data Documentation
const ViewFactoryConsole::PAGE_CONSOLE = 'PAGE_CONSOLE' |
Definition at line 9 of file consoleviewfactory.cls.php.
The documentation for this class was generated from the following file:
- gyro/modules/console/view/base/consoleviewfactory.cls.php