Class field.
More...
|
const | TYPE = 'date' |
| Type of plugin data.
|
|
|
category_controller | $category |
| Category of the field.
|
|
field | $field |
| Field persistent class.
|
|
◆ config_form_definition()
customfield_date\field_controller::config_form_definition |
( |
\MoodleQuickForm |
$mform | ) |
|
◆ config_form_validation()
customfield_date\field_controller::config_form_validation |
( |
array |
$data, |
|
|
|
$files = array() |
|
) |
| |
◆ course_grouping_format_values()
customfield_date\field_controller::course_grouping_format_values |
( |
|
$values | ) |
|
If this field supports course grouping, then this function needs overriding to return the formatted values for this.
- Parameters
-
array | $values | the used values that need formatting |
- Return values
-
Reimplemented from core_customfield\field_controller.
◆ create()
static core_customfield\field_controller::create |
( |
int |
$id, |
|
|
stdClass |
$record = null , |
|
|
category_controller |
$category = null |
|
) |
| |
|
staticinherited |
Creates an instance of field_controller.
Parameters $id, $record and $category can complement each other but not conflict. If $id is not specified, categoryid must be present either in $record or in $category. If $id is not specified, type must be present in $record
No DB queries are performed if both $record and $category are specified.
- Parameters
-
int | $id | |
stdClass | null | $record | |
category_controller | null | $category | |
- Return values
-
field_controller | will return the instance of the class from the customfield element plugin |
- Exceptions
-
◆ delete()
core_customfield\field_controller::delete |
( |
| ) |
|
|
inherited |
◆ get()
core_customfield\field_controller::get |
( |
string |
$property | ) |
|
|
finalinherited |
Persistent getter parser.
- Parameters
-
- Return values
-
◆ get_category()
core_customfield\field_controller::get_category |
( |
| ) |
|
|
finalinherited |
Get the category associated with this field.
- Return values
-
◆ get_configdata_property()
core_customfield\field_controller::get_configdata_property |
( |
string |
$property | ) |
|
|
inherited |
Get configdata property.
- Parameters
-
string | $property | name of the property |
- Return values
-
◆ get_formatted_name()
core_customfield\field_controller::get_formatted_name |
( |
| ) |
|
|
inherited |
Returns the field name formatted according to configuration context.
- Return values
-
◆ get_handler()
core_customfield\field_controller::get_handler |
( |
| ) |
|
|
finalinherited |
Returns a handler for this field.
- Return values
-
◆ prepare_for_config_form()
core_customfield\field_controller::prepare_for_config_form |
( |
\stdClass |
$formdata | ) |
|
|
inherited |
Prepare the field data to set in the configuration form.
Plugin can override if some preprocessing required for editor or filemanager fields
- Parameters
-
Reimplemented in customfield_textarea\field_controller.
◆ save()
core_customfield\field_controller::save |
( |
| ) |
|
|
inherited |
◆ set()
core_customfield\field_controller::set |
( |
|
$property, |
|
|
|
$value |
|
) |
| |
|
finalinherited |
Persistent setter parser.
- Parameters
-
string | $property | |
mixed | $value | |
- Return values
-
◆ supports_course_grouping()
customfield_date\field_controller::supports_course_grouping |
( |
| ) |
|
◆ to_record()
core_customfield\field_controller::to_record |
( |
| ) |
|
|
finalinherited |
Persistent to_record parser.
- Return values
-
The documentation for this class was generated from the following file: