SnapContentXml Class Reference
[Content Modules]

XML Content Module. More...

Inheritance diagram for SnapContentXml:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 getXML ()
 Retrieve raw XML from content module.
 setXML ($xml)
 Set the XML content.


Detailed Description

XML Content Module.

This content module contains schema-validated Shodor Standard XML 3.0. Invalid XML is not allowed to be stored in this content module, to prevent invalid data from being stored in Snap2.


Member Function Documentation

SnapContentXml::getXML (  ) 

Retrieve raw XML from content module.

Calling getHTML(), which is the normal method to extract content from a content module, will return translated XML => HTML. To get the raw XML, use this method.

Returns:
[string]: XML contained in this content module

SnapContentXml::setXML ( xml  ) 

Set the XML content.

If the XML is invalid, an internal array is used to store the errors. The errors can be retrieved with getXMLError().

Parameters:
$xml [string]: valid XML string to put into this content module
Returns:
[boolean/array]: true if successful, array of errors otherwise


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

Generated on Wed Nov 24 02:03:15 2010 for Common by  doxygen 1.5.6