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

The chooser_item renderable class. More...

Inheritance diagram for core\output\chooser_item:
core\output\renderable core\output\templatable qbank_editquestion\qbank_chooser_item

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.
 

Detailed Description

The chooser_item renderable class.

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

Member Function Documentation

◆ export_for_template()

core\output\chooser_item::export_for_template ( renderer_base $output)

Export for template.

Parameters
renderer_baseThe renderer.
Return values
stdClass

Implements core\output\templatable.


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