Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
core\check\check Class Reference

Base class for checks. More...

Inheritance diagram for core\check\check:

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 the result.
 
 set_component (string $component)
 Get the frankenstyle component name.
 

Protected Attributes

string $component = 'core'
 $component - The component / plugin this task belongs to.
 

Detailed Description

Base class for checks.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_action_link()

◆ get_component()

core\check\check::get_component ( )

Get the frankenstyle component name.

Return values
string

◆ get_id()

core\check\check::get_id ( )

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.

Return values
stringmust be unique within a component

◆ get_name()

◆ get_ref()

core\check\check::get_ref ( )

Get the check reference.

Return values
stringmust be globally unique

◆ get_result()

◆ set_component()

core\check\check::set_component ( string $component)

Get the frankenstyle component name.

Parameters
string$componentname

Member Data Documentation

◆ $component

string core\check\check::$component = 'core'
protected

$component - The component / plugin this task belongs to.

This is autopopulated by the check manager.


The documentation for this class was generated from the following file: