.

RenderDecoratorBase Class Reference
[Controller]

Default implementation if IRenderDecorator. More...

Inheritance diagram for RenderDecoratorBase:
IRenderDecorator AjaxRenderDecorator CacheRenderDecorator CommandsRouteRenderDecorator ConsoleOnlyRenderDecorator DispatcherInvokeRenderDecorator ETagRenderDecorator NotFoundRenderDecorator RedirectActionRenderDecorator RedirectRenderDecorator

List of all members.

Public Member Functions

  append ($decorator)
  Add a new decorator to end of decorator chain.
  get_next ()
  Return next renderer in chain.
  initialize ($page_data)
  Initialize this decorator and the data passed.
  render_content ($page_data)
  Render content.
  render_page ($page_data, $content_render_decorator, $policy=IView::NONE)
  Render page.

Protected Member Functions

  initialize_next ($page_data)
  Initialize next decorator in chain.
  render_content_next ($page_data)
  Render content.
  render_page_next ($page_data, $content_render_decorator, $policy=IView::NONE)
  Call render_page() on next decorator.

Detailed Description

Default implementation if IRenderDecorator.

Author:
Gerd Riesselmann

Definition at line 8 of file renderdecoratorbase.cls.php.


Member Function Documentation

RenderDecoratorBase::append ( decorator  ) 

Add a new decorator to end of decorator chain.

Parameters:
IRenderDecorator  $decorator
Returns:
void

Implements IRenderDecorator.

Definition at line 22 of file renderdecoratorbase.cls.php.

00022                                            {
00023                 $next = $this->get_next();
00024                 if ($next) {
00025                         $next->append($decorator);
00026                 }
00027                 else {
00028                         $this->next = $decorator;
00029                 }
00030         }
RenderDecoratorBase::get_next (  ) 

Return next renderer in chain.

Returns:
IRenderDecorator

Implements IRenderDecorator.

Definition at line 37 of file renderdecoratorbase.cls.php.

00037                                    {
00038                 return $this->next;
00039         }
RenderDecoratorBase::initialize ( page_data  ) 

Initialize this decorator and the data passed.

Parameters:
PageData  $page_data
Returns:
void

Implements IRenderDecorator.

Reimplemented in CacheRenderDecorator, CommandsRouteRenderDecorator, NotFoundRenderDecorator, RedirectActionRenderDecorator, and RedirectRenderDecorator.

Definition at line 47 of file renderdecoratorbase.cls.php.

00047                                                {
00048                 $this->initialize_next($page_data);
00049         }
RenderDecoratorBase::initialize_next ( page_data  )  [protected]

Initialize next decorator in chain.

Parameters:
PageData  $page_data
Returns:
void

Definition at line 57 of file renderdecoratorbase.cls.php.

00057                                                        {
00058                 $next = $this->get_next();
00059                 if ($next) {
00060                         $next->initialize($page_data);
00061                 }
00062         }
RenderDecoratorBase::render_content ( page_data  ) 

Render content.

Parameters:
PageData  $page_data
Returns:
void

Implements IRenderDecorator.

Reimplemented in DispatcherInvokeRenderDecorator, NotFoundRenderDecorator, and ConsoleOnlyRenderDecorator.

Definition at line 70 of file renderdecoratorbase.cls.php.

00070                                                    {
00071                 $this->render_content_next($page_data);
00072         }
RenderDecoratorBase::render_content_next ( page_data  )  [protected]

Render content.

Parameters:
PageData  $page_data
Returns:
void

Definition at line 80 of file renderdecoratorbase.cls.php.

00080                                                            {
00081                 $next = $this->get_next();
00082                 if ($next) {
00083                         $next->render_content($page_data);
00084                 }
00085         }
RenderDecoratorBase::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:
void

Implements IRenderDecorator.

Reimplemented in DispatcherInvokeRenderDecorator, ETagRenderDecorator, AjaxRenderDecorator, and ConsoleRenderDecorator.

Definition at line 95 of file renderdecoratorbase.cls.php.

00095                                                                                                 {
00096                 return $this->render_page_next($page_data, $content_render_decorator, $policy);
00097         }
RenderDecoratorBase::render_page_next ( page_data,
content_render_decorator,
policy = IView::NONE  
) [protected]

Call render_page() on next decorator.

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:
string The rendered content

Definition at line 107 of file renderdecoratorbase.cls.php.

00107                                                                                                         {
00108                 $next = $this->get_next();
00109                 if ($next) {
00110                         return $next->render_page($page_data, $content_render_decorator, $policy);
00111                 }
00112         }

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