ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Static Public Member Functions | |
static | writeRatingForUserAndObject ($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id, $a_rating, $a_category_id=0) |
Write rating for a user and an object. More... | |
static | resetRatingForUserAndObject ($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id) |
Reset rating for a user and an object. More... | |
static | getRatingForUserAndObject ($a_obj_id, $a_obj_type, $a_sub_obj_id, $a_sub_obj_type, $a_user_id, $a_category_id=null) |
Get rating for a user and an object. More... | |
static | getOverallRatingForObject ($a_obj_id, $a_obj_type, $a_sub_obj_id=null, $a_sub_obj_type=null, $a_category_id=null) |
Get overall rating for an object. More... | |
static | getExportData ($a_obj_id, $a_obj_type, array $a_category_ids=null) |
Get export data. More... | |
static | preloadListGUIData (array $a_obj_ids) |
Preload rating data for list guis. More... | |
static | hasRatingInListGUI ($a_obj_id, $a_obj_type) |
Static Protected Attributes | |
static | $list_data |
|
static |
Get export data.
int | $a_obj_id | |
string | $a_obj_type | |
array | $a_category_ids |
Definition at line 194 of file class.ilRating.php.
References $ilDB, $res, and $row.
Referenced by ilRatingCategoryGUI\export().
|
static |
Get overall rating for an object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
int | $a_category_id | Category ID |
Definition at line 141 of file class.ilRating.php.
References $ilDB.
Referenced by ilWikiStat\getAverageRating(), ilDataCollectionRatingField\getExportValue(), ilRatingGUI\getHTML(), ilDataCollectionRatingField\getValue(), and ilRatingGUI\renderDetails().
|
static |
Get rating for a user and an object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
int | $a_user_id | User ID |
int | $a_category_id | Category ID |
Definition at line 107 of file class.ilRating.php.
References $ilDB.
Referenced by ilRatingGUI\getHTML(), ilExcCriteriaRating\hasValue(), and ilRatingGUI\renderDetails().
|
static |
Definition at line 304 of file class.ilRating.php.
Referenced by ilObjectListGUI\getListItemHTML().
|
static |
Preload rating data for list guis.
array | $a_obj_ids |
Definition at line 221 of file class.ilRating.php.
References $ilDB, $ilUser, $res, and $row.
Referenced by ilObjectListGUIPreloader\preload().
|
static |
Reset rating for a user and an object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
int | $a_user_id | User ID |
Definition at line 83 of file class.ilRating.php.
References $ilDB.
Referenced by ilExcCriteriaRating\resetReview(), ilRatingGUI\resetUserRating(), and ilLMPresentationGUI\updatePageRating().
|
static |
Write rating for a user and an object.
int | $a_obj_id | Object ID |
string | $a_obj_type | Object Type |
int | $a_sub_obj_id | Subobject ID |
string | $a_sub_obj_type | Subobject Type |
int | $a_user_id | User ID |
int | $a_rating | Rating |
int | $a_category_id | Category ID |
Definition at line 30 of file class.ilRating.php.
References $ilDB.
Referenced by ilRatingGUI\saveRating(), ilExcCriteriaRating\updateFromAjax(), and ilLMPresentationGUI\updatePageRating().
|
staticprotected |
Definition at line 17 of file class.ilRating.php.