.

ViewFactoryConsole Class Reference
[Console]

Overload View Factory to create Console view. More...

Inheritance diagram for ViewFactoryConsole:
ViewFactoryBase IViewFactory

List of all members.

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.

Author:
Gerd Riesselmann

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


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