Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250605) (9223e346c3e)
core_customfield\output\field_data Class Reference

core_customfield field value renderable class. More...

Inheritance diagram for core_customfield\output\field_data:

Public Member Functions

 __construct (\core_customfield\data_controller $data)
 Renderable constructor.
 
 export_for_template (\renderer_base $output)
 Export data for using as template context.
 
 get_data_controller ()
 Returns the data controller used to create this object if additional attributes are needed.
 
 get_name ()
 Returns the field name formatted for the output.
 
 get_shortname ()
 Returns the field short name.
 
 get_type ()
 Returns the field type (checkbox, date, text, ...)
 
 get_value ()
 Returns the data value formatted for the output.
 

Protected Attributes

core_customfield data_controller $data
 

Detailed Description

core_customfield field value renderable class.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

core_customfield\output\field_data::__construct ( \core_customfield\data_controller $data)

Renderable constructor.

Parameters
core_customfield\data_controller$data

Member Function Documentation

◆ export_for_template()

core_customfield\output\field_data::export_for_template ( \renderer_base $output)

Export data for using as template context.

Parameters
renderer_base$output
Return values
stdClass

◆ get_data_controller()

core_customfield\output\field_data::get_data_controller ( )

Returns the data controller used to create this object if additional attributes are needed.

Return values
data_controller

◆ get_name()

core_customfield\output\field_data::get_name ( )

Returns the field name formatted for the output.

Return values
string

◆ get_shortname()

core_customfield\output\field_data::get_shortname ( )

Returns the field short name.

Return values
string

◆ get_type()

core_customfield\output\field_data::get_type ( )

Returns the field type (checkbox, date, text, ...)

Return values
string

◆ get_value()

core_customfield\output\field_data::get_value ( )

Returns the data value formatted for the output.

Return values
mixed|null

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