function options(&$serverOptions) { parent::options($serverOptions); if ($serverOptions['xpath']->evaluate('boolean(/D:options/D:activity-collection-set)')) { $this->setResponseHeader('Content-Type: text/xml; charset="utf-8"'); echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n"; echo "<D:options-response xmlns:D=\"DAV:\">\n"; echo ' <D:activity-collection-set><D:href>' . $this->getUrl(array('path' => 'deltav.php/act')) . "</D:href></D:activity-collection-set>\n"; echo "</D:options-response>\n"; } return true; }