XmlViewBase Class Reference
[View]
Create XML content. More...
Inheritance diagram for XmlViewBase:
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.
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.
The documentation for this class was generated from the following file:
- gyro/core/view/base/xmlviewbase.cls.php