ViewFactoryJCSSManager Class Reference
Overload View Factory to cope with. More...
Inheritance diagram for
ViewFactoryJCSSManager:
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 cope with.
Definition at line 6 of file jcssmanagerviewfactory.cls.php.
Member Function Documentation
ViewFactoryJCSSManager::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 16 of file jcssmanagerviewfactory.cls.php.
00016 { 00017 if ($type == self::PAGE_CONSOLE) { 00018 return new ConsolePageView($params, $template_name); 00019 } 00020 return parent::create_view($type, $template_name, $params); 00021 }
Member Data Documentation
Definition at line 7 of file jcssmanagerviewfactory.cls.php.
The documentation for this class was generated from the following file:
- contributions/jcssmanager/view/base/jcssmanagerviewfactory.cls.php