Lines Matching +full:- +full:- +full:debug

8  * PDO CalDAV backend for DokuWiki - based on Sabre's CalDAV backend
10 * This backend is used to store calendar-data in a PDO database, such as
13 * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
31 * Note that only string-based properties are supported here.
37 '{urn:ietf:params:xml:ns:caldav}calendar-description' => 'description',
38 '{urn:ietf:params:xml:ns:caldav}calendar-timezone' => 'timezone',
39 //'{http://apple.com/ns/ical/}calendar-order' => 'calendarorder',
40 //'{http://apple.com/ns/ical/}calendar-color' => 'calendarcolor',
51 $this->hlp = $hlp;
69 * {urn:ietf:params:xml:ns:caldav}supported-calendar-component-set
73 * If you return {http://sabredav.org/ns}read-only and set the value to 1,
74 * ACL will automatically be put in read-only mode.
81 …\dokuwiki\Logger::debug('DAVCAL', 'getCalendarsForUser called for: '.$principalUri, __FILE__, __LI…
82 $fields = array_values($this->propertyMap);
90 $idInfo = $this->hlp->getCalendarIdsForUser($principalUri);
94 $row = $this->hlp->getCalendarSettings($id);
98 …\dokuwiki\Logger::debug('DAVCAL', 'Skipping calendar '.$id.' - settings not found', __FILE__, __LI…
113 …'{http://sabredav.org/ns}sync-token' => $row['synctoken'] ? $row['…
114 …'{' . CalDAV\Plugin::NS_CALDAV . '}supported-calendar-component-set' => new CalDAV\Xml\Property\Su…
115 …//'{' . CalDAV\Plugin::NS_CALDAV . '}schedule-calendar-transp' => new CalDAV\Xml\Property\…
118 $calendar['{http://sabredav.org/ns}read-only'] = '1';
121 foreach ($this->propertyMap as $xmlName => $dbName)
129 … \dokuwiki\Logger::debug('DAVCAL', 'Calendars returned: '.count($calendars), __FILE__, __LINE__);
147 … \dokuwiki\Logger::debug('DAVCAL', 'createCalendar called, returning false', __FILE__, __LINE__);
169 …\dokuwiki\Logger::debug('DAVCAL', 'updateCalendar for calendarId '.$calendarId, __FILE__, __LINE__…
170 $supportedProperties = array_keys($this->propertyMap);
172 $propPatch->handle($supportedProperties, function($mutations) use ($calendarId)
180 \dokuwiki\Logger::debug('DAVCAL', 'updateCalendarName', __FILE__, __LINE__);
181 $this->hlp->updateCalendarName($calendarId, $propertyValue);
183 case '{urn:ietf:params:xml:ns:caldav}calendar-description':
184 … \dokuwiki\Logger::debug('DAVCAL', 'updateCalendarDescription', __FILE__, __LINE__);
185 $this->hlp->updateCalendarDescription($calendarId, $propertyValue);
187 case '{urn:ietf:params:xml:ns:caldav}calendar-timezone':
188 … \dokuwiki\Logger::debug('DAVCAL', 'updateCalendarTimezone', __FILE__, __LINE__);
189 $this->hlp->updateCalendarTimezone($calendarId, $propertyValue);
210 … \dokuwiki\Logger::debug('DAVCAL', 'deleteCalendar called, returning false', __FILE__, __LINE__);
218 * * calendardata - The iCalendar-compatible calendar data
219 * * uri - a unique key which will be used to construct the uri. This can
223 * * lastmodified - a timestamp of the last modification time
224 * * etag - An arbitrary string, surrounded by double-quotes. (e.g.:
226 * * size - The size of the calendar objects, in bytes.
227 * * component - optional, a string containing the type of object, such
229 * the Content-Type header.
247 …\dokuwiki\Logger::debug('DAVCAL', 'getCalendarObjects for calendarId '.$calendarId, __FILE__, __LI…
248 $arr = $this->hlp->getCalendarObjects($calendarId);
262 …\dokuwiki\Logger::debug('DAVCAL', 'Calendar objects returned: '.count($result), __FILE__, __LINE__…
285 …\dokuwiki\Logger::debug('DAVCAL', 'getCalendarObject for calendarId '.$calendarId.' and objectUri …
286 $row = $this->hlp->getCalendarObjectByUri($calendarId, $objectUri);
287 …\dokuwiki\Logger::debug('DAVCAL', 'Calendar object row: '.($row ? 'found' : 'not found'), __FILE__…
310 * If the backend supports this, it may allow for some speed-ups.
318 …\dokuwiki\Logger::debug('DAVCAL', 'getMultipleCalendarObjects for calendarId '.$calendarId, __FILE…
319 \dokuwiki\Logger::debug('DAVCAL', 'URIs requested: '.count($uris), __FILE__, __LINE__);
320 $arr = $this->hlp->getMultipleCalendarObjectsByUri($calendarId, $uris);
338 …\dokuwiki\Logger::debug('DAVCAL', 'Multiple calendar objects returned: '.count($result), __FILE__,…
351 * by double-quotes.
354 * calendar-data. If the result of a subsequent GET to this object is not
364 …\dokuwiki\Logger::debug('DAVCAL', 'createCalendarObject for calendarId '.$calendarId.' and objectU…
365 …\dokuwiki\Logger::debug('DAVCAL', 'Calendar data length: '.strlen($calendarData), __FILE__, __LINE…
366 $etag = $this->hlp->addCalendarEntryToCalendarByICS($calendarId, $objectUri, $calendarData);
367 \dokuwiki\Logger::debug('DAVCAL', 'ETag generated: '.$etag, __FILE__, __LINE__);
379 * by double-quotes.
382 * calendar-data. If the result of a subsequent GET to this object is not
392 …\dokuwiki\Logger::debug('DAVCAL', 'updateCalendarObject for calendarId '.$calendarId.' and objectU…
393 …\dokuwiki\Logger::debug('DAVCAL', 'Calendar data length: '.strlen($calendarData), __FILE__, __LINE…
394 … $etag = $this->hlp->editCalendarEntryToCalendarByICS($calendarId, $objectUri, $calendarData);
395 \dokuwiki\Logger::debug('DAVCAL', 'ETag generated: '.$etag, __FILE__, __LINE__);
413 …\dokuwiki\Logger::debug('DAVCAL', 'deleteCalendarObject for calendarId '.$calendarId.' and objectU…
414 $this->hlp->deleteCalendarEntryForCalendarByUri($calendarId, $objectUri);
419 * Performs a calendar-query on the contents of this calendar.
421 * The calendar-query is defined in RFC4791 : CalDAV. Using the
422 * calendar-query it is possible for a client to request a specific set of
423 * object, based on contents of iCalendar properties, date-ranges and
449 * * requests with a time-range-filter on a VEVENT.
455 * Note that especially time-range-filters may be difficult to parse. A
456 * time-range filter specified on a VEVENT must for instance also handle
464 * specific components, and VEVENT time-ranges.
472 …\dokuwiki\Logger::debug('DAVCAL', 'calendarQuery for calendarId '.$calendarId, __FILE__, __LINE__);
473 \dokuwiki\Logger::debug('DAVCAL', 'Filters count: '.count($filters), __FILE__, __LINE__);
474 $result = $this->hlp->calendarQuery($calendarId, $filters);
475 \dokuwiki\Logger::debug('DAVCAL', 'Query results: '.count($result), __FILE__, __LINE__);
500 …\dokuwiki\Logger::debug('DAVCAL', 'getCalendarObjectByUID for principalUri '.$principalUri.' and u…
501 $calids = array_keys($this->hlp->getCalendarIsForUser($principalUri));
502 $event = $this->hlp->getEventWithUid($uid);
506 $settings = $this->hlp->getCalendarSettings($event['calendarid']);
533 * of the calendar, as reported in the {http://sabredav.org/ns}sync-token
570 …\dokuwiki\Logger::debug('DAVCAL', 'getChangesForCalendar for calendarId '.$calendarId.' and syncTo…
571 $result = $this->hlp->getChangesForCalendar($calendarId, $syncToken, $syncLevel, $limit);
572 …\dokuwiki\Logger::debug('DAVCAL', 'Changes result: '.($result ? 'found' : 'not found'), __FILE__, …
591 * 3. {http://calendarserver.org/ns/}subscribed-strip-todos (omit if todos
593 * 4. {http://calendarserver.org/ns/}subscribed-strip-alarms (omit if alarms
595 * 5. {http://calendarserver.org/ns/}subscribed-strip-attachments (omit if
597 * 7. {http://apple.com/ns/ical/}calendar-color
598 * 8. {http://apple.com/ns/ical/}calendar-order
599 * 9. {urn:ietf:params:xml:ns:caldav}supported-calendar-component-set
609 …\dokuwiki\Logger::debug('DAVCAL', 'getSubscriptionsForUser with principalUri '.$principalUri.', re…
627 …\dokuwiki\Logger::debug('DAVCAL', 'createSubscription for principalUri '.$principalUri.' and uri '…
650 …\dokuwiki\Logger::debug('DAVCAL', 'updateSubscription with subscriptionId '.$subscriptionId.', ret…
662 …\dokuwiki\Logger::debug('DAVCAL', 'deleteSubscription with subscriptionId '.$subscriptionId.', ret…
671 * * uri - A unique basename for the object. This will be used to
673 * * calendardata - The iCalendar object
674 * * lastmodified - The last modification date. Can be an int for a unix
676 * * etag - A unique token that must change if the object changed.
677 * * size - The size of the object, in bytes.
685 …\dokuwiki\Logger::debug('DAVCAL', 'getSchedulingObject with principalUri '.$principalUri.' and obj…
703 …\dokuwiki\Logger::debug('DAVCAL', 'getSchedulingObjects for principalUri '.$principalUri.', return…
717 …\dokuwiki\Logger::debug('DAVCAL', 'deleteSchedulingObject for principalUri '.$principalUri.' and o…
731 …\dokuwiki\Logger::debug('DAVCAL', 'createSchedulingObject with principalUri '.$principalUri.' and …