ILIAS
Release_5_0_x_branch Revision 61816
|
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. | |
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. | |
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. | |
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. | |
static | getExportData ($a_obj_id, $a_obj_type, array $a_category_ids=null) |
Get export data. | |
static | preloadListGUIData (array $a_obj_ids) |
Preload rating data for list guis. | |
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 ilExAssignment\getAllPeerReviews(), ilRatingGUI\getHTML(), ilExAssignmentPeerReviewTableGUI\getItems(), ilRatingGUI\renderDetails(), and ilExAssignment\validatePeerReview().
|
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 ilExAssignment\resetPeerReviews(), 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(), ilLMPresentationGUI\updatePageRating(), and ilObjExerciseGUI\updatePeerReviewCommentsObject().
|
staticprotected |
Definition at line 17 of file class.ilRating.php.