DispatcherInvokeRenderDecorator Class Reference
[Controller]
Renders result of a controller action. More...
Inheritance diagram for
DispatcherInvokeRenderDecorator:
Public Member Functions |
|
__construct ($dispatcher) | |
Constructor. |
|
render_content ($page_data) | |
Invokes assigned controller. |
|
render_page ($page_data, $content_render_decorator, $policy=IView::NONE) | |
Render page. |
|
Protected Attributes |
|
$dispatcher |
Detailed Description
Renders result of a controller action.
Definition at line 10 of file dispatcherinvokerenderdecorator.cls.php.
Constructor & Destructor Documentation
DispatcherInvokeRenderDecorator::__construct | ( | $ | dispatcher | ) |
Constructor.
- Parameters:
-
IDispatcher $dispatcher The dispatcher to invoke
Definition at line 23 of file dispatcherinvokerenderdecorator.cls.php.
00023 { 00024 $this->dispatcher = $dispatcher; 00025 }
Member Function Documentation
DispatcherInvokeRenderDecorator::render_content | ( | $ | page_data | ) |
Invokes assigned controller.
- Parameters:
-
object Page data object
- Returns:
- void
Reimplemented from RenderDecoratorBase.
Definition at line 33 of file dispatcherinvokerenderdecorator.cls.php.
DispatcherInvokeRenderDecorator::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 RenderDecoratorBase.
Reimplemented in ConsoleRenderDecorator.
Definition at line 45 of file dispatcherinvokerenderdecorator.cls.php.
00045 { 00046 $view = ViewFactory::create_view(IViewFactory::PAGE, $page_data->page_template, $page_data); 00047 if ($view->is_cached() == false) { 00048 $page_data->router->preprocess($page_data); 00049 $content_render_decorator->render_content($page_data); 00050 $page_data->router->postprocess($page_data); 00051 } 00052 return $view->render($policy); 00053 }
Member Data Documentation
DispatcherInvokeRenderDecorator::$dispatcher
[protected] |
Definition at line 16 of file dispatcherinvokerenderdecorator.cls.php.
The documentation for this class was generated from the following file:
- gyro/core/controller/base/renderdecorators/dispatcherinvokerenderdecorator.cls.php