
Public Member Functions | |
| checkMedia () | |
| Checks whether on-disk media is available and correct. | |
| getXML () | |
| Retrieve raw XML from content module. | |
| setXML ($xml) | |
| Set the XML content. | |
Static Public Member Functions | |
| static | initialValue () |
| Returns initial value for new versions of this type. | |
Protected Member Functions | |
| doGetHTML ($params) | |
| validate () | |
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.
Definition at line 11 of file SnapContentXml.php5.
| SnapContentXml::checkMedia | ( | ) |
Checks whether on-disk media is available and correct.
For internal use only.
For non-media-based content, this method should always return true. Otherwise, it should check to make sure all files it is responsible for are on disk and readable by the webserver.
Reimplemented from SnapContent.
Definition at line 57 of file SnapContentXml.php5.
| SnapContentXml::doGetHTML | ( | $ | params | ) | [protected] |
For internal use only.
Reimplemented from SnapContent.
Definition at line 53 of file SnapContentXml.php5.
References SnapContent::getAll().
| 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.
Definition at line 43 of file SnapContentXml.php5.
References SnapContent::getAll().
| static SnapContentXml::initialValue | ( | ) | [static] |
Returns initial value for new versions of this type.
For internal use only.
Definition at line 69 of file SnapContentXml.php5.
| 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().
| $xml | [string]: valid XML string to put into this content module |
Definition at line 24 of file SnapContentXml.php5.
References SXMLHelper::formatXML(), SnapContent::setAll(), SObject::setWarning(), and SXMLHelper::validateXML().
| SnapContentXml::validate | ( | ) | [protected] |
For internal use only.
Reimplemented from SnapContent.
Definition at line 48 of file SnapContentXml.php5.
1.5.6