78 $reader->pushContext();
79 $reader->elementMap[
'{DAV:}prop'] =
'Sabre\Xml\Deserializer\enum';
86 $reader->popContext();
88 $principalMatch =
new self();
90 if (array_key_exists(
'self', $elems)) {
91 $principalMatch->type = self::SELF;
94 if (array_key_exists(
'principal-property', $elems)) {
95 $principalMatch->type = self::PRINCIPAL_PROPERTY;
96 $principalMatch->principalProperty = $elems[
'principal-property'][0][
'name'];
99 if (!empty($elems[
'prop'])) {
100 $principalMatch->properties = $elems[
'prop'];
103 return $principalMatch;
keyValue(Reader $reader, $namespace=null)
This class provides a number of 'deserializer' helper functions.
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...
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
const PRINCIPAL_PROPERTY
Report on a property on resources, such as {DAV:}owner, that match the current principal.
PrincipalMatchReport request parser.
const SELF
Report on a list of principals that match the current principal.