SilverStripe\EnvironmentCheck\EnvironmentChecker
Provides an interface for checking the given EnvironmentCheckSuite.
Synopsis
class EnvironmentChecker
extends RequestHandler
{
- // members
- private static array $url_handlers = ;
- protected $checkSuiteName;
- protected $title;
- protected integer $errorCode = 500;
- private static null|string $to_email_address = NULL;
- private static null|string $from_email_address = NULL;
- private static bool $email_results = false;
- private static bool $log_results_warning = false;
- private static string $log_results_warning_level = LogLevel::WARNING;
- private static bool $log_results_error = false;
- private static int $log_results_error_level = LogLevel::ALERT;
- // methods
- public void __construct()
- public void init()
- public bool canAccess()
- public HTTPResponse index()
- public void log()
- public void setErrorCode()
- public static void set_from_email_address()
- public static null|string get_from_email_address()
- public static void set_to_email_address()
- public static null|string get_to_email_address()
- public static void set_email_results()
- public static bool get_email_results()
Hierarchy
Extends
- SilverStripe\Control\RequestHandler
Members
private
- $email_results — SilverStripe\EnvironmentCheck\bool
- $from_email_address — SilverStripe\EnvironmentCheck\null|string
- $log_results_error — SilverStripe\EnvironmentCheck\bool
- $log_results_error_level — int
- $log_results_warning — SilverStripe\EnvironmentCheck\bool
- $log_results_warning_level — string
- $to_email_address — SilverStripe\EnvironmentCheck\null|string
- $url_handlers — array
protected
- $checkSuiteName — string
- $errorCode — int
- $title — string
Methods
public
- __construct()
- canAccess() — Determine if the current member can access the environment checker
- get_email_results()
- get_from_email_address()
- get_to_email_address()
- index()
- init()
- log() — Sends a log entry to the configured PSR-3 LoggerInterface
- setErrorCode() — Set the HTTP status code that should be returned when there's an error.
- set_email_results()
- set_from_email_address()
- set_to_email_address()