[ Index ]

PHP Cross Reference of Moodle 310

title

Body

[close]

/lib/classes/check/ -> check.php (summary)

Base class for checks

Copyright: 2020 Brendan Heywood <brendan@catalyst-au.net>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 118 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  get_component()
  set_component()
  get_id()
  get_ref()
  get_name()
  get_action_link()

Functions
Functions that are not part of a class:

get_component()   X-Ref
Get the frankenstyle component name

return: string

set_component(string $component)   X-Ref
Get the frankenstyle component name

param: string $component name

get_id()   X-Ref
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: string must be unique within a component

get_ref()   X-Ref
Get the check reference

return: string must be globally unique

get_name()   X-Ref
Get the short check name

return: string

get_action_link()   X-Ref
A link to a place to action this

return: action_link|null



Generated: Wed Jan 22 11:59:49 2025 Cross-referenced by PHPXref 0.7.1