.

ConsoleRenderDecorator Class Reference
[Console]

Renders result of a controller action for console output. More...

Inheritance diagram for ConsoleRenderDecorator:
DispatcherInvokeRenderDecorator RenderDecoratorBase IRenderDecorator

List of all members.

Public Member Functions

  render_page ($page_data, $content_render_decorator, $policy=IView::NONE)
  Render page.

Detailed Description

Renders result of a controller action for console output.

This render decorator gets autmatically set, if you invoke an action through the console.

Author:
Gerd Riesselmann

Definition at line 11 of file consolerenderdecorator.cls.php.


Member Function Documentation

ConsoleRenderDecorator::render_page ( page_data,
content_render_decorator,
policy = IView::NONE  
)

Render page.

Parameters:
PageData  $page_data
IRenderDecorator  Decorator to invoke render_content upon
int  $policy If set to IView::DISPLAY, content is printed, if false it is returned only
Returns:
mixed

Reimplemented from DispatcherInvokeRenderDecorator.

Definition at line 20 of file consolerenderdecorator.cls.php.

00020                                                                                                 {
00021                 $view = ViewFactory::create_view(ViewFactoryConsole::PAGE_CONSOLE, $page_data->page_template, $page_data);
00022                 $page_data->router->preprocess($page_data);
00023                 $content_render_decorator->render_content($page_data);
00024                 $page_data->router->postprocess($page_data);
00025                 return $view->render($policy);  
00026         }

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