Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Target base. More...
Public Member Functions | |
__construct (step $step) | |
Create the target type. | |
convert_to_css () | |
Convert the target value to a valid CSS selector for use in the output configuration. | |
get_displayname () | |
Convert the step target to a friendly name for use in the UI. | |
get_forced_setting_value ($key) | |
The value of the forced setting. | |
get_value_from_form ($data) | |
Fetch the targetvalue from the form for this target type. | |
is_setting_forced ($key) | |
Whether the specified step setting is forced by this target type. | |
prepare_data_for_form ($data) | |
Prepare data to submit to the form. | |
Static Public Member Functions | |
static | add_config_to_form (\MoodleQuickForm $mform) |
Add the target type configuration to the form. | |
static | add_disabled_constraints_to_form (\MoodleQuickForm $mform) |
Add the disabledIf values. | |
Protected Attributes | |
step | $step |
$step The step being targetted. | |
Static Protected Attributes | |
static array | $forcedsettings = [] |
$forcedsettings The settings forced by this type. | |
Target base.
tool_usertours\local\target\base::__construct | ( | step | $step | ) |
Create the target type.
step | $step | The step being targetted. |
|
static |
Add the target type configuration to the form.
MoodleQuickForm | $mform | The form to add configuration to. |
Reimplemented in tool_usertours\local\target\block, tool_usertours\local\target\selector, and tool_usertours\local\target\unattached.
|
static |
Add the disabledIf values.
MoodleQuickForm | $mform | The form to add configuration to. |
Reimplemented in tool_usertours\local\target\block, tool_usertours\local\target\selector, and tool_usertours\local\target\unattached.
|
abstract |
Convert the target value to a valid CSS selector for use in the output configuration.
string |
Reimplemented in tool_usertours\local\target\block, tool_usertours\local\target\selector, and tool_usertours\local\target\unattached.
|
abstract |
Convert the step target to a friendly name for use in the UI.
string |
Reimplemented in tool_usertours\local\target\block, tool_usertours\local\target\selector, and tool_usertours\local\target\unattached.
tool_usertours\local\target\base::get_forced_setting_value | ( | $key | ) |
The value of the forced setting.
string | $key | The name of the key to check. |
mixed |
|
abstract |
Fetch the targetvalue from the form for this target type.
stdClass | $data | The data submitted in the form |
string |
Reimplemented in tool_usertours\local\target\block, tool_usertours\local\target\selector, and tool_usertours\local\target\unattached.
tool_usertours\local\target\base::is_setting_forced | ( | $key | ) |
Whether the specified step setting is forced by this target type.
string | $key | The name of the key to check. |
boolean |
|
abstract |
Prepare data to submit to the form.
object | $data | The data being passed to the form |
Reimplemented in tool_usertours\local\target\block, tool_usertours\local\target\selector, and tool_usertours\local\target\unattached.