class CRM_Utils_Check_Component_Timestamps extends CRM_Utils_Check_Component

Constants

DOCTOR_WHEN

Properties

array $checksConfig from CRM_Utils_Check_Component

Methods

array
getChecksConfig()

Get the configured status checks.

setChecksConfig(array $checksConfig)

No description

bool
isEnabled()

Should these checks be run?

array
checkAll()

Run all checks in this class.

bool
isDisabled(string $method)

Is the specified check disabled.

bool
fileExists(string $url, float|bool $timeoutOverride = FALSE)

Check if file exists on given URL.

array
checkSchema()

Check that various columns are TIMESTAMP and not DATETIME. (CRM-9683, etal)

static bool
isFieldType(string $table, string $column, string $expectType)

No description

static 
getConvertedTimestamps()

No description

Details

array getChecksConfig()

Get the configured status checks.

Return Value

array

Exceptions

API_Exception
UnauthorizedException

setChecksConfig(array $checksConfig)

Parameters

array $checksConfig

bool isEnabled()

Should these checks be run?

Return Value

bool

array checkAll()

Run all checks in this class.

Return Value

array [CRM_Utils_Check_Message]

Exceptions

API_Exception
UnauthorizedException

bool isDisabled(string $method)

Is the specified check disabled.

Parameters

string $method

Return Value

bool

Exceptions

API_Exception
UnauthorizedException

bool fileExists(string $url, float|bool $timeoutOverride = FALSE)

Check if file exists on given URL.

Parameters

string $url
float|bool $timeoutOverride

Return Value

bool

Exceptions

GuzzleException

at line 42
array checkSchema()

Check that various columns are TIMESTAMP and not DATETIME. (CRM-9683, etal)

Return Value

array

at line 99
static bool isFieldType(string $table, string $column, string $expectType)

Parameters

string $table Ex: 'civicrm_log'.
string $column Ex: 'modified_date'.
string $expectType Ex: 'datetime' or 'timestamp'.

Return Value

bool

at line 110
static getConvertedTimestamps()