77 foreach ($this->sharees as $sharee) {
79 if ($sharee->access === DAV\Sharing\Plugin::ACCESS_SHAREDOWNER) {
84 switch ($sharee->inviteStatus) {
100 switch ($sharee->access) {
109 $writer->endElement();
114 $href->xmlSerialize($writer);
116 if (isset($sharee->properties[
'{DAV:}displayname'])) {
117 $writer->
writeElement($cs .
'common-name', $sharee->properties[
'{DAV:}displayname']);
119 if ($sharee->comment) {
120 $writer->
writeElement($cs .
'summary', $sharee->comment);
122 $writer->endElement();
Objects implementing XmlSerializable can control how they are represented in Xml. ...
__construct(array $sharees)
Creates the property.
startElement($name)
Opens a new element.
const NS_CALENDARSERVER
This is the namespace for the proprietary calendarserver extensions.
xmlSerialize(Writer $writer)
The xmlSerialize method is called during xml writing.
getValue()
Returns the list of users, as it was passed to the constructor.
writeElement($name, $content=null)
Write a full element tag and it's contents.