ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
CDATA element. More...
Public Member Functions | |
__construct ($value) | |
Constructor. More... | |
xmlSerialize (Xml\Writer $writer) | |
The xmlSerialize metod is called during xml writing. More... | |
![]() | |
xmlSerialize (Writer $writer) | |
The xmlSerialize method is called during xml writing. More... | |
Protected Attributes | |
$value | |
CDATA element.
This element allows you to easily inject CDATA.
Note that we strongly recommend avoiding CDATA nodes, unless you definitely know what you're doing, or you're working with unchangable systems that require CDATA.
Sabre\Xml\Element\Cdata::__construct | ( | $value | ) |
Constructor.
string | $value |
Definition at line 34 of file Cdata.php.
References Sabre\Xml\Element\Cdata\$value.
Sabre\Xml\Element\Cdata::xmlSerialize | ( | Xml\Writer | $writer | ) |
The xmlSerialize metod is called during xml writing.
Use the $writer argument to write its own xml serialization.
An important note: do not create a parent element. Any element implementing XmlSerializble should only ever write what's considered its 'inner xml'.
The parent of the current element is responsible for writing a containing element.
This allows serializers to be re-used for different element names.
If you are opening new elements, you must also close them again.
Writer | $writer |
|
protected |
Definition at line 27 of file Cdata.php.
Referenced by Sabre\Xml\Element\Cdata\__construct().