Lines Matching refs:this

36      * Add urls to this property to have them automatically exposed as
66 $server->on('propFind', [$this, 'propFindEarly']);
67 $server->on('propFind', [$this, 'propFindLate'], 150);
68 $server->on('report', [$this, 'report']);
69 $server->on('onHTMLActionsPanel', [$this, 'htmlActionsPanel']);
70 $server->on('beforeWriteContent', [$this, 'beforeWriteContent']);
71 $server->on('beforeCreateFile', [$this, 'beforeCreateFile']);
72 $server->on('afterMethod:GET', [$this, 'httpAfterGet']);
91 $this->server = $server;
109 * Returns a list of reports this plugin supports.
120 $node = $this->server->tree->getNodeForPath($uri);
145 $propFind->handle($ns . 'max-resource-size', $this->maxResourceSize);
159 return new Href($this->getAddressBookHomeForPrincipal($path) . '/');
162 if ($this->directories) $propFind->handle('{' . self::NS_CARDDAV . '}directory-gateway', function() {
163 return new Href($this->directories);
197 $this->server->transactionType = 'report-addressbook-multiget';
198 $this->addressbookMultiGetReport($dom);
201 $this->server->transactionType = 'report-addressbook-query';
202 $this->addressBookQueryReport($dom);
243 $vcardType = $this->negotiateVCard(
249 [$this->server, 'calculateUri'],
252 foreach ($this->server->getPropertiesForMultiplePaths($paths, $report->properties) as $props) {
256 $props['200']['{' . self::NS_CARDDAV . '}address-data'] = $this->convertVCard(
266 $prefer = $this->server->getHTTPPrefer();
268 $this->server->httpResponse->setStatus(207);
269 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
270 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
271 $this->server->httpResponse->setBody($this->server->generateMultiStatus($propertyList, $prefer['return'] === 'minimal'));
278 * This plugin uses this method to ensure that Card nodes receive valid
284 * @param bool $modified Should be set to true, if this event handler
293 $this->validateVCard($data, $modified);
300 * This plugin uses this method to ensure that Card nodes receive valid
306 * @param bool $modified Should be set to true, if this event handler
315 $this->validateVCard($data, $modified);
325 * @param bool $modified Should be set to true, if this event handler
389 $depth = $this->server->getHTTPDepth(0);
393 $this->server->tree->getNodeForPath($this->server->getRequestUri())
396 throw new ReportNotSupported('The addressbook-query report is not supported on this url with Depth: 0');
399 $candidateNodes = $this->server->tree->getChildren($this->server->getRequestUri());
407 $vcardType = $this->negotiateVCard(
422 if (!$this->validateFilters($blob, $report->filters, $report->test)) {
439 $href = $this->server->getRequestUri();
441 $href = $this->server->getRequestUri() . '/' . $validNode->getName();
444 list($props) = $this->server->getPropertiesForPath($href, $report->properties, 0);
448 $props[200]['{' . self::NS_CARDDAV . '}address-data'] = $this->convertVCard(
458 $prefer = $this->server->getHTTPPrefer();
460 $this->server->httpResponse->setStatus(207);
461 $this->server->httpResponse->setHeader('Content-Type', 'application/xml; charset=utf-8');
462 $this->server->httpResponse->setHeader('Vary', 'Brief,Prefer');
463 $this->server->httpResponse->setBody($this->server->generateMultiStatus($result, $prefer['return'] === 'minimal'));
501 $results[] = $this->validateParamFilters($vProperties, $filter['param-filters'], $filter['test']);
508 $results[] = $this->validateTextMatches($texts, $filter['text-matches'], $filter['test']);
524 // or not this filter succeeds.
592 // or not this filter succeeds.
668 if (strpos($this->server->httpRequest->getHeader('User-Agent'), 'Thunderbird') === false) {
710 * This is used to transform data into jCal, if this was requested.
722 $target = $this->negotiateVCard($request->getHeader('Accept'), $mimeType);
724 $newBody = $this->convertVCard(
819 * Using this name other plugins will be able to access other plugins
833 * Providing this information is optional, and is mainly displayed by the
844 'name' => $this->getPluginName(),