Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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.
 
 choice_group ()
 Returns the group of this item.
 
 summarise ()
 Creates summary text of for the drag item.
 

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: