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

Static Public Member Functions

static execute (int $quizid)
 For a quiz with no grade items yet, create a grade item for each section.
 
static execute_parameters ()
 Declare the method parameters.
 
static execute_returns ()
 Define the webservice response.
 

Member Function Documentation

◆ execute()

static mod_quiz\external\create_grade_item_per_section::execute ( int $quizid)
static

For a quiz with no grade items yet, create a grade item for each section.

And, assign the questions in each section to the corresponding grade item.

The user must have the 'mod/quiz:manage' capability for the quiz.

Parameters
int$quizidthe id of the quiz to setup grade items for.

◆ execute_parameters()

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

Declare the method parameters.

Return values
external_function_parameters

◆ execute_returns()

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

Define the webservice response.

Return values
external_description|nullalways null.

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