ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PropFind.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Sabre\DAV\Xml\Request;
4 
8 
20 class PropFind implements XmlDeserializable {
21 
27  public $allProp = false;
28 
34  public $properties;
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 }
static xmlDeserialize(Xml\Reader $reader)
The deserialize method is called during xml parsing.
Definition: KeyValue.php:102
The Reader class expands upon PHP&#39;s built-in XMLReader.
Definition: Reader.php:20
WebDAV PROPFIND request parser.
Definition: PropFind.php:20
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
Definition: PropFind.php:57
Implementing the XmlDeserializable interface allows you to use a class as a deserializer for a specif...