ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 211 of file class.ilRating.php.
References $DIC, $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 165 of file class.ilRating.php.
Referenced by ilObjForumGUI\executeCommand(), ilWikiStat\getAverageRating(), ilDclRatingRecordFieldModel\getExportValue(), ilRatingGUI\getHTML(), ilDclRatingRecordFieldModel\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 126 of file class.ilRating.php.
Referenced by ilExerciseManagementCollectFilesJob\addCriteriaToExcel(), ilRatingGUI\getHTML(), ilExcCriteriaRating\hasValue(), and ilRatingGUI\renderDetails().
|
static |
Definition at line 309 of file class.ilRating.php.
Referenced by ilObjectListGUI\getListItemHTML().
|
static |
Preload rating data for list guis.
array | $a_obj_ids |
Definition at line 238 of file class.ilRating.php.
References $DIC, $id, $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 96 of file class.ilRating.php.
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.
Referenced by ilRatingGUI\saveRating(), ilExcCriteriaRating\updateFromAjax(), and ilLMPresentationGUI\updatePageRating().
|
staticprotected |
Definition at line 17 of file class.ilRating.php.