ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Cdata.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\Xml\Element;
4 
5 use Sabre\Xml;
6 
20 class Cdata implements Xml\XmlSerializable
21 {
27  protected $value;
28 
34  function __construct($value)
35  {
36  $this->value = $value;
37  }
38 
58  function xmlSerialize(Xml\Writer $writer) {
59 
60  $writer->writeCData($this->value);
61 
62  }
63 
64 }
Objects implementing XmlSerializable can control how they are represented in Xml. ...
xmlSerialize(Xml\Writer $writer)
The xmlSerialize metod is called during xml writing.
Definition: Cdata.php:58
CDATA element.
Definition: Cdata.php:20
__construct($value)
Constructor.
Definition: Cdata.php:34
The XML Writer class.
Definition: Writer.php:31