Panda_View_XML Class Reference

Inheritance diagram for Panda_View_XML:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 setRootNodeName ($name)
 setFormatOutput ($bool)
 render ()

Protected Member Functions

 getNodes ($struct, DOMNode $parentNode)
 isIteratable ($struct)

Protected Attributes

 $document
 $rootNode = 'data'
 $formatOutput = true


Detailed Description

Definition at line 14 of file XML.php.


Member Function Documentation

Panda_View_XML::setRootNodeName ( name  ) 

Sets the root node's name

Parameters:
string $name

Definition at line 43 of file XML.php.

Panda_View_XML::setFormatOutput ( bool  ) 

Turns formatted output on or off

Parameters:
bool $bool

Definition at line 57 of file XML.php.

Panda_View_XML::render (  ) 

Renders the XML data

Returns:
string 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.

Parameters:
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

Parameters:
mixed $struct The value to test
Returns:
boolean True if the object is iteratable; false otherwise

Definition at line 114 of file XML.php.

Referenced by getNodes().


Member Data Documentation

Panda_View_XML::$document [protected]

Definition at line 22 of file XML.php.

Panda_View_XML::$rootNode = 'data' [protected]

Definition at line 29 of file XML.php.

Panda_View_XML::$formatOutput = true [protected]

Definition at line 36 of file XML.php.


The documentation for this class was generated from the following file:
Generated on Thu Sep 4 01:56:50 2008 for Panda PHP Components by  doxygen 1.5.4