ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Elements.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\Xml\Element;
4 
5 use Sabre\Xml;
8 
36 class Elements implements Xml\Element {
37 
43  protected $value;
44 
50  function __construct(array $value = []) {
51 
52  $this->value = $value;
53 
54  }
55 
75  function xmlSerialize(Xml\Writer $writer) {
76 
77  Serializer\enum($writer, $this->value);
78 
79  }
80 
102  static function xmlDeserialize(Xml\Reader $reader) {
103 
104  return Deserializer\enum($reader);
105 
106  }
107 
108 }
xmlSerialize(Xml\Writer $writer)
The xmlSerialize metod is called during xml writing.
Definition: Elements.php:75
__construct(array $value=[])
Constructor.
Definition: Elements.php:50
enum(Reader $reader, $namespace=null)
The &#39;enum&#39; deserializer parses elements into a simple list without values or attributes.
Definition: functions.php:140
The Reader class expands upon PHP&#39;s built-in XMLReader.
Definition: Reader.php:20
&#39;Elements&#39; is a simple list of elements, without values or attributes.
Definition: Elements.php:36
This is the XML element interface.
Definition: Element.php:18
static xmlDeserialize(Xml\Reader $reader)
The deserialize method is called during xml parsing.
Definition: Elements.php:102
enum(Writer $writer, array $values)
This file provides a number of &#39;serializer&#39; helper functions.
Definition: functions.php:41
The XML Writer class.
Definition: Writer.php:31