Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

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

Defines 1 class

admins:: (6 methods):
  get_config_form()
  get_sql()
  get_name()
  get_description()
  user_can_add()
  user_can_edit()


Class: admins  - X-Ref

Administrators audience type

get_config_form(MoodleQuickForm $mform)   X-Ref
Add audience elements to the current form

param: MoodleQuickForm $mform

get_sql(string $usertablealias)   X-Ref
Return SQL to retrieve users that match this audience

param: string $usertablealias
return: array [$join, $select, $params]

get_name()   X-Ref
Return name of this audience

return: string

get_description()   X-Ref
Return description of this audience.

return: string

user_can_add()   X-Ref
Whether the current user is able to add this audience

return: bool

user_can_edit()   X-Ref
Whether the current user is able to edit this audience

return: bool