71 foreach ($elems as $elem) {
72 switch ($elem[
'name']) {
75 $sharee = $elem[
'value'];
81 if (isset($sharee[$commonName])) {
82 $properties[
'{DAV:}displayname'] = $sharee[$commonName];
90 'href' => $sharee[
'{DAV:}href'],
91 'properties' => $properties,
93 'comment' => isset($sharee[$sumElem]) ? $sharee[$sumElem] : null
99 'href' => $elem[
'value'][
'{DAV:}href'],
100 'access' => \
Sabre\DAV\Sharing\Plugin::ACCESS_NOACCESS
This class represents the {DAV:}sharee element.
static xmlDeserialize(Reader $reader)
The deserialize method is called during xml parsing.
Share POST request parser.
parseGetElements(array $elementMap=null)
parseGetElements parses everything in the current sub-tree, and returns a an array of elements...
const NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
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...
__construct(array $sharees)
Constructor.