Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
qtype_ddwtos_choice Class Reference

Represents one of the choices (draggable boxes). More...

Public Member Functions

 __construct ($text, $draggroup=1, $infinite=false)
 Initialize a choice object.
 
 choice_group ()
 Returns the group of this item.
 

Public Attributes

int $draggroup
 Group of the choice.
 
bool $infinite
 If the choice can be used an unlimited number of times.
 
string $text
 Text for the choice.
 

Detailed Description

Represents one of the choices (draggable boxes).

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

Constructor & Destructor Documentation

◆ __construct()

qtype_ddwtos_choice::__construct ( $text,
$draggroup = 1,
$infinite = false )

Initialize a choice object.

Parameters
string$textThe text of the choice
int$draggroupGroup of the drop choice
bool$infiniteTrue if the item can be used an unlimited number of times

Member Function Documentation

◆ choice_group()

qtype_ddwtos_choice::choice_group ( )

Returns the group of this item.

Return values
int

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