Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
qtype_ddimageortext_drag_item Class Reference

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

Public Member Functions

 __construct ($alttextlabel, $no, $group=1, $infinite=false, $id=0)
 Drag item object setup.
 
 choice_group ()
 Returns the group of this item.
 
 summarise ()
 Creates summary text of for the drag item.
 

Public Attributes

int $group
 Group of the item.
 
int $id
 Drag item id.
 
bool $infinite
 If the drag item can be used multiple times or not.
 
int $no
 Number of the item.
 
string $text
 Text for the drag item.
 

Detailed Description

Represents one of the choices (draggable images).

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

Constructor & Destructor Documentation

◆ __construct()

qtype_ddimageortext_drag_item::__construct ( $alttextlabel,
$no,
$group = 1,
$infinite = false,
$id = 0 )

Drag item object setup.

Parameters
string$alttextlabelThe alt text of the drag item
int$noWhich number drag item this is
int$groupGroup of the drag item
bool$infiniteTrue if the item can be used an unlimited number of times
int$idid of the item

Member Function Documentation

◆ choice_group()

qtype_ddimageortext_drag_item::choice_group ( )

Returns the group of this item.

Return values
int

◆ summarise()

qtype_ddimageortext_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: