Zend Framework
1.12
|
Abstract XML generator adapter. More...
Public Member Functions | |
__construct ($encoding= 'UTF-8') | |
Construct new instance of the generator. | |
openElement ($name, $value=null) | |
Start XML element. | |
closeElement ($name) | |
End of an XML element. | |
saveXml () | |
Return XML as a string. | |
getEncoding () | |
Return encoding. | |
flush () | |
Returns the XML as a string and flushes all internal buffers. | |
__toString () | |
Returns XML without document declaration. | |
stripDeclaration ($xml) | |
Removes XML declaration from a string. | |
Protected Member Functions | |
_openElement ($name) | |
Start XML element. | |
_writeTextData ($text) | |
Write XML text data into the currently opened XML element. | |
_closeElement ($name) | |
End XML element. | |
Protected Attributes | |
$_encoding | |
Abstract XML generator adapter.
__construct | ( | $encoding = 'UTF-8' | ) |
Construct new instance of the generator.
string | $encoding | XML encoding, default UTF-8 |
__toString | ( | ) |
Returns XML without document declaration.
|
abstractprotected |
End XML element.
string | $name |
|
abstractprotected |
Start XML element.
string | $name | XML element name |
|
abstractprotected |
Write XML text data into the currently opened XML element.
string | $text |
closeElement | ( | $name | ) |
End of an XML element.
Method marks the end of an XML element
string | $name | XML tag name |
flush | ( | ) |
Returns the XML as a string and flushes all internal buffers.
getEncoding | ( | ) |
Return encoding.
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 |
|
abstract |
Return XML as a string.
stripDeclaration | ( | $xml | ) |
Removes XML declaration from a string.
string | $xml |
|
protected |