Lines Matching refs:sqlite
14 protected $sqlite;
31 $this->sqlite = plugin_load('helper', 'sqlite');
32 if (!$this->sqlite) {
34 throw new \Exception('Couldn\'t load sqlite.');
39 if ($this->sqlite->getAdapter()->getName() != DOKU_EXT_PDO) {
41 throw new \Exception('Couldn\'t load PDO sqlite.');
43 $this->sqlite = null;
46 $this->sqlite->getAdapter()->setUseNativeAlter(true);
49 if (!$this->sqlite->init('notification', DOKU_PLUGIN . 'notification/db/')) {
51 throw new \Exception('Couldn\'t init sqlite.');
53 $this->sqlite = null;
65 if ($this->sqlite && $conf['metadir'] != substr($this->sqlite->getAdapter()->getDbFile(), 0, $len)) {
68 if (!$this->sqlite) {
69 msg($this->getLang('error sqlite missing'), -1);
72 return $this->sqlite;