checkTable = $checkTable; } /** * @inheritdoc * * @return array */ public function check() { if (!DB::getConn()->hasTable($this->checkTable)) { return array(EnvironmentCheck::ERROR, "$this->checkTable not present in the database"); } $count = DB::query("SELECT COUNT(*) FROM \"$this->checkTable\"")->value(); if ($count > 0) { return array(EnvironmentCheck::OK, ""); } else { return array(EnvironmentCheck::WARNING, "$this->checkTable queried ok but has no records"); } } }