ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Elements.php
Go to the documentation of this file.
1<?php
2
3namespace Sabre\Xml\Element;
4
5use Sabre\Xml;
8
36class 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
105
106 }
107
108}
An exception for terminatinating execution or to throw for unit testing.
'Elements' is a simple list of elements, without values or attributes.
Definition: Elements.php:36
static xmlDeserialize(Xml\Reader $reader)
The deserialize method is called during xml parsing.
Definition: Elements.php:102
__construct(array $value=[])
Constructor.
Definition: Elements.php:50
xmlSerialize(Xml\Writer $writer)
The xmlSerialize metod is called during xml writing.
Definition: Elements.php:75
The Reader class expands upon PHP's built-in XMLReader.
Definition: Reader.php:20
The XML Writer class.
Definition: Writer.php:31
This is the XML element interface.
Definition: Element.php:18
enum(Reader $reader, $namespace=null)
The 'enum' deserializer parses elements into a simple list without values or attributes.
Definition: functions.php:140
enum(Writer $writer, array $values)
This file provides a number of 'serializer' helper functions.
Definition: functions.php:41