Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
qtype_randomsamatch

Namespaces

namespace  qtype_randomsamatch\privacy
  
 

Classes

class  moodle1_qtype_randomsamatch_handler
 Random shortanswer matching question type conversion handler. More...
 
class  qtype_randomsamatch
 The randomsamatch question type class. More...
 
class  qtype_randomsamatch\privacy\provider
 Privacy Subsystem for qtype_randomsamatch implementing null_provider. More...
 
class  qtype_randomsamatch_edit_form
 randomsamatch editing form definition. More...
 
class  qtype_randomsamatch_qe2_attempt_updater
 Class for converting attempt data for randomsamatch questions when upgrading attempts to the new question engine. More...
 
class  qtype_randomsamatch_question
 Represents a randomsamatch question. More...
 
class  qtype_randomsamatch_question_loader
 This class is responsible for loading the questions that a question needs from the database. More...
 
class  qtype_randomsamatch_renderer
 Generates the output for randomsamatch questions. More...
 
class  qtype_randomsamatch_test_helper
 Test helper class for the randomsamatch question type. More...
 
class  qtype_randomsamatch_test_question_loader
 Test implementation of qtype_randomsamatch_question_loader. More...
 

Functions

 qtype_randomsamatch_pluginfile ($course, $cm, $context, $filearea, $args, $forcedownload, array $options=array())
 Checks file access for random short answer matching questions.
 
 xmldb_qtype_randomsamatch_upgrade ($oldversion)
 Upgrade code for the random short answer matching question type.
 

Variables

global $CFG
 
 $plugin = 2023041800
 
$plugin component = 'qtype_randomsamatch'
 
$plugin dependencies
 
$plugin maturity = MATURITY_STABLE
 
$plugin version = 2023042400
 

Detailed Description

Function Documentation

◆ qtype_randomsamatch_pluginfile()

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

Checks file access for random short answer matching questions.

Parameters
stdClass$coursecourse object
stdClass$cmcourse module object
stdClass$contextcontext object
string$fileareafile area
array$argsextra arguments
bool$forcedownloadwhether or not force download
array$optionsadditional options affecting the file serving
Return values
bool

◆ xmldb_qtype_randomsamatch_upgrade()

xmldb_qtype_randomsamatch_upgrade ( $oldversion)

Upgrade code for the random short answer matching question type.

Parameters
int$oldversionthe version we are upgrading from.

Variable Documentation

◆ dependencies

$plugin dependencies
Initial value:
= array(
'qtype_match' => 2023041800,
'qtype_shortanswer' => 2023041800,
)