00001 <?php
00002
00003
00004
00005
00006
00007
00008 class AjaxRenderDecorator extends RenderDecoratorBase {
00009
00010
00011
00012
00013
00014
00015
00016
00017 public function render_page($page_data, $content_render_decorator, $policy = IView::NONE) {
00018 $view = ViewFactory::create_view(ViewFactoryAjax::AJAX, '', $page_data);
00019 $page_data->router->preprocess($page_data);
00020
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 }
00027 }