Rating external functions utility class.
More...
|
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...
|
|
Rating external functions utility class.
- Copyright
- 2017 Juan Leyva
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
- Since
- Moodle 3.4
◆ 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 | $mod | course module object |
stdClass | $context | context object |
str | $component | component name |
str | $ratingarea | rating area |
array | $items | items to add ratings |
- Return values
-
array | ratings ready to be returned by external functions. |
The documentation for this class was generated from the following file: