Lines Matching refs:connectionId
69 * @param int $connectionId The connection ID to work with
75 public function addCalendarEntry($connectionId, $data, $dwuser = null) argument
77 $conn = $this->getConnection($connectionId);
80 $conn = array_merge($conn, $this->getCredentials($connectionId));
96 * @param int $connectionId The connection ID to work with
102 public function editCalendarEntry($connectionId, $uid, $data, $dwuser = null) argument
104 $conn = $this->getConnection($connectionId);
107 $conn = array_merge($conn, $this->getCredentials($connectionId));
125 * @param int $connectionId The connection ID to work with
131 public function deleteCalendarEntry($connectionId, $uid, $dwuser = null) argument
133 $conn = $this->getConnection($connectionId);
136 $conn = array_merge($conn, $this->getCredentials($connectionId));
171 * @param int $connectionId The connection ID
176 public function getCalendarEntryByUri($connectionId, $uri) argument
182 $res = $sqlite->query($query, $connectionId, $uri);
189 * @param int $connectionId The connection ID
194 public function getAddressbookEntryByUri($connectionId, $uri) argument
200 $res = $sqlite->query($query, $connectionId, $uri);
207 * @param int $connectionId The connection ID to delete
211 public function deleteConnection($connectionId) argument
216 $conn = $this->getConnection($connectionId);
222 $sqlite->query($query, $connectionId);
227 $sqlite->query($query, $connectionId);
230 $res = $sqlite->query($query, $connectionId);
242 * @param int $connectionId The connection ID to retrieve
249 …public function getCalendarEntries($connectionId, $startDate = null, $endDate = null, $dwuser = nu… argument
267 $res = $sqlite->query($query, $connectionId);
274 * @param int $connectionId The connection ID to work with
280 public function addAddressbookEntry($connectionId, $data, $dwuser = null) argument
282 $conn = $this->getConnection($connectionId);
285 $conn = array_merge($conn, $this->getCredentials($connectionId));
308 public function editAddressbookEntry($connectionId, $uri, $data, $dwuser = null) argument
310 $conn = $this->getConnection($connectionId);
313 $conn = array_merge($conn, $this->getCredentials($connectionId));
314 $entry = $this->getAddressbookEntryByUri($connectionId, $uri);
331 * @param int $connectionId The connection ID to work with
337 public function deleteAddressbookEntry($connectionId, $uri, $dwuser = null) argument
339 $conn = $this->getConnection($connectionId);
342 $conn = array_merge($conn, $this->getCredentials($connectionId));
343 $entry = $this->getAddressbookEntryByUri($connectionId, $uri);
360 * @param int $connectionId The connection ID to work with
365 public function getAddressbookEntries($connectionId, $dwuser = null) argument
371 $res = $sqlite->query($query, $connectionId);
377 * @param int $connectionId The connection ID to work with
379 public function deleteAllEntries($connectionId) argument
381 $conn = $this->getConnection($connectionId);
385 $entries = $this->getAddressbookEntries($connectionId);
388 $this->deleteAddressbookEntry($connectionId, $entry['uri']);
392 $entries = $this->getCalendarEntries($connectionId);
395 $this->deleteCalendarEntry($connectionId, $entry['uid']);
487 * @param int $connectionId The connection ID to retrieve
491 public function getConnection($connectionId) argument
497 $res = $sqlite->query($query, $connectionId);
504 * @param int $connectionId The connection ID to retrieve
508 public function getCredentials($connectionId) argument
514 $res = $sqlite->query($query, $connectionId);
773 * @param int $connectionId The connection ID to work with
780 public function syncConnection($connectionId, $force = false, $overrideActive = false, argument
784 dbglog('syncConnection: '.$connectionId);
785 $conn = $this->getConnection($connectionId);
791 $conn = array_merge($conn, $this->getCredentials($connectionId));
793 dbglog('Got connection information for connectionId: '.$connectionId);
811 dbglog('Sync required for ConnectionID: '.$connectionId);
1390 …y($query, $calendarobject['calendar-data'], $calendarobject['href'], $connectionId, $lastmod->getT…
1401 * @param int $connectionId The ID of the connection to work with
1406 private function object2addressbook($connectionId, $addressobject) argument
1731 public function getLastSyncChangeFileForConnection($connectionId) argument
1733 return $this->syncChangeLogFile.$connectionId;