Lines Matching refs:this

28       if($this->sqlite === null)
30 $this->sqlite = plugin_load('helper', 'sqlite');
31 if(!$this->sqlite)
37 if(!$this->sqlite->init('davcal', DOKU_PLUGIN.'davcal/db/'))
39 $this->sqlite = null;
44 return $this->sqlite;
82 $meta = $this->getMeta($id);
122 $calid = $this->getCalendarIdForPage($id);
143 if($this->checkCalendarPermission($page) >= AUTH_READ)
166 $meta = $this->getCalendarMetaForPage($id);
171 $pages = $this->filterCalendarPagesByUserPermission($meta['id']);
207 $calid = $this->getCalendarIdForPage($page);
210 $settings = $this->getCalendarSettings($calid);
240 $calid = $this->getCalendarIdForPage($id);
244 return $this->getCalendarColorForCalendar($calid);
255 if(isset($this->cachedValues['calendarcolor'][$calid]))
256 return $this->cachedValues['calendarcolor'][$calid];
258 $row = $this->getCalendarSettings($calid);
264 $this->cachedValues['calendarcolor'][$calid] = $color;
295 $calid = $this->getCalendarIdForPage($id);
299 $sqlite = $this->getDB();
307 $this->cachedValues['calendarcolor'][$calid] = $color;
343 $calid = $this->getCalendarIdForPage($id);
345 return $this->createCalendarForPage($name, $description, $id, $userid);
347 $sqlite = $this->getDB();
367 $sqlite = $this->getDB();
374 $this->updateSyncTokenLog($calid, '', 'modified');
390 $sqlite = $this->getDB();
397 $this->updateSyncTokenLog($calid, '', 'modified');
413 $sqlite = $this->getDB();
420 $this->updateSyncTokenLog($calid, '', 'modified');
447 $sqlite = $this->getDB();
463 $this->cachedValues['settings'][$userid] = $settings;
483 'timezone' => $this->getConf('timezone'),
484 'weeknumbers' => $this->getConf('weeknumbers'),
485 'workweek' => $this->getConf('workweek'),
486 'monday' => $this->getConf('monday'),
487 'timeformat' => $this->getConf('timeformat')
501 $sqlite = $this->getDB();
504 if(isset($this->cachedValues['settings'][$userid]))
505 return $this->cachedValues['settings'][$userid];
513 $this->cachedValues['settings'][$userid] = $settings;
533 if(isset($this->cachedValues['calid'][$id]))
534 return $this->cachedValues['calid'][$id];
536 $sqlite = $this->getDB();
545 $this->cachedValues['calid'] = $calid;
560 $sqlite = $this->getDB();
586 $mapping = $this->getCalendarIdToPageMapping();
593 $enabled = $this->getCalendarStatus($id);
644 $sqlite = $this->getDB();
684 $extraData = $this->getDenormalizedData($ics);
686 $sqlite = $this->getDB();
704 $this->updateSyncTokenLog($calid, $uri, 'added');
719 $extraData = $this->getDenormalizedData($ics);
721 $sqlite = $this->getDB();
739 $this->updateSyncTokenLog($calid, $uri, 'modified');
856 $calid = $this->getCalendarIdForPage($id);
860 $sqlite = $this->getDB();
871 $this->updateSyncTokenLog($calid, $uri, 'added');
887 $sqlite = $this->getDB();
904 $sqlite = $this->getDB();
925 $calid = $this->getCalendarIdForPage($id);
929 $sqlite = $this->getDB();
948 $calid = $this->getCalendarIdForPage($id);
951 $sqlite = $this->getDB();
986 $sqlite = $this->getDB();
1019 $calid = $this->getCalendarIdForPage($id);
1021 $color = $this->getCalendarColorForCalendar($calid);
1023 $enabled = $this->getCalendarStatus($calid);
1027 $settings = $this->getCalendarSettings($calid);
1064 … $this->convertIcalDataToEntry($event, $id, $timezone, $row['uid'], $color, true));
1070 … $this->convertIcalDataToEntry($vcal->VEVENT, $id, $timezone, $row['uid'], $color));
1163 $sqlite = $this->getDB();
1182 $sqlite = $this->getDB();
1201 $sqlite = $this->getDB();
1221 $sqlite = $this->getDB();
1244 $enabled = $this->getCalendarStatus($calid);
1248 $sqlite = $this->getDB();
1294 $event = $this->getEventWithUid($uid);
1371 $sqlite = $this->getDB();
1382 $this->updateSyncTokenLog($calid, $uri, 'modified');
1399 $sqlite = $this->getDB();
1406 $this->updateSyncTokenLog($calid, $uri, 'deleted');
1432 $sqlite = $this->getDB();
1435 $event = $this->getEventWithUid($uid);
1442 $this->updateSyncTokenLog($calid, $uri, 'deleted');
1456 $row = $this->getCalendarSettings($calid);
1499 $currentToken = $this->getSyncTokenForCalendar($calid);
1500 $operationCode = $this->operationNameToOperation($operation);
1508 $sqlite = $this->getDB();
1543 $calid = $this->getCalendarIdForPage($id);
1547 $calsettings = $this->getCalendarSettings($calid);
1564 $calid = $this->getCalendarIdForPage($id);
1568 return $this->getPrivateURLForCalendar($calid);
1580 if(isset($this->cachedValues['privateurl'][$calid]))
1581 return $this->cachedValues['privateurl'][$calid];
1582 $sqlite = $this->getDB();
1602 $this->cachedValues['privateurl'][$calid] = $url;
1615 $sqlite = $this->getDB();
1635 $calSettings = $this->getCalendarSettings($calid);
1638 $events = $this->getAllCalendarEvents($calid);
1664 return $this->getConf($key);
1779 $sqlite = $this->getDB();
1852 if (!$this->validateFilterForObject($row, $filters))
1880 $object = $this->getCalendarObjectByUri($object['calendarid'], $object['uri']);
1904 $currentToken = $this->getSyncTokenForCalendar($calid);
1914 $sqlite = $this->getDB();