AjaxRenderDecorator Class Reference
[Ajax]
Renders result as Ajax Response. More...
Inheritance diagram for
AjaxRenderDecorator:
Public Member Functions |
|
render_page ($page_data, $content_render_decorator, $policy=IView::NONE) | |
Render page. |
Detailed Description
Renders result as Ajax Response.
Definition at line 8 of file ajaxrenderdecorator.cls.php.
Member Function Documentation
AjaxRenderDecorator::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.
Definition at line 17 of file ajaxrenderdecorator.cls.php.
00017 { 00018 $view = ViewFactory::create_view(ViewFactoryAjax::AJAX, '', $page_data); 00019 $page_data->router->preprocess($page_data); 00020 // Expected data to be set as $page_data->ajax_data 00021 $page_data->ajax_data = array(); 00022 $content_render_decorator->render_content($page_data); 00023 $page_data->router->postprocess($page_data); 00024 $page_data->in_history = false; 00025 return $view->render($policy); 00026 }
The documentation for this class was generated from the following file:
- gyro/modules/ajax/controller/base/renderdecorators/ajaxrenderdecorator.cls.php