◆ config_form_definition()
customfield_number\provider_base::config_form_definition |
( |
MoodleQuickForm | $mform | ) |
|
|
inherited |
◆ config_form_validation()
customfield_number\provider_base::config_form_validation |
( |
array | $data, |
|
|
array | $files = [] ) |
|
inherited |
◆ get_all_providers()
static customfield_number\provider_base::get_all_providers |
( |
field_controller | $field | ) |
|
|
staticfinalinherited |
List of applicable automatic providers for this field.
- Parameters
-
- Return values
-
◆ get_default_value()
customfield_number\provider_base::get_default_value |
( |
| ) |
|
|
inherited |
Default value if there is no value in the database (or there is a null)
Usually returns either null or 0
- Return values
-
◆ get_name()
customfield_number\missing_provider::get_name |
( |
| ) |
|
◆ instance()
Returns a new provider instance.
- Parameters
-
field_controller | $field | Field |
◆ is_available()
customfield_number\missing_provider::is_available |
( |
| ) |
|
◆ prepare_export_value()
customfield_number\provider_base::prepare_export_value |
( |
mixed | $value, |
|
|
?\context | $context = null ) |
|
inherited |
How the field should be displayed.
Called from {
- See also
- field_controller::prepare_field_for_display()} The return value may contain safe HTML but all user input must be passed through format_string/format_text functions
- Parameters
-
mixed | $value | String or float |
context | null | $context | Context |
- Return values
-
?string | null if the field should not be displayed or string representation of the field |
Reimplemented in customfield_number\local\numberproviders\nofactivities.
◆ recalculate()
customfield_number\provider_base::recalculate |
( |
?int | $instanceid = null | ) |
|
|
inherited |
The documentation for this class was generated from the following file:
- customfield/field/number/classes/missing_provider.php