Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
mod_quiz\external\create_grade_items Class Reference
Inheritance diagram for mod_quiz\external\create_grade_items:

Static Public Member Functions

static execute (int $quizid, array $gradeitems)
 Add new grade items to this quiz.
 
static execute_parameters ()
 Declare the method parameters.
 
static execute_returns ()
 Define the webservice response.
 

Member Function Documentation

◆ execute()

static mod_quiz\external\create_grade_items::execute ( int $quizid,
array $gradeitems )
static

Add new grade items to this quiz.

New items are added in order, at the end of the sort order.

Parameters
int$quizidthe id of the quiz to add the grade items to.
array$gradeitemslist of grade items to create. (Each one must have property name.)

◆ execute_parameters()

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

Declare the method parameters.

Return values
external_function_parameters

◆ execute_returns()

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

Define the webservice response.

Return values
external_description|nullalways null.

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