Lines Matching refs:this

61      * Use this method to tell the server this plugin defines additional
76 $node = $this->server->tree->getNodeForPath($parent);
130 * Using this name other plugins will be able to access other plugins
142 * Returns a list of reports this plugin supports.
153 $node = $this->server->tree->getNodeForPath($uri);
164 // if we say we support it on the calendar-home, even though this is
166 if ($node instanceof CalendarHome && $this->server->getPlugin('sync')) {
181 $this->server = $server;
183 $server->on('method:MKCALENDAR', [$this, 'httpMkCalendar']);
184 $server->on('report', [$this, 'report']);
185 $server->on('propFind', [$this, 'propFind']);
186 $server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel']);
187 $server->on('beforeCreateFile', [$this, 'beforeCreateFile']);
188 $server->on('beforeWriteContent', [$this, 'beforeWriteContent']);
189 $server->on('afterMethod:GET', [$this, 'httpAfterGET']);
190 $server->on('getSupportedPrivilegeSet', [$this, 'getSupportedPrivilegeSet']);
245 $this->server->transactionType = 'report-calendar-multiget';
246 $this->calendarMultiGetReport($report);
249 $this->server->transactionType = 'report-calendar-query';
250 $this->calendarQueryReport($report);
253 $this->server->transactionType = 'report-free-busy-query';
254 $this->freeBusyQueryReport($report);
280 $mkcalendar = $this->server->xml->expect(
293 // to do this.
295 // If the body had a {DAV:}resourcetype, it means we stumbled upon this
303 $this->server->createCollection($path, new MkCol($resourceType, $properties));
329 $propFind->handle($ns . 'max-resource-size', $this->maxResourceSize);
345 $calendarHomePath = $this->getCalendarHomeForPrincipal($principalUrl);
354 $addresses[] = $this->server->getBaseUri() . $node->getPrincipalUrl() . '/';
371 // other principals this principal has access to.
377 $aclPlugin = $this->server->getPlugin('acl');
384 $groupNode = $this->server->tree->getNodeForPath($group);
443 [$this->server, 'calculateUri'],
447 foreach ($this->server->getPropertiesForMultiplePaths($paths, $report->properties) as $uri => $objProps) {
459 $tzResult = $this->server->getProperties($calendarPath, [$tzProp]);
488 $prefer = $this->server->getHTTPPrefer();
490 $this->server->httpResponse->setStatus(207);
491 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
492 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
493 $this->server->httpResponse->setBody($this->server->generateMultiStatus($propertyList, $prefer['return'] === 'minimal'));
508 $path = $this->server->getRequestUri();
512 $node = $this->server->tree->getNodeForPath($this->server->getRequestUri());
513 $depth = $this->server->getHTTPDepth(0);
523 $tzResult = $this->server->getProperties($path, [$tzProp]);
539 // The calendarobject was requested directly. In this case we handle
540 // this locally.
556 $properties = $this->server->getPropertiesForPath(
567 // this.
605 if (strpos($this->server->httpRequest->getHeader('User-Agent'), 'MSFT-') === 0) {
608 // to deal with this.
629 $this->server->getPropertiesForPath($this->server->getRequestUri() . '/' . $path, $report->properties);
654 $prefer = $this->server->getHTTPPrefer();
656 $this->server->httpResponse->setStatus(207);
657 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
658 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
659 $this->server->httpResponse->setBody($this->server->generateMultiStatus($result, $prefer['return'] === 'minimal'));
672 $uri = $this->server->getRequestUri();
674 $acl = $this->server->getPlugin('acl');
679 $calendar = $this->server->tree->getNodeForPath($uri);
688 $calendarProps = $this->server->getProperties($uri, [$tzProp]);
732 $this->server->httpResponse->setStatus(200);
733 $this->server->httpResponse->setHeader('Content-Type', 'text/calendar');
734 $this->server->httpResponse->setHeader('Content-Length', strlen($result));
735 $this->server->httpResponse->setBody($result);
742 * This plugin uses this method to ensure that CalDAV objects receive
748 * @param bool $modified Should be set to true, if this event handler
761 $parentNode = $this->server->tree->getNodeForPath($parent);
766 $this->validateICalendar(
770 $this->server->httpRequest,
771 $this->server->httpResponse,
780 * This plugin uses this method to ensure that newly created calendar
786 * @param bool $modified Should be set to true, if this event handler
795 $this->validateICalendar(
799 $this->server->httpRequest,
800 $this->server->httpResponse,
813 * @param bool $modified Should be set to true, if this event handler
858 $calendarProperties = $this->server->getProperties($parentPath, [$sCCS]);
886 $prefer = $this->server->getHTTPPrefer();
935 $this->server->emit(
1011 * This is used to transform data into jCal, if this was requested.
1050 * Providing this information is optional, and is mainly displayed by the
1061 'name' => $this->getPluginName(),