Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
core_question\external\move_questions Class Reference
Inheritance diagram for core_question\external\move_questions:

Static Public Member Functions

static execute (int $newcontextid, int $newcategoryid, string $questionids, string $returnurlstring='')
 Move questions to a new question category.
 
static execute_parameters ()
 Declare the method parameters.
 
static execute_returns ()
 Define the webservice response.
 

Member Function Documentation

◆ execute()

static core_question\external\move_questions::execute ( int $newcontextid,
int $newcategoryid,
string $questionids,
string $returnurlstring = '' )
static

Move questions to a new question category.

Optionally provide a url to add/update it with the filter param containing the new category.

Parameters
int$newcontextidof the target question bank
int$newcategoryidof the target category
string$questionidscomma separated list of question ids to move
string$returnurlstringoptional, provide this to have the filter url param added/updated to reflect the new category
Return values
null|stringif $returnurlstring was provided then an updated url which filters to the new category

◆ execute_parameters()

static core_question\external\move_questions::execute_parameters ( )
static

Declare the method parameters.

Return values
external_function_parameters

◆ execute_returns()

static core_question\external\move_questions::execute_returns ( )
static

Define the webservice response.

Return values
external_value

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