.

XmlViewBase Class Reference
[View]

Create XML content. More...

Inheritance diagram for XmlViewBase:
ContentViewBase ViewBase IView ICache IRenderer

List of all members.

Protected Member Functions

  after_render (&$rendered_content, $policy)
  Called after content is rendered, but not if content is taken from cache.
  render_preprocess ($policy)
  Called before content is rendered, always.

Detailed Description

Create XML content.

Author:
Gerd Riesselmann

Definition at line 10 of file xmlviewbase.cls.php.


Member Function Documentation

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

Called after content is rendered, but not if content is taken from cache.

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

Reimplemented from ViewBase.

Definition at line 29 of file xmlviewbase.cls.php.

00029                                                                      {
00030                 $xml_header = '<?xml version="1.0" encoding="' . GyroLocale::get_charset() . '"?>';
00031                 $rendered_content = $xml_header . $rendered_content;
00032                 parent::after_render($rendered_content, $policy);
00033                 if (!Common::flag_is_set($policy, self::CONTENT_ONLY)) {
00034                         header('Content-Type: application/xml; charset=' . GyroLocale::get_charset(), true);
00035                 }
00036         }       
XmlViewBase::render_preprocess ( policy  )  [protected]

Called before content is rendered, always.

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

Reimplemented from ViewBase.

Definition at line 17 of file xmlviewbase.cls.php.

00017                                                       {
00018                 $this->page_data->in_history = false;
00019                 $this->page_data->page_template = 'emptypage';
00020         }

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