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

Add random questions to a quiz. More...

Inheritance diagram for mod_quiz\external\add_random_questions:

Static Public Member Functions

static execute (int $cmid, int $addonpage, int $randomcount, string $filtercondition='', string $newcategory='', string $parentcategory='',)
 Add random questions.
 
static execute_parameters ()
 Parameters for the web service function.
 
static execute_returns ()
 Returns description of method result value.
 

Detailed Description

Add random questions to a quiz.

Author
Nathan Nguyen natha.nosp@m.nngu.nosp@m.yen@c.nosp@m.atal.nosp@m.yst-a.nosp@m.u.ne.nosp@m.t
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ execute()

static mod_quiz\external\add_random_questions::execute ( int $cmid,
int $addonpage,
int $randomcount,
string $filtercondition = '',
string $newcategory = '',
string $parentcategory = '' )
static

Add random questions.

Parameters
int$cmidThe cmid of the quiz
int$addonpageThe page where random questions will be added to
int$randomcountNumber of random questions
string$filterconditionFilter condition
string$newcategoryadd new category
string$parentcategoryparent category of new category
Return values
arrayresult

◆ execute_parameters()

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

Parameters for the web service function.

Return values
external_function_parameters

◆ execute_returns()

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

Returns description of method result value.

Return values
external_value

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