class URLCheck implements EnvironmentCheck (View source)

Check that a given URL is functioning, by default, the homepage.

Note that Director::test() will be used rather than a CURL check.

Properties

protected string $url
protected string $testString

Methods

public
__construct($url = '', $testString = '')

No description

public
array
check()

No description

Details

__construct($url = '', $testString = '')

No description

Parameters

$url
$testString

array check()

No description

Return Value

array

Result with 'status' and 'message' keys.

Status is EnvironmentCheck::ERROR, EnvironmentCheck::WARNING, or EnvironmentCheck::OK.

Exceptions

SS_HTTPResponse_Exception