ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PropFind.php
Go to the documentation of this file.
1<?php
2
4
8
20class PropFind implements XmlDeserializable {
21
27 public $allProp = false;
28
35
57 static function xmlDeserialize(Reader $reader) {
58
59 $self = new self();
60
61 $reader->pushContext();
62 $reader->elementMap['{DAV:}prop'] = 'Sabre\Xml\Element\Elements';
63
64 foreach (KeyValue::xmlDeserialize($reader) as $k => $v) {
65
66 switch ($k) {
67 case '{DAV:}prop' :
68 $self->properties = $v;
69 break;
70 case '{DAV:}allprop' :
71 $self->allProp = true;
72
73 }
74
75 }
76
77 $reader->popContext();
78
79 return $self;
80
81 }
82
83}
An exception for terminatinating execution or to throw for unit testing.
WebDAV PROPFIND request parser.
Definition: PropFind.php:20
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
Definition: PropFind.php:57
'KeyValue' parses out all child elements from a single node, and outputs a key=>value struct.
Definition: KeyValue.php:36
static xmlDeserialize(Xml\Reader $reader)
The deserialize method is called during xml parsing.
Definition: KeyValue.php:102
The Reader class expands upon PHP's built-in XMLReader.
Definition: Reader.php:20
Implementing the XmlDeserializable interface allows you to use a class as a deserializer for a specif...