Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
gradingform_guide\grades\grader\gradingpanel\external\fetch Class Reference

Web services relating to fetching of a marking guide for the grading panel. More...

Inheritance diagram for gradingform_guide\grades\grader\gradingpanel\external\fetch:

Static Public Member Functions

static execute (string $component, int $contextid, string $itemname, int $gradeduserid)
 Fetch the data required to build a grading panel for a simple grade.
 
static execute_parameters ()
 Describes the parameters for fetching the grading panel for a simple grade.
 
static execute_returns ()
 Describes the data returned from the external function.
 
static get_fetch_data (gradeitem $gradeitem, stdClass $gradeduser)
 Get the data to be fetched.
 

Static Protected Member Functions

static get_formatted_text (context $context, int $definitionid, string $filearea, string $text, int $format)
 Get a formatted version of the remark/description/etc.
 

Detailed Description

Web services relating to fetching of a marking guide for the grading panel.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ execute()

static gradingform_guide\grades\grader\gradingpanel\external\fetch::execute ( string $component,
int $contextid,
string $itemname,
int $gradeduserid )
static

Fetch the data required to build a grading panel for a simple grade.

Parameters
string$component
int$contextid
string$itemname
int$gradeduserid
Return values
array
Exceptions
dml_exception
invalid_parameter_exception
restricted_context_exception
coding_exception
moodle_exception
Since
Moodle 3.8

◆ execute_parameters()

static gradingform_guide\grades\grader\gradingpanel\external\fetch::execute_parameters ( )
static

Describes the parameters for fetching the grading panel for a simple grade.

Return values
external_function_parameters
Since
Moodle 3.8

◆ execute_returns()

static gradingform_guide\grades\grader\gradingpanel\external\fetch::execute_returns ( )
static

Describes the data returned from the external function.

Return values
external_single_structure
Since
Moodle 3.8

◆ get_fetch_data()

static gradingform_guide\grades\grader\gradingpanel\external\fetch::get_fetch_data ( gradeitem $gradeitem,
stdClass $gradeduser )
static

Get the data to be fetched.

Parameters
gradeitem$gradeitem
stdClass$gradeduser
Return values
array

◆ get_formatted_text()

static gradingform_guide\grades\grader\gradingpanel\external\fetch::get_formatted_text ( context $context,
int $definitionid,
string $filearea,
string $text,
int $format )
staticprotected

Get a formatted version of the remark/description/etc.

Parameters
context$context
int$definitionid
string$fileareaThe file area of the field
string$textThe text to be formatted
int$formatThe input format of the string
Return values
string

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