class DatabaseCheck implements EnvironmentCheck (View source)

Check that the connection to the database is working, by ensuring that the table exists and that the table contains some records.

Properties

protected string $checkTable

Methods

public
__construct(string $checkTable = 'Member')

By default, Member will be checked.

public
array
check()

No description

Details

__construct(string $checkTable = 'Member')

By default, Member will be checked.

Parameters

string $checkTable

array check()

No description

Return Value

array

Result with 'status' and 'message' keys.

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