Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
qbank_editquestion\qbank_chooser_item Class Reference

The qbank_chooser_item renderable class. More...

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

Public Member Functions

 __construct ($qtype, $context)
 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 qbank_chooser_item renderable class.

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

Constructor & Destructor Documentation

◆ __construct()

qbank_editquestion\qbank_chooser_item::__construct ( $qtype,
$context )

Constructor.

Parameters
object$qtypeThe question type.
context$contextThe relevant context.

Member Function Documentation

◆ export_for_template()

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

Export for template.

Parameters
renderer_baseThe renderer.
Return values
stdClass

Implements templatable.


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