Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Target base.

Copyright: 2016 Andrew Nicols <andrew@nicols.co.uk>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 126 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: base  - X-Ref

Target base.

__construct(step $step)   X-Ref
Create the target type.

param: step        $step       The step being targetted.

add_config_to_form(\MoodleQuickForm $mform)   X-Ref
Add the target type configuration to the form.

param: MoodleQuickForm $mform      The form to add configuration to.

add_disabled_constraints_to_form(\MoodleQuickForm $mform)   X-Ref
Add the disabledIf values.

param: MoodleQuickForm $mform      The form to add configuration to.

is_setting_forced($key)   X-Ref
Whether the specified step setting is forced by this target type.

param: string          $key        The name of the key to check.
return: boolean

get_forced_setting_value($key)   X-Ref
The value of the forced setting.

param: string          $key        The name of the key to check.
return: mixed