Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tool_usertours\local\target\selector Class Reference
Inheritance diagram for tool_usertours\local\target\selector:
tool_usertours\local\target\base

Public Member Functions

 convert_to_css ()
 Convert the target value to a valid CSS selector for use in the output configuration.
 
 get_default_content ()
 Get the default content.
 
 get_default_title ()
 Get the default title.
 
 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.
 

Member Function Documentation

◆ add_config_to_form()

static tool_usertours\local\target\selector::add_config_to_form ( \MoodleQuickForm $mform)
static

Add the target type configuration to the form.

Parameters
MoodleQuickForm$mformThe form to add configuration to.
Return values
$this

Reimplemented from tool_usertours\local\target\base.

◆ add_disabled_constraints_to_form()

static tool_usertours\local\target\selector::add_disabled_constraints_to_form ( \MoodleQuickForm $mform)
static

Add the disabledIf values.

Parameters
MoodleQuickForm$mformThe form to add configuration to.

Reimplemented from tool_usertours\local\target\base.

◆ convert_to_css()

tool_usertours\local\target\selector::convert_to_css ( )

Convert the target value to a valid CSS selector for use in the output configuration.

Return values
string

Reimplemented from tool_usertours\local\target\base.

◆ get_default_content()

tool_usertours\local\target\selector::get_default_content ( )

Get the default content.

Return values
string

◆ get_default_title()

tool_usertours\local\target\selector::get_default_title ( )

Get the default title.

Return values
string

◆ get_displayname()

tool_usertours\local\target\selector::get_displayname ( )

Convert the step target to a friendly name for use in the UI.

Return values
string

Reimplemented from tool_usertours\local\target\base.

◆ get_forced_setting_value()

tool_usertours\local\target\base::get_forced_setting_value ( $key)
inherited

The value of the forced setting.

Parameters
string$keyThe name of the key to check.
Return values
mixed

◆ get_value_from_form()

tool_usertours\local\target\selector::get_value_from_form ( $data)

Fetch the targetvalue from the form for this target type.

Parameters
stdClass$dataThe data submitted in the form
Return values
string

Reimplemented from tool_usertours\local\target\base.

◆ is_setting_forced()

tool_usertours\local\target\base::is_setting_forced ( $key)
inherited

Whether the specified step setting is forced by this target type.

Parameters
string$keyThe name of the key to check.
Return values
boolean

◆ prepare_data_for_form()

tool_usertours\local\target\selector::prepare_data_for_form ( $data)

Prepare data to submit to the form.

Parameters
object$dataThe data being passed to the form

Reimplemented from tool_usertours\local\target\base.


The documentation for this class was generated from the following file: