Example #1
0
 /**
  * @param string $moduleName
  *
  * @return boolean
  */
 public function moduleIsInstalled($moduleName)
 {
     return $this->db->fetchColumn("SELECT COUNT(*) FROM {$this->systemModuleRepository->getTableName()} WHERE `name` = ?", [$moduleName]) == 1;
 }
Example #2
0
 /**
  * @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
 }