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