Lines Matching refs:id

51    * @param int $id The address book ID
57 private function getContactByDetails($id, $type, $params = array()) argument
60 if(strpos($id, 'webdav://') === 0)
65 $connectionId = str_replace('webdav://', '', $id);
78 $acl = auth_quickaclcheck($id);
91 $addressbookid = $this->getAddressbookIdForPage($id);
141 * @param int $id The addressbook ID to retrieve
145 public function getAddressbookEntries($id) argument
151 $res = $sqlite->query($query, $id);
158 * @param string $id The addressbook ID to work with
164 public function getContactByStructuredName($id, $firstname = '', $lastname = '') argument
166 return $this->getContactByDetails($id, 'structuredname',
173 * @param string $id The address book ID
178 public function getContactByEmail($id, $email) argument
181 return $this->getContactByDetails($id, 'email', array('email' => strtolower($email)));
187 * @param string $id The address book ID
192 public function getContactByFormattedName($id, $name) argument
194 …return $this->getContactByDetails($id, 'formattedname', array('formattedname' => strtolower($name)…
205 public function getContactByUri($id, $uri) argument
208 if(strpos($id, 'webdav://') === 0)
213 $connectionId = str_replace('webdav://', '', $id);
226 $acl = auth_quickaclcheck($id);
239 $addressbookid = $this->getAddressbookIdForPage($id);
244 …return array('formattedname' => sprintf($this->getLang('contact_not_found'), 'ID='.$id.' URI='.$ur…
253 * @param int $id The address book ID
258 private function getAddressbookEntryByUri($id, $uri) argument
264 $res = $sqlite->query($query, $id, $uri);
273 * @param int $id (optional) The page ID
278 public function setAddressbookNameForPage($name, $description, $id = null, $userid = null) argument
280 if(is_null($id))
283 $id = $ID;
296 $bookid = $this->getAddressbookIdForPage($id);
298 return $this->createAddressbookForPage($name, $description, $id, $userid);
313 * @param string $id (optional) The page ID
317 public function getAddressbookIdForPage($id = null) argument
319 if(is_null($id))
322 $id = $ID;
330 $res = $sqlite->query($query, $id);
345 * @param string $id (optional) The page ID
350 public function createAddressbookForPage($name, $description, $id = null, $userid = null) argument
352 if(is_null($id))
355 $id = $ID;
375 str_replace(array('/', ' ', ':'), '_', $id),
394 $res = $sqlite->query($query, $id, $row['id']);
404 * @param string $id The address book ID
410 public function deleteContactEntryToAddressbookForPage($id, $user, $uri) argument
412 if(strpos($id, 'webdav://') === 0)
417 $connectionId = str_replace('webdav://', '', $id);
432 $addressbookid = $this->getAddressbookIdForPage($id);
447 * @param string $id The address book ID
454 public function editContactEntryToAddressbookForPage($id, $user, $uri, $params) argument
458 if(strpos($id, 'webdav://') === 0)
463 $connectionId = str_replace('webdav://', '', $id);
475 $addressbookid = $this->getAddressbookIdForPage($id);
517 if(strpos($id, 'webdav://') === 0)
550 * @param string $id The page ID
556 public function addContactEntryToAddressbookForPage($id, $user, $params) argument
589 if(strpos($id, 'webdav://') === 0)
594 $connectionId = str_replace('webdav://', '', $id);
602 $addressbookid = $this->getAddressbookIdForPage($id);
833 * @param string $id The addressbook ID to check
836 public function checkAddressbookPermission($id) argument
838 if(strpos($id, 'webdav://') === 0)
843 $connectionId = str_replace('webdav://', '', $id);
853 $addr = $this->getAddressbookIdForPage($id);
858 return auth_quickaclcheck($id);