SilverStripe\EnvironmentCheck\Checks\DatabaseCheck
Check that the connection to the database is working, by ensuring that the table exists and that the table contains some records.
Synopsis
class DatabaseCheck
implements
EnvironmentCheck
{
- // members
- protected $checkTable;
- // methods
- public void __construct()
- public array check()
Hierarchy
Constants
Name | Value |
---|---|
ERROR | 3 |
WARNING | 2 |
OK | 1 |
Members
protected
- $checkTable — string
Methods
public
- __construct() — By default, Member will be checked.
- check() — {@inheritDoc}