Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
lib.php File Reference

Classes

class  rating
 The rating class represents a single rating by a single user. More...
 
class  rating_exception
 The rating_exception class for exceptions specific to the ratings system. More...
 
class  rating_manager
 The rating_manager class provides the ability to retrieve sets of ratings from the database. More...
 

Variables

const RATING_AGGREGATE_AVERAGE 1
 
const RATING_AGGREGATE_COUNT 2
 
const RATING_AGGREGATE_MAXIMUM 3
 
const RATING_AGGREGATE_MINIMUM 4
 
const RATING_AGGREGATE_NONE 0
 
const RATING_AGGREGATE_SUM 5
 
const RATING_DEFAULT_SCALE 5
 
const RATING_UNSET_RATING -999
 A class representing a single rating and containing some static methods for manipulating ratings.