Lines Matching refs:this

60      * Use this method to tell the server this plugin defines additional
75 $node = $this->server->tree->getNodeForPath($parent);
119 * Using this name other plugins will be able to access other plugins
131 * Returns a list of reports this plugin supports.
142 $node = $this->server->tree->getNodeForPath($uri);
153 // if we say we support it on the calendar-home, even though this is
155 if ($node instanceof CalendarHome && $this->server->getPlugin('sync')) {
170 $this->server = $server;
172 $server->on('method:MKCALENDAR', [$this, 'httpMkCalendar']);
173 $server->on('report', [$this, 'report']);
174 $server->on('propFind', [$this, 'propFind']);
175 $server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel']);
176 $server->on('beforeCreateFile', [$this, 'beforeCreateFile']);
177 $server->on('beforeWriteContent', [$this, 'beforeWriteContent']);
178 $server->on('afterMethod:GET', [$this, 'httpAfterGET']);
231 $this->server->transactionType = 'report-calendar-multiget';
232 $this->calendarMultiGetReport($report);
235 $this->server->transactionType = 'report-calendar-query';
236 $this->calendarQueryReport($report);
239 $this->server->transactionType = 'report-free-busy-query';
240 $this->freeBusyQueryReport($report);
266 $mkcalendar = $this->server->xml->expect(
279 // to do this.
281 // If the body had a {DAV:}resourcetype, it means we stumbled upon this
289 $this->server->createCollection($path, new MkCol($resourceType, $properties));
291 $this->server->httpResponse->setStatus(201);
292 $this->server->httpResponse->setHeader('Content-Length', 0);
315 $propFind->handle($ns . 'max-resource-size', $this->maxResourceSize);
331 $calendarHomePath = $this->getCalendarHomeForPrincipal($principalUrl) . '/';
339 $addresses[] = $this->server->getBaseUri() . $node->getPrincipalUrl() . '/';
356 // other principals this principal has access to.
362 $aclPlugin = $this->server->getPlugin('acl');
369 $groupNode = $this->server->tree->getNodeForPath($group);
428 [$this->server, 'calculateUri'],
432 foreach ($this->server->getPropertiesForMultiplePaths($paths, $report->properties) as $uri => $objProps) {
444 $tzResult = $this->server->getProperties($calendarPath, [$tzProp]);
470 $prefer = $this->server->getHTTPPrefer();
472 $this->server->httpResponse->setStatus(207);
473 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
474 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
475 $this->server->httpResponse->setBody($this->server->generateMultiStatus($propertyList, $prefer['return'] === 'minimal'));
490 $path = $this->server->getRequestUri();
494 $node = $this->server->tree->getNodeForPath($this->server->getRequestUri());
495 $depth = $this->server->getHTTPDepth(0);
505 $tzResult = $this->server->getProperties($path, [$tzProp]);
518 // The calendarobject was requested directly. In this case we handle
519 // this locally.
535 $properties = $this->server->getPropertiesForPath(
546 // this.
581 if (strpos($this->server->httpRequest->getHeader('User-Agent'), 'MSFT-WP/') === 0) {
584 // to deal with this.
601 $this->server->getPropertiesForPath($this->server->getRequestUri() . '/' . $path, $report->properties);
622 $prefer = $this->server->getHTTPPrefer();
624 $this->server->httpResponse->setStatus(207);
625 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
626 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
627 $this->server->httpResponse->setBody($this->server->generateMultiStatus($result, $prefer['return'] === 'minimal'));
640 $uri = $this->server->getRequestUri();
642 $acl = $this->server->getPlugin('acl');
647 $calendar = $this->server->tree->getNodeForPath($uri);
656 $calendarProps = $this->server->getProperties($uri, [$tzProp]);
698 $this->server->httpResponse->setStatus(200);
699 $this->server->httpResponse->setHeader('Content-Type', 'text/calendar');
700 $this->server->httpResponse->setHeader('Content-Length', strlen($result));
701 $this->server->httpResponse->setBody($result);
708 * This plugin uses this method to ensure that CalDAV objects receive
714 * @param bool $modified Should be set to true, if this event handler
727 $parentNode = $this->server->tree->getNodeForPath($parent);
732 $this->validateICalendar(
736 $this->server->httpRequest,
737 $this->server->httpResponse,
746 * This plugin uses this method to ensure that newly created calendar
752 * @param bool $modified Should be set to true, if this event handler
761 $this->validateICalendar(
765 $this->server->httpRequest,
766 $this->server->httpResponse,
779 * @param bool $modified Should be set to true, if this event handler
828 $calendarProperties = $this->server->getProperties($parentPath, [$sCCS]);
859 throw new DAV\Exception\BadRequest('Every ' . $component->name . ' in this object must have identical UIDs');
877 $this->server->emit(
934 * This is used to transform data into jCal, if this was requested.
970 * Providing this information is optional, and is mainly displayed by the
981 'name' => $this->getPluginName(),