81 $foundSearchProp =
false;
82 $self->test =
'allof';
83 if ($reader->getAttribute(
'test') ===
'anyof') {
84 $self->test =
'anyof';
88 '{DAV:}property-search' =>
'Sabre\\Xml\\Element\\KeyValue',
89 '{DAV:}prop' =>
'Sabre\\Xml\\Element\\KeyValue',
94 switch ($elem[
'name']) {
97 $self->properties = array_keys($elem[
'value']);
99 case '{DAV:}property-search' :
100 $foundSearchProp =
true;
105 if (!isset($elem[
'value'][
'{DAV:}prop']) || !isset($elem[
'value'][
'{DAV:}match'])) {
106 throw new BadRequest(
'The {DAV:}property-search element must contain one {DAV:}match and one {DAV:}prop element');
108 foreach ($elem[
'value'][
'{DAV:}prop'] as $propName => $discard) {
109 $self->searchProperties[$propName] = $elem[
'value'][
'{DAV:}match'];
112 case '{DAV:}apply-to-principal-collection-set' :
113 $self->applyToPrincipalCollectionSet =
true;
119 if (!$foundSearchProp) {
120 throw new BadRequest(
'The {DAV:}principal-property-search report must contain at least 1 {DAV:}property-search element');
parseInnerTree(array $elementMap=null)
Parses all elements below the current element.
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
The Reader class expands upon PHP's built-in XMLReader.
Implementing the XmlDeserializable interface allows you to use a class as a deserializer for a specif...
PrincipalSearchPropertySetReport request parser.
$applyToPrincipalCollectionSet