Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
qtype_ordering

Namespaces

namespace  qtype_ordering
  
 
namespace  qtype_ordering\output
  
 
namespace  qtype_ordering\privacy
  
 

Classes

class  backup_qtype_ordering_plugin
 Provides the information to backup ordering questions. More...
 
class  behat_qtype_ordering
 
class  moodle1_qtype_ordering_handler
 Ordering question type conversion handler class. More...
 
class  phpunit_coverage_info
 Coverage information for the core subsystem. More...
 
class  qtype_ordering
 
class  qtype_ordering\output\correct_response
 
class  qtype_ordering\output\feedback
 
class  qtype_ordering\output\formulation_and_controls
 
class  qtype_ordering\output\num_parts_correct
 
class  qtype_ordering\output\renderable_base
 
class  qtype_ordering\output\specific_grade_detail_feedback
 
class  qtype_ordering\privacy\provider
 
class  qtype_ordering\question_hint_ordering
 
class  qtype_ordering_edit_form
 
class  qtype_ordering_question
 
class  qtype_ordering_renderer
 
class  qtype_ordering_test_helper
 Test helper for the ordering question type. More...
 
class  restore_qtype_ordering_plugin
 Restore plugin class that provides the necessary information needed to restore one ordering qtype plugin. More...
 

Functions

 qtype_ordering_pluginfile (stdClass $course, stdClass $cm, stdClass $context, string $filearea, array $args, bool $forcedownload, array $options=[])
 Checks file access for ordering questions.
 
 xmldb_qtype_ordering_upgrade ($oldversion)
 Upgrade code for the ordering question type.
 

Variables

global $CFG
 
 $plugin = 2024041600
 
$plugin component = 'qtype_ordering'
 
$plugin version = 2024042200
 

Detailed Description

Function Documentation

◆ qtype_ordering_pluginfile()

qtype_ordering_pluginfile ( stdClass $course,
stdClass $cm,
stdClass $context,
string $filearea,
array $args,
bool $forcedownload,
array $options = [] )

Checks file access for ordering 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 @codeCoverageIgnore This code can not be tested currently as pluginfile() is not testable.

◆ xmldb_qtype_ordering_upgrade()

xmldb_qtype_ordering_upgrade ( $oldversion)

Upgrade code for the ordering question type.

Parameters
int$oldversionthe version we are upgrading from.