Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
qtype_gapselect_choice Class Reference

Represents one of the choices (select box option). More...

Public Member Functions

 __construct ($text, $selectgroup=1)
 Creates summary text of for the drag item. More...
 
 choice_group ()
 Returns the group of this item. More...
 

Public Attributes

int $selectgroup
 Selection group of the choice.
 
string $text
 Text for the choice.
 

Detailed Description

Represents one of the choices (select box option).

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

Constructor & Destructor Documentation

◆ __construct()

qtype_gapselect_choice::__construct (   $text,
  $selectgroup = 1 
)

Creates summary text of for the drag item.

Parameters
string$textThe text of the choice
int$selectgroupThe select group of the choice

Member Function Documentation

◆ choice_group()

qtype_gapselect_choice::choice_group ( )

Returns the group of this item.

Return values
int

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