/** * @param string $moduleName * * @return boolean */ public function moduleIsInstalled($moduleName) { return $this->db->fetchColumn("SELECT COUNT(*) FROM {$this->systemModuleRepository->getTableName()} WHERE `name` = ?", [$moduleName]) == 1; }
/** * @inheritdoc */ public function read($sessionId) { $session = $this->db->fetchColumn("SELECT `session_data` FROM `{$this->db->getPrefix()}sessions` WHERE `session_id` = ?", [$sessionId]); return $session ?: ''; // Return an empty string, if the requested session can't be found }