Lines Matching refs:sqlite
13 protected $sqlite = null; variable in helper_plugin_davcal
24 * @return sqlite interface or false
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;
299 $sqlite = $this->getDB();
300 if(!$sqlite)
304 $res = $sqlite->query($query, $color, $calid);
347 $sqlite = $this->getDB();
348 if(!$sqlite)
351 $res = $sqlite->query($query, $name, $description, $calid);
367 $sqlite = $this->getDB();
368 if(!$sqlite)
371 $res = $sqlite->query($query, $calid, $name);
390 $sqlite = $this->getDB();
391 if(!$sqlite)
394 $res = $sqlite->query($query, $calid, $description);
413 $sqlite = $this->getDB();
414 if(!$sqlite)
417 $res = $sqlite->query($query, $calid, $timezone);
447 $sqlite = $this->getDB();
448 if(!$sqlite)
450 $sqlite->query("BEGIN TRANSACTION");
453 $sqlite->query($query, $userid);
458 $res = $sqlite->query($query, $userid, $key, $value);
462 $sqlite->query("COMMIT TRANSACTION");
501 $sqlite = $this->getDB();
502 if(!$sqlite)
507 $res = $sqlite->query($query, $userid);
508 $arr = $sqlite->res2arr($res);
536 $sqlite = $this->getDB();
537 if(!$sqlite)
540 $res = $sqlite->query($query, $id);
541 $row = $sqlite->res2row($res);
560 $sqlite = $this->getDB();
561 if(!$sqlite)
564 $res = $sqlite->query($query);
565 $arr = $sqlite->res2arr($res);
644 $sqlite = $this->getDB();
645 if(!$sqlite)
649 …$res = $sqlite->query($query, $values[0], $values[1], $values[2], $values[3], $values[4], $values[…
656 $res = $sqlite->query($query, $values[0], $values[1], $values[2], $values[3]);
657 $row = $sqlite->res2row($res);
663 $res = $sqlite->query($query, $id, $row['id']);
686 $sqlite = $this->getDB();
687 if(!$sqlite)
690 $res = $sqlite->query($query,
721 $sqlite = $this->getDB();
722 if(!$sqlite)
725 $res = $sqlite->query($query,
860 $sqlite = $this->getDB();
861 if(!$sqlite)
864 $res = $sqlite->query($query, $calid, $uri, $eventStr, $now->getTimestamp(), 'VEVENT',
887 $sqlite = $this->getDB();
888 if(!$sqlite)
891 $res = $sqlite->query($query, $calid);
892 $row = $sqlite->res2row($res);
904 $sqlite = $this->getDB();
905 if(!$sqlite)
908 $res = $sqlite->query($query, $calid);
909 $row = $sqlite->res2row($res);
929 $sqlite = $this->getDB();
930 if(!$sqlite)
933 $res = $sqlite->query($query, $calid);
951 $sqlite = $this->getDB();
952 if(!$sqlite)
955 $res = $sqlite->query($query, $calid);
986 $sqlite = $this->getDB();
987 if(!$sqlite)
996 $query .= " AND lastoccurence > ".$sqlite->quote_string($startTs->getTimestamp());
1001 $query .= " AND firstoccurence < ".$sqlite->quote_string($endTs->getTimestamp());
1031 $res = $sqlite->query($query, $calid);
1032 $arr = $sqlite->res2arr($res);
1163 $sqlite = $this->getDB();
1164 if(!$sqlite)
1167 $res = $sqlite->query($query, $uid);
1168 $row = $sqlite->res2row($res);
1182 $sqlite = $this->getDB();
1183 if(!$sqlite)
1186 $res = $sqlite->query($query, $calid);
1187 $arr = $sqlite->res2arr($res);
1201 $sqlite = $this->getDB();
1202 if(!$sqlite)
1205 $res = $sqlite->query($query, $calid, $uri);
1206 $row = $sqlite->res2row($res);
1221 $sqlite = $this->getDB();
1222 if(!$sqlite)
1230 $res = $sqlite->query($query, $vals);
1231 $arr = $sqlite->res2arr($res);
1248 $sqlite = $this->getDB();
1249 if(!$sqlite)
1252 $res = $sqlite->query($query, $calid);
1253 $arr = $sqlite->res2arr($res);
1371 $sqlite = $this->getDB();
1372 if(!$sqlite)
1378 $res = $sqlite->query($query, $eventStr, $now->getTimestamp(), $dtStart->getTimestamp(),
1399 $sqlite = $this->getDB();
1400 if(!$sqlite)
1403 $res = $sqlite->query($query, $calid, $uri);
1432 $sqlite = $this->getDB();
1433 if(!$sqlite)
1439 $res = $sqlite->query($query, $uid);
1508 $sqlite = $this->getDB();
1509 if(!$sqlite)
1512 $res = $sqlite->query($query, $uri, $currentToken, $calid, $operationCode);
1517 $res = $sqlite->query($query, $currentToken, $calid);
1582 $sqlite = $this->getDB();
1583 if(!$sqlite)
1586 $res = $sqlite->query($query, $calid);
1587 $row = $sqlite->res2row($res);
1592 $res = $sqlite->query($query, $url, $calid);
1615 $sqlite = $this->getDB();
1616 if(!$sqlite)
1619 $res = $sqlite->query($query, $url);
1620 $row = $sqlite->res2row($res);
1779 $sqlite = $this->getDB();
1780 if(!$sqlite)
1844 $res = $sqlite->query($query, $values);
1845 $arr = $sqlite->res2arr($res);
1914 $sqlite = $this->getDB();
1915 if(!$sqlite)
1925 $res = $sqlite->query($query, $syncToken, $currentToken, $calid);
1929 $arr = $sqlite->res2arr($res);
1960 $res = $sqlite->query($query);
1961 $arr = $sqlite->res2arr($res);