Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_grading_external Class Reference

core grading functions More...

Inheritance diagram for core_grading_external:

Static Public Member Functions

static get_definitions ($cmids, $areaname, $activeonly=false)
 Returns the definitions for the requested course module ids.
 
static get_definitions_parameters ()
 Describes the parameters for get_definitions.
 
static get_definitions_returns ()
 Describes the get_definitions return value.
 
static get_gradingform_instances ($definitionid, $since=0)
 Returns the instances and fillings for the requested definition id.
 
static get_gradingform_instances_parameters ()
 Describes the parameters for get_gradingform_instances.
 
static get_gradingform_instances_returns ()
 Describes the get_gradingform_instances return value.
 
static save_definitions ($areas)
 Saves the areas and definitions.
 
static save_definitions_parameters ()
 Describes the parameters for save_definitions.
 
static save_definitions_returns ()
 Describes the return value for save_definitions.
 

Detailed Description

core grading functions

Member Function Documentation

◆ get_definitions()

static core_grading_external::get_definitions ( $cmids,
$areaname,
$activeonly = false )
static

Returns the definitions for the requested course module ids.

Parameters
arrayof ints $cmids
string$areaname
boolean$activeonlydefault is false, if true, only the active method is returned
Return values
arrayof areas with definitions for each requested course module id
Since
Moodle 2.5

◆ get_definitions_parameters()

static core_grading_external::get_definitions_parameters ( )
static

Describes the parameters for get_definitions.

Return values
external_function_parameters
Since
Moodle 2.5

◆ get_definitions_returns()

static core_grading_external::get_definitions_returns ( )
static

Describes the get_definitions return value.

Return values
external_single_structure
Since
Moodle 2.5

◆ get_gradingform_instances()

static core_grading_external::get_gradingform_instances ( $definitionid,
$since = 0 )
static

Returns the instances and fillings for the requested definition id.

Parameters
int$definitionid
int$sinceonly return instances with timemodified >= since
Return values
arrayof grading instances with fillings for the definition id
Since
Moodle 2.6

◆ get_gradingform_instances_parameters()

static core_grading_external::get_gradingform_instances_parameters ( )
static

Describes the parameters for get_gradingform_instances.

Return values
external_function_parameters
Since
Moodle 2.6

◆ get_gradingform_instances_returns()

static core_grading_external::get_gradingform_instances_returns ( )
static

Describes the get_gradingform_instances return value.

Return values
external_single_structure
Since
Moodle 2.6

◆ save_definitions()

static core_grading_external::save_definitions ( $areas)
static

Saves the areas and definitions.

Parameters
array$areasarray of areas containing definitions to be saved
Return values
null
Exceptions
invalid_parameter_exception
Since
Moodle 2.8

◆ save_definitions_parameters()

static core_grading_external::save_definitions_parameters ( )
static

Describes the parameters for save_definitions.

Return values
external_function_parameters
Since
Moodle 2.8

◆ save_definitions_returns()

static core_grading_external::save_definitions_returns ( )
static

Describes the return value for save_definitions.

Return values
external_single_structure
Since
Moodle 2.8

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