|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
The chooser_item renderable class. More...
Public Member Functions | |
| __construct ($id, $label, $value, pix_icon $icon, $description=null, ?context $context=null) | |
| Constructor. | |
| export_for_template (renderer_base $output) | |
| Export for template. | |
Public Attributes | |
| context | $context |
| The relevant context. | |
| string | $description |
| The item description. | |
| pix_icon | $icon |
| The icon for this item. | |
| string | $id |
| An identifier for the item. | |
| string | $label |
| The label of this item. | |
| string | $value |
| The value this item represents. | |
The chooser_item renderable class.
| core\output\chooser_item::export_for_template | ( | renderer_base | $output | ) |
Export for template.
| renderer_base | The renderer. |
| stdClass |
Implements core\output\templatable.