Lines Matching refs:calid
122 $calid = $this->getCalendarIdForPage($id);
125 if($calid === false)
202 $calid = $connectionId;
207 $calid = $this->getCalendarIdForPage($page);
208 if($calid !== false)
210 $settings = $this->getCalendarSettings($calid);
220 $data[] = array('name' => $name, 'page' => $page, 'calid' => $calid,
240 $calid = $this->getCalendarIdForPage($id);
241 if($calid === false)
244 return $this->getCalendarColorForCalendar($calid);
253 public function getCalendarColorForCalendar($calid) argument
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);
296 if($calid === false)
304 $res = $sqlite->query($query, $color, $calid);
307 $this->cachedValues['calendarcolor'][$calid] = $color;
343 $calid = $this->getCalendarIdForPage($id);
344 if($calid === false)
351 $res = $sqlite->query($query, $name, $description, $calid);
360 * @param int $calid The calendar's ID
365 public function updateCalendarName($calid, $name) argument
371 $res = $sqlite->query($query, $calid, $name);
374 $this->updateSyncTokenLog($calid, '', 'modified');
383 * @param int $calid The calendar's ID
388 public function updateCalendarDescription($calid, $description) argument
394 $res = $sqlite->query($query, $calid, $description);
397 $this->updateSyncTokenLog($calid, '', 'modified');
406 * @param int $calid The calendar's ID
411 public function updateCalendarTimezone($calid, $timezone) argument
417 $res = $sqlite->query($query, $calid, $timezone);
420 $this->updateSyncTokenLog($calid, '', 'modified');
544 $calid = $row['calid'];
545 $this->cachedValues['calid'] = $calid;
546 return $calid;
676 * @param int $calid The calendar's ID
682 public function addCalendarEntryToCalendarByICS($calid, $uri, $ics) argument
691 $calid,
704 $this->updateSyncTokenLog($calid, $uri, 'added');
713 * @param int $calid The calendar's IS
717 public function editCalendarEntryToCalendarByICS($calid, $uri, $ics) argument
734 $calid,
739 $this->updateSyncTokenLog($calid, $uri, 'modified');
856 $calid = $this->getCalendarIdForPage($id);
864 $res = $sqlite->query($query, $calid, $uri, $eventStr, $now->getTimestamp(), 'VEVENT',
871 $this->updateSyncTokenLog($calid, $uri, 'added');
881 * @param string $calid The calendar ID
885 public function getCalendarSettings($calid) argument
891 $res = $sqlite->query($query, $calid);
899 * @param string $calid The calendar ID
902 public function getCalendarStatus($calid) argument
908 $res = $sqlite->query($query, $calid);
925 $calid = $this->getCalendarIdForPage($id);
926 if($calid === false)
933 $res = $sqlite->query($query, $calid);
948 $calid = $this->getCalendarIdForPage($id);
949 if($calid === false)
955 $res = $sqlite->query($query, $calid);
1019 $calid = $this->getCalendarIdForPage($id);
1021 $color = $this->getCalendarColorForCalendar($calid);
1023 $enabled = $this->getCalendarStatus($calid);
1027 $settings = $this->getCalendarSettings($calid);
1031 $res = $sqlite->query($query, $calid);
1176 * @param int $calid The calendar ID
1180 public function getCalendarObjects($calid) argument
1186 $res = $sqlite->query($query, $calid);
1194 * @param int $calid The calendar's ID
1199 public function getCalendarObjectByUri($calid, $uri) argument
1205 $res = $sqlite->query($query, $calid, $uri);
1214 * @param int $calid The calendar's ID
1219 public function getMultipleCalendarObjectsByUri($calid, $uris) argument
1228 $vals = array_merge(array($calid), $uris);
1238 * @param string $calid The calendar's ID
1242 public function getAllCalendarEvents($calid) argument
1244 $enabled = $this->getCalendarStatus($calid);
1252 $res = $sqlite->query($query, $calid);
1302 $calid = $event['calendarid'];
1382 $this->updateSyncTokenLog($calid, $uri, 'modified');
1392 * @param int $calid The calendar's ID
1397 public function deleteCalendarEntryForCalendarByUri($calid, $uri) argument
1403 $res = $sqlite->query($query, $calid, $uri);
1406 $this->updateSyncTokenLog($calid, $uri, 'deleted');
1436 $calid = $event['calendarid'];
1442 $this->updateSyncTokenLog($calid, $uri, 'deleted');
1450 * @param string $calid The calendar id
1454 public function getSyncTokenForCalendar($calid) argument
1456 $row = $this->getCalendarSettings($calid);
1491 * @param string $calid The calendar ID that was modified
1497 private function updateSyncTokenLog($calid, $uri, $operation) argument
1499 $currentToken = $this->getSyncTokenForCalendar($calid);
1505 $calid,
1512 $res = $sqlite->query($query, $uri, $currentToken, $calid, $operationCode);
1517 $res = $sqlite->query($query, $currentToken, $calid);
1543 $calid = $this->getCalendarIdForPage($id);
1544 if($calid === false)
1547 $calsettings = $this->getCalendarSettings($calid);
1564 $calid = $this->getCalendarIdForPage($id);
1565 if($calid === false)
1568 return $this->getPrivateURLForCalendar($calid);
1574 * @param string $calid The calendar's ID
1578 public function getPrivateURLForCalendar($calid) argument
1580 if(isset($this->cachedValues['privateurl'][$calid]))
1581 return $this->cachedValues['privateurl'][$calid];
1586 $res = $sqlite->query($query, $calid);
1592 $res = $sqlite->query($query, $url, $calid);
1602 $this->cachedValues['privateurl'][$calid] = $url;
1629 * @param string $calid The calendar ID to retrieve
1633 public function getCalendarAsICSFeed($calid) argument
1635 $calSettings = $this->getCalendarSettings($calid);
1638 $events = $this->getAllCalendarEvents($calid);
1894 * @param int $calid The calendar's ID
1901 public function getChangesForCalendar($calid, $syncToken, $syncLevel, $limit = null) argument
1904 $currentToken = $this->getSyncTokenForCalendar($calid);
1925 $res = $sqlite->query($query, $syncToken, $currentToken, $calid);