|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| __construct ($encoding= 'UTF-8') | |
| openElement ($name, $value=null) | |
| closeElement ($name) | |
| saveXml () | |
| getEncoding () | |
| flush () | |
| __toString () | |
| stripDeclaration ($xml) | |
Protected Member Functions | |
| _openElement ($name) | |
| _writeTextData ($text) | |
| _closeElement ($name) | |
Protected Attributes | |
| $_encoding | |
Abstract XML generator adapter
Definition at line 26 of file GeneratorAbstract.php.
| __construct | ( | $ | encoding = 'UTF-8' | ) |
Construct new instance of the generator
| string | $encoding | XML encoding, default UTF-8 |
Definition at line 40 of file GeneratorAbstract.php.
| __toString | ( | ) |
Returns XML without document declaration
Definition at line 114 of file GeneratorAbstract.php.

| _closeElement | ( | $ | name | ) | [abstract, protected] |
End XML element
| string | $name |
Reimplemented in Zend_XmlRpc_Generator_XmlWriter, and Zend_XmlRpc_Generator_DomDocument.

| _openElement | ( | $ | name | ) | [abstract, protected] |
Start XML element
| string | $name | XML element name |
Reimplemented in Zend_XmlRpc_Generator_XmlWriter, and Zend_XmlRpc_Generator_DomDocument.

| _writeTextData | ( | $ | text | ) | [abstract, protected] |
Write XML text data into the currently opened XML element
| string | $text |
Reimplemented in Zend_XmlRpc_Generator_XmlWriter, and Zend_XmlRpc_Generator_DomDocument.

| closeElement | ( | $ | name | ) |
End of an XML element
Method marks the end of an XML element
| string | $name | XML tag name |
Definition at line 73 of file GeneratorAbstract.php.

| flush | ( | ) |
Returns the XML as a string and flushes all internal buffers
Definition at line 102 of file GeneratorAbstract.php.

| getEncoding | ( | ) |
| openElement | ( | $ | name, |
| $ | value = null |
||
| ) |
Start XML element
Method opens a new XML element with an element name and an optional value
| string | $name | XML tag name |
| string | $value | Optional value of the XML tag |
Definition at line 55 of file GeneratorAbstract.php.

| saveXml | ( | ) | [abstract] |
Return XML as a string
Reimplemented in Zend_XmlRpc_Generator_XmlWriter, and Zend_XmlRpc_Generator_DomDocument.

| stripDeclaration | ( | $ | xml | ) |
Removes XML declaration from a string
| string | $xml |
Definition at line 125 of file GeneratorAbstract.php.

$_encoding [protected] |
Definition at line 33 of file GeneratorAbstract.php.