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