/** * @return EnvironmentChecker * * @throws SS_HTTPResponse_Exception */ function index() { // health check does not require permission to run $checker = new EnvironmentChecker('health', 'Site health'); $checker->init(''); $checker->setErrorCode(404); return $checker; }
/** * @param SS_HTTPRequest $request * * @return EnvironmentChecker * * @throws SS_HTTPResponse_Exception */ function index($request) { $suite = 'check'; if ($name = $request->param('Suite')) { $suite = $name; } $checker = new EnvironmentChecker($suite, 'Environment status'); $checker->init($this->config()->permission); return $checker; }
/** * @param bool $results */ public static function set_email_results($results) { self::$email_results = $results; }