
Public Member Functions | |
| setRootNodeName ($name) | |
| setFormatOutput ($bool) | |
| render () | |
Protected Member Functions | |
| getNodes ($struct, DOMNode $parentNode) | |
| isIteratable ($struct) | |
Protected Attributes | |
| $document | |
| $rootNode = 'data' | |
| $formatOutput = true | |
Definition at line 14 of file XML.php.
| Panda_View_XML::setRootNodeName | ( | $ | name | ) |
| Panda_View_XML::setFormatOutput | ( | $ | bool | ) |
| Panda_View_XML::render | ( | ) |
Renders the XML data
Implements Panda_View_Interface.
Definition at line 67 of file XML.php.
References getNodes(), and Panda_View_Abstract::output().
| Panda_View_XML::getNodes | ( | $ | struct, | |
| DOMNode $ | parentNode | |||
| ) | [protected] |
Gets XML nodes from arbitrary data structures
Appends XML nodes to the provided parentNode by recursivly transforming the view's data into XML.
| mixed | $struct An arbitrary data structure | |
| DOMNode | $parentNode A DOMNode to append the XML to |
Definition at line 88 of file XML.php.
References isIteratable().
Referenced by render().
| Panda_View_XML::isIteratable | ( | $ | struct | ) | [protected] |
Tests if a data structure is iteratable
| mixed | $struct The value to test |
Definition at line 114 of file XML.php.
Referenced by getNodes().
1.5.4