Lines Matching refs:this

29       if($this->sqlite === null)
31 $this->sqlite = plugin_load('helper', 'sqlite');
32 if(!$this->sqlite)
38 if(!$this->sqlite->init('davcard', DOKU_PLUGIN.'davcard/db/'))
40 $this->sqlite = null;
45 return $this->sqlite;
64 return $this->getLang('no_wdc');
69 … return array('formattedname' => $this->getLang('settings_not_found'), 'result' => false);
71 return array('formattedname' => $this->getLang('wrong_type'), 'result' => false);
85 return array('formattedname' => $this->getLang('no_permission'), 'result' => false);
91 $addressbookid = $this->getAddressbookIdForPage($id);
92 $entries = $this->getAddressbookEntries($addressbookid);
101 …return array('formattedname' => sprintf($this->getLang('contact_not_found'), $params['firstname'].…
112 $info = $this->parseVcard($entry['contactdata'], $entry['uri'], $write);
120 $info = $this->parseVcard($entry['contactdata'], $entry['uri'], $write);
125 $info = $this->parseVcard($entry['contactdata'], $entry['uri'], $write);
134 …return array('formattedname' => sprintf($this->getLang('contact_not_found'), $this->getLang('inval…
147 $sqlite = $this->getDB();
166 return $this->getContactByDetails($id, 'structuredname',
181 return $this->getContactByDetails($id, 'email', array('email' => strtolower($email)));
194 …return $this->getContactByDetails($id, 'formattedname', array('formattedname' => strtolower($name)…
212 return $this->getLang('no_wdc');
217 … return array('formattedname' => $this->getLang('settings_not_found'), 'result' => false);
219 return array('formattedname' => $this->getLang('wrong_type'), 'result' => false);
233 return array('formattedname' => $this->getLang('no_permission'), 'result' => false);
239 $addressbookid = $this->getAddressbookIdForPage($id);
240 $row = $this->getAddressbookEntryByUri($addressbookid, $uri);
244 …return array('formattedname' => sprintf($this->getLang('contact_not_found'), 'ID='.$id.' URI='.$ur…
245 $info = $this->parseVcard($row['contactdata'], $row['uri'], $write);
260 $sqlite = $this->getDB();
296 $bookid = $this->getAddressbookIdForPage($id);
298 return $this->createAddressbookForPage($name, $description, $id, $userid);
300 $sqlite = $this->getDB();
325 $sqlite = $this->getDB();
369 $sqlite = $this->getDB();
416 return $this->getLang('no_wdc');
421 … return array('formattedname' => $this->getLang('settings_not_found'), 'result' => false);
423 return array('formattedname' => $this->getLang('wrong_type'), 'result' => false);
428 $sqlite = $this->getDB();
432 $addressbookid = $this->getAddressbookIdForPage($id);
438 $this->updateSyncTokenLog($addressbookid, $uri, 'deleted');
462 return $this->getLang('no_wdc');
467 … return array('formattedname' => $this->getLang('settings_not_found'), 'result' => false);
469 return array('formattedname' => $this->getLang('wrong_type'), 'result' => false);
475 $addressbookid = $this->getAddressbookIdForPage($id);
476 $row = $this->getAddressbookEntryByUri($addressbookid, $uri);
523 $sqlite = $this->getDB();
540 $this->updateSyncTokenLog($addressbookid, $uri, 'modified');
599 $sqlite = $this->getDB();
602 $addressbookid = $this->getAddressbookIdForPage($id);
619 $this->updateSyncTokenLog($addressbookid, $uri, 'added');
748 $sqlite = $this->getDB();
766 $row = $this->getAddressbookSettings($addressbookid);
808 $currentToken = $this->getSyncTokenForAddressbook($addressbookid);
809 $operationCode = $this->operationNameToOperation($operation);
817 $sqlite = $this->getDB();
853 $addr = $this->getAddressbookIdForPage($id);