Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

File Size: 228 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: area_base  - X-Ref

Area base class.

checkgroup_name(int $checkgroupvalue)   X-Ref
Return the name for the specified checkgroup value, or 'unknown' if no valid name for the value. Preferably, use this rather
than direct access to CHECKGROUP_NAMES, since it checks value boundaries.

param: int $checkgroupvalue
return: string

checkgroup_value(string $checkgroupname)   X-Ref
Return the value for the specified checkgroup name, or the unknown value if no valid value for the name.

param: string $checkgroupname
return: int

get_type()   X-Ref
Return the defined content type.

return: int

get_component()   X-Ref
Return the component from the full class name.

return: mixed|string

is_available()   X-Ref
Check if the system plugin is avaliable.

return: bool

get_ref_tablename()   X-Ref
Return the name of the reference data table name.

return: string

find_system_areas()   X-Ref
Return an array of area objects that contain content at the site and system levels only. Override this where necessary.

return: \moodle_recordset|null

get_standard_area_fields_sql()   X-Ref
The standard Moodle parameter DML parameter substitution doesn't work on all versions of MySQL or Postgres, so we need to use
inline function substitution to ensure that the left side is a string.

return: string

get_reftable_field_sql()   X-Ref
The standard Moodle parameter DML parameter substitution doesn't work on all versions of MySQL or Postgres, so we need to use
inline function substitution to ensure that the left side is a string.

return: string

get_courseid_filtering()   X-Ref
Processes any sql filtering data. Implement in extensions.

return: null