Framework  3.9
APICanonicalXMLFormatter Class Reference

Standard XML formatter - formats items as XML in Fakoli's canonical DataItem form. More...

+ Inheritance diagram for APICanonicalXMLFormatter:
+ Collaboration diagram for APICanonicalXMLFormatter:

Public Member Functions

 format ($items)
 Override this function to provide your format definition. More...
 
- Public Member Functions inherited from APIFormatter
 getClass ()
 

Additional Inherited Members

- Public Attributes inherited from APIFormatter
 $parent
 

Detailed Description

Standard XML formatter - formats items as XML in Fakoli's canonical DataItem form.

Author
andy

Definition at line 82 of file api_helper.inc.

Member Function Documentation

◆ format()

APICanonicalXMLFormatter::format (   $items)

Override this function to provide your format definition.

The results should be sent to the output buffer, via 'echo' or equivalent.

Parameters
array$itemsthe list of DataItems to be formatted

Reimplemented from APIFormatter.

Definition at line 84 of file api_helper.inc.

85  {
86  header("Content-Type: text/xml");
87  echo toXML($this->getClass()."List", $items);
88  }
toXML($tag, $objects, $header=null)
Definition: data_item.inc:2080

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