Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
qtype_ddmarker

Files

file  backup_qtype_ddmarker_plugin.class.php
 Backup code for qtype_ddmarker.
 
file  behat_qtype_ddmarker.php
 Behat steps definitions for drag and drop markers.
 
file  edit_ddmarker_form.php
 Defines the editing form for the drag-and-drop images onto images question type.
 
file  helper.php
 Test helpers for the drag-and-drop markers question type.
 
file  lib.php
 Serve question type files.
 
file  provider.php
 Privacy Subsystem implementation for qtype_ddmarker.
 
file  question.php
 Drag-and-drop markers question definition class.
 
file  questiontype.php
 Question type class for the drag-and-drop images onto images question type.
 
file  renderer.php
 Drag-and-drop markers question renderer class.
 
file  restore_qtype_ddmarker_plugin.class.php
 Restore code for qtype_ddmarker.
 
file  shapes.php
 Drag-and-drop markers classes for dealing with shapes on the server side.
 
file  upgrade.php
 Ddmarker question type upgrade code.
 
file  version.php
 Version information for the drag-and-drop markers question type.
 

Namespaces

namespace  qtype_ddmarker\privacy
  
 

Classes

class  backup_qtype_ddmarker_plugin
 Provides the information to backup ddmarker questions. More...
 
class  behat_qtype_ddmarker
 Steps definitions related with the drag and drop markers question type. More...
 
class  qtype_ddmarker
 The drag-and-drop markers question type class. More...
 
class  qtype_ddmarker\privacy\provider
 Privacy Subsystem for qtype_ddmarker implementing null_provider. More...
 
class  qtype_ddmarker_drag_item
 Represents one of the choices (draggable markers). More...
 
class  qtype_ddmarker_drop_zone
 Represents one of the places (drop zones). More...
 
class  qtype_ddmarker_edit_form
 Drag-and-drop images onto images editing form definition. More...
 
class  qtype_ddmarker_point
 Class to represent a point. More...
 
class  qtype_ddmarker_question
 Represents a drag-and-drop markers question. More...
 
class  qtype_ddmarker_renderer
 Generates the output for drag-and-drop markers questions. More...
 
class  qtype_ddmarker_shape
 Base class to represent a shape. More...
 
class  qtype_ddmarker_shape_circle
 Class to represent a circle. More...
 
class  qtype_ddmarker_shape_polygon
 Class to represent a polygon. More...
 
class  qtype_ddmarker_shape_rectangle
 Class to represent a rectangle. More...
 
class  qtype_ddmarker_test_helper
 Test helper class for the drag-and-drop markers question type. More...
 
class  question_hint_ddmarker
 Question hint for ddmarker. More...
 
class  restore_qtype_ddmarker_plugin
 Restore plugin class for the ddmarker question type plugin. More...
 

Functions

 qtype_ddmarker_get_fontawesome_icon_map ()
 Get icon mapping for font-awesome.
 
 qtype_ddmarker_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 Checks file access for ddmarker questions. More...
 
 xmldb_qtype_ddmarker_upgrade ($oldversion)
 Upgrade code for the ddmarker question type. More...
 

Variables

 $plugin = 2020060900
 
$plugin component = 'qtype_ddmarker'
 
$plugin dependencies
 
$plugin maturity = MATURITY_STABLE
 
const QTYPE_DDMARKER_ALLOWED_TAGS_IN_MARKER '<br><i><em><b><strong><sup><sub><u><span>'
 
$plugin version = 2020061500
 

Detailed Description

Function Documentation

◆ qtype_ddmarker_pluginfile()

qtype_ddmarker_pluginfile (   $course,
  $cm,
  $context,
  $filearea,
  $args,
  $forcedownload,
array  $options = array() 
)

Checks file access for ddmarker questions.

Parameters
object$courseThe course we are in
object$cmCourse module
object$contextThe context object
string$fileareathe name of the file area.
array$argsthe remaining bits of the file path.
bool$forcedownloadwhether the user must be forced to download the file.
array$optionsadditional options affecting the file serving

◆ xmldb_qtype_ddmarker_upgrade()

xmldb_qtype_ddmarker_upgrade (   $oldversion)

Upgrade code for the ddmarker question type.

Parameters
int$oldversionthe version we are upgrading from.
Return values
bool

Variable Documentation

◆ dependencies

$plugin dependencies
Initial value:
= array(
'qtype_gapselect' => 2020060900,
'qtype_ddimageortext' => 2020060900,
)