Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
mod_quiz\external\add_random_questions Class Reference
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.
 

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: