Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
mod_quiz\external\submit_question_version Class Reference

External api for changing the question version in the quiz. More...

Inheritance diagram for mod_quiz\external\submit_question_version:

Static Public Member Functions

static execute (int $slotid, int $newversion)
 Set the questions slot parameters to display the question template.
 
static execute_parameters ()
 Parameters for the submit_question_version.
 
static execute_returns ()
 Define the webservice response.
 

Detailed Description

External api for changing the question version in the quiz.

Author
Safat Shahin safat.nosp@m.shah.nosp@m.in@ca.nosp@m.taly.nosp@m.st-au.nosp@m..net
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ execute()

static mod_quiz\external\submit_question_version::execute ( int $slotid,
int $newversion )
static

Set the questions slot parameters to display the question template.

Parameters
int$slotidSlot id to display.
int$newversionthe version to set. 0 means 'always latest'.
Return values
array

◆ execute_parameters()

static mod_quiz\external\submit_question_version::execute_parameters ( )
static

Parameters for the submit_question_version.

Return values
external_function_parameters

◆ execute_returns()

static mod_quiz\external\submit_question_version::execute_returns ( )
static

Define the webservice response.

Return values
core_external\external_description

The documentation for this class was generated from the following file: