CRM_Utils_Check
class CRM_Utils_Check
Constants
CHECK_TIMER |
|
Properties
static protected array | $severityList |
Methods
static CRM_Utils_Check
singleton()
Provide static instance of CRM_Utils_Check.
static array
getSeverityList()
No description
showPeriodicAlerts()
Display daily system status alerts (admin only).
static int
severitySort(CRM_Utils_Check_Message $a, CRM_Utils_Check_Message $b)
Sort messages based upon severity
static string|int
severityMap(int|string $severity, bool $reverse = FALSE)
Get the integer value (useful for thresholds) of the severity.
assertValid(array|NULL $messages = NULL, string $threshold = \Psr\Log\LogLevel::ERROR)
Throw an exception if any of the checks fail.
static array
checkAll(bool $max = FALSE)
Run all system checks.
static string
toStatusLabel(int $level)
No description
Details
at line 65
static CRM_Utils_Check
singleton()
Provide static instance of CRM_Utils_Check.
at line 75
static array
getSeverityList()
at line 82
showPeriodicAlerts()
Display daily system status alerts (admin only).
at line 126
static int
severitySort(CRM_Utils_Check_Message $a, CRM_Utils_Check_Message $b)
Sort messages based upon severity
at line 146
static string|int
severityMap(int|string $severity, bool $reverse = FALSE)
Get the integer value (useful for thresholds) of the severity.
at line 172
assertValid(array|NULL $messages = NULL, string $threshold = \Psr\Log\LogLevel::ERROR)
Throw an exception if any of the checks fail.
at line 202
static array
checkAll(bool $max = FALSE)
Run all system checks.
This functon is wrapped by the System.check api.
Calls hook_civicrm_check() for extensions to add or modify messages.