Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
core_rating\external\util Class Reference

Rating external functions utility class. More...

Static Public Member Functions

static external_ratings_structure ()
 Returns the ratings definition for external functions.
 
static get_rating_info ($mod, $context, $component, $ratingarea, $items)
 Returns rating information inside a data structure like the one defined by external_ratings_structure.
 

Detailed Description

Rating external functions utility class.

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

Member Function Documentation

◆ get_rating_info()

static core_rating\external\util::get_rating_info ( $mod,
$context,
$component,
$ratingarea,
$items )
static

Returns rating information inside a data structure like the one defined by external_ratings_structure.

Parameters
stdClass$modcourse module object
stdClass$contextcontext object
str$componentcomponent name
str$ratingarearating area
array$itemsitems to add ratings
Return values
arrayratings ready to be returned by external functions.

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