checkTable = $checkTable; } function check() { $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"); } } }