Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
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. More...
 

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: