Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
Verifies displaying of errors. More...
Public Member Functions | |
get_action_link () | |
A link to a place to action this. | |
get_component () | |
Get the frankenstyle component name. | |
get_id () | |
Get the check's id. | |
get_name () | |
Get the short check name. | |
get_ref () | |
Get the check reference. | |
get_result () | |
Return result. | |
set_component (string $component) | |
Get the frankenstyle component name. | |
Protected Attributes | |
string | $component = '' |
$component - The component / plugin this task belongs to. | |
Verifies displaying of errors.
Problem for lib files and 3rd party code because we can not disable debugging in these scripts (they do not include config.php)
|
inherited |
A link to a place to action this.
action_link|null |
Reimplemented in auth_none\check\noauth, core\check\access\defaultuserrole, core\check\access\frontpagerole, core\check\access\guestrole, core\check\access\riskadmin, core\check\access\riskbackup, core\check\access\riskxss, core\check\environment\antivirus, core\check\environment\environment, core\check\environment\publicpaths, core\check\environment\upgradecheck, core\check\http\cookiesecure, core\check\performance\backups, core\check\performance\cachejs, core\check\performance\dbschema, core\check\performance\debugging, core\check\performance\designermode, core\check\performance\stats, core\check\security\crawlers, core\check\security\emailchangeconfirmation, core\check\security\embed, core\check\security\openprofiles, core\check\security\passwordpolicy, core\check\security\webcron, tool_task\check\adhocqueue, tool_task\check\cronrunning, tool_task\check\longrunningtasks, and tool_task\check\maxfaildelay.
|
inherited |
Get the frankenstyle component name.
string |
|
inherited |
Get the check's id.
This defaults to the base name of the class which is ok in the most cases but if you have a check which can have multiple instances then you should override this to be unique.
string | must be unique within a component |
core\check\environment\displayerrors::get_name | ( | ) |
|
inherited |
Get the check reference.
string | must be globally unique |
core\check\environment\displayerrors::get_result | ( | ) |
|
inherited |
Get the frankenstyle component name.
string | $component | name |
|
protectedinherited |
$component - The component / plugin this task belongs to.
This can be autopopulated by the check manager. Otherwise, it is dynamically determined by get_component().