Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
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. More...
 
 choice_group ()
 Returns the group of this item. More...
 

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: