class CRM_Utils_Check_Component_Case extends CRM_Utils_Check_Component

Constants

DOCTOR_WHEN

Properties

array $checksConfig from CRM_Utils_Check_Component
protected CRM_Case_XMLRepository $xmlRepo
protected array $caseTypeNames

Methods

array
getChecksConfig()

Get the configured status checks.

setChecksConfig(array $checksConfig)

No description

bool
isEnabled()

No description

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.

__construct()

Class constructor.

array
checkCaseTypeNameConsistency()

Check that the case-type names don't rely on double-munging.

array
checkNullTimestamps()

Check that the timestamp columns are populated. (CRM-20958)

array
checkRelationshipTypeProblems()

Check that the relationship types aren't going to cause problems.

array
checkExternalXmlFileRoleNames()

Check any xml definitions stored as external files to see if they have label as the role and where the label is different from the name.

Details

array getChecksConfig()

Get the configured status checks.

Return Value

array

Exceptions

API_Exception
UnauthorizedException

setChecksConfig(array $checksConfig)

Parameters

array $checksConfig

at line 58
bool isEnabled()

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 50
__construct()

Class constructor.

at line 68
array checkCaseTypeNameConsistency()

Check that the case-type names don't rely on double-munging.

Return Value

array An empty array, or a list of warnings

at line 127
array checkNullTimestamps()

Check that the timestamp columns are populated. (CRM-20958)

Return Value

array An empty array, or a list of warnings

at line 171
array checkRelationshipTypeProblems()

Check that the relationship types aren't going to cause problems.

Return Value

array An empty array, or a list of warnings

at line 409
array checkExternalXmlFileRoleNames()

Check any xml definitions stored as external files to see if they have label as the role and where the label is different from the name.

We don't have to think about edge cases because there are already status checks above for those.

Return Value

array An empty array, or a list of warnings