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

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

Public Member Functions

 __construct ($label, $no, $infinite, $noofdrags)
 Drag item object setup. More...
 
 choice_group ()
 Returns the group of this item. More...
 
 summarise ()
 Creates summary text of for the drag item. More...
 

Public Attributes

int $infinite
 Group of the item.
 
int $no
 Number of the item.
 
int $noofdrags
 Number of drags.
 
string $text
 Label for the drag item.
 

Detailed Description

Represents one of the choices (draggable markers).

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

Constructor & Destructor Documentation

◆ __construct()

qtype_ddmarker_drag_item::__construct (   $label,
  $no,
  $infinite,
  $noofdrags 
)

Drag item object setup.

Parameters
string$labelThe label text of the drag item
int$noWhich number drag item this is
bool$infiniteTrue if the item can be used an unlimited number of times
int$noofdrags

Member Function Documentation

◆ choice_group()

qtype_ddmarker_drag_item::choice_group ( )

Returns the group of this item.

Return values
int

◆ summarise()

qtype_ddmarker_drag_item::summarise ( )

Creates summary text of for the drag item.

Return values
string

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