.

ConsolePageView Class Reference
[Console]

Render page for console display. More...

Inheritance diagram for ConsolePageView:
PageViewBase ViewBase IView ICache IRenderer

List of all members.

Public Member Functions

  __construct ($page_data, $file=false)
  render ($policy=self::NONE)
  Process view and returnd the created content.

Protected Member Functions

  after_render (&$rendered_content, $policy)
  Sets content.
  assign_default_vars ($policy)
  Assign variables.
  render_postprocess (&$rendered_content, $policy)
  Called after content is rendered, always.
  render_preprocess ($policy)
  Called before content is rendered, always.
  should_cache ()
  Returns true, if cache should be used.

Detailed Description

Render page for console display.

Author:
Gerd Riesselmann

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


Constructor & Destructor Documentation

ConsolePageView::__construct ( page_data,
file = false  
)

Reimplemented from ViewBase.

Definition at line 9 of file consolepageview.cls.php.

00009                                                                {
00010                 parent::__construct($page_data, 'console/page');
00011         }

Member Function Documentation

ConsolePageView::after_render ( &$  rendered_content,
policy  
) [protected]

Sets content.

Parameters:
mixed  $rendered_content The content rendered
int  $policy If set to IView::DISPLAY, content is printed, if false it is returned only
Returns:
void

Reimplemented from ViewBase.

Definition at line 32 of file consolepageview.cls.php.

00032                                                                      {
00033         }       
ConsolePageView::assign_default_vars ( policy  )  [protected]

Assign variables.

Parameters:
int  $policy If set to IView::DISPLAY, content is printed, if false it is returned only

Reimplemented from PageViewBase.

Definition at line 71 of file consolepageview.cls.php.

00071                                                         {
00072                 $this->assign('page_data', $this->page_data);
00073                 $this->assign('status', $this->page_data->status);
00074                 $this->assign('status_code', $this->page_data->status);
00075                 $this->assign('content', $this->page_data->content);
00076         }
ConsolePageView::render ( policy = self::NONE  ) 

Process view and returnd the created content.

Parameters:
int  $policy If set to IView::DISPLAY, content is printed, if false it is returned only
Returns:
string The rendered content

Reimplemented from PageViewBase.

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

00020                                                    {
00021                 $policy |= self::CONTENT_ONLY | self::NO_CACHE;
00022                 return parent::render($policy);
00023         }
ConsolePageView::render_postprocess ( &$  rendered_content,
policy  
) [protected]

Called after content is rendered, always.

Parameters:
mixed  $rendered_content The content rendered $policy If set to IView::DISPLAY, content is printed, if false it is returned only
Returns:
void

Reimplemented from PageViewBase.

Definition at line 52 of file consolepageview.cls.php.

00052                                                                            {
00053                 $this->send_status();
00054         }
ConsolePageView::render_preprocess ( policy  )  [protected]

Called before content is rendered, always.

Parameters:
int  $policy If set to IView::DISPLAY, content is printed, if false it is returned only
Returns:
void

Reimplemented from PageViewBase.

Definition at line 42 of file consolepageview.cls.php.

00042                                                       {
00043         }       
ConsolePageView::should_cache (  )  [protected]

Returns true, if cache should be used.

Returns:
bool

Reimplemented from PageViewBase.

Definition at line 61 of file consolepageview.cls.php.

00061                                           {
00062                 return false;
00063         }       

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