예제 #1
0
파일: SchemaHelper.php 프로젝트: acp3/core
 /**
  * @param string $moduleName
  *
  * @return boolean
  */
 public function moduleIsInstalled($moduleName)
 {
     return $this->db->fetchColumn("SELECT COUNT(*) FROM {$this->systemModuleRepository->getTableName()} WHERE `name` = ?", [$moduleName]) == 1;
 }
예제 #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
 }