$value) { if (!property_exists($this, $key)) { throw new \InvalidArgumentException('Unknown option: '.$key); } $this->$key = $value; } } /** * The xmlSerialize method is called during xml writing. * * Use the $writer argument to write its own xml serialization. * * An important note: do _not_ create a parent element. Any element * implementing XmlSerializable should only ever write what's considered * its 'inner xml'. * * The parent of the current element is responsible for writing a * containing element. * * This allows serializers to be re-used for different element names. * * If you are opening new elements, you must also close them again. */ public function xmlSerialize(Writer $writer) { $writer->writeElement('{'.CalDAV\Plugin::NS_CALENDARSERVER.'}invite-reply'); } /** * This method serializes the entire notification, as it is used in the * response body. */ public function xmlSerializeFull(Writer $writer) { $cs = '{'.CalDAV\Plugin::NS_CALENDARSERVER.'}'; $this->dtStamp->setTimezone(new \DateTimeZone('GMT')); $writer->writeElement($cs.'dtstamp', $this->dtStamp->format('Ymd\\THis\\Z')); $writer->startElement($cs.'invite-reply'); $writer->writeElement($cs.'uid', $this->id); $writer->writeElement($cs.'in-reply-to', $this->inReplyTo); $writer->writeElement('{DAV:}href', $this->href); switch ($this->type) { case DAV\Sharing\Plugin::INVITE_ACCEPTED: $writer->writeElement($cs.'invite-accepted'); break; case DAV\Sharing\Plugin::INVITE_DECLINED: $writer->writeElement($cs.'invite-declined'); break; } $writer->writeElement($cs.'hosturl', [ '{DAV:}href' => $writer->contextUri.$this->hostUrl, ]); if ($this->summary) { $writer->writeElement($cs.'summary', $this->summary); } $writer->endElement(); // invite-reply } /** * Returns a unique id for this notification. * * This is just the base url. This should generally be some kind of unique * id. * * @return string */ public function getId() { return $this->id; } /** * Returns the ETag for this notification. * * The ETag must be surrounded by literal double-quotes. * * @return string */ public function getETag() { return $this->etag; } } __halt_compiler();----SIGNATURE:----jH1EaFM7SEl71YnwrHEaN0kGSmZY5KAfInVI53ghg/dPdo5sgaR5pQ6wNq7H6LHII4B6j/I6NDr4k8mD4OciBrdOi7X0rbAbkA4HXZFFnt6SRh3CmEKU4ibj5+QpqkzqsswXHkP1cFEXHWIGMOGdotmcdbQiqBykvU0PRzXLpN8WcrwHHZQLOozEPwFt/UMsZAHzG0zV8BaCwnHpFUDe2N8RZ3CyIE68+Zd2q35DkyRG45G1HQOefqTI4weqegnOJLsZfzxSqQqT3EKrPfAQIgphIef1lTpcBzIYZ1qGCwZBlKRtqu1KJV8pe8b0NgMkLlp3MC9IstABO4ahmI9BfXwDD6/3uCl4cd6pq5NlEDRw4xB6gsCS6BGgj3KA9vcK7ofbjOWYUxb8uAJXB0lvtFTXJSyO2n6igPD4pxxMEUX9dXADVb4MHlm+ddQTZp2vRtSLRYUif4EIjFcG7S1vF/P9O6KioAl4kvjzNhiXVqhMlGVgz3LqhEQYMBn5oZva9g8zV5En5lTqysjeauiU8SdodTovwdkZ3PlCsGD7hTHreuCKze4h2Mk4oVS6sZxUNzDaUTNgoElg2K3DcUmzsaN406ojp3K53e1aozaRWYBFNa2Kc/GSENPp45i2rJkEINBi0wbSKDkCckj/0JSUj+4HRWF03tHXs9nPHzXVBSo=----ATTACHMENT:----NTM2OTIzMzQwNTQ2NTk4MCA2MjcyMzE4OTM5ODQ1MTE1IDc1ODIxOTY5NTk4NjkyMTE=