ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilRatingGUI. More...
Public Member Functions | |
__construct () | |
& | executeCommand () |
execute command | |
setObject ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="") | |
Set Object. | |
setUserId ($a_userid) | |
Set User ID. | |
getUserId () | |
Get User ID. | |
getHTML () | |
Get HTML for rating of an object (and a user) | |
saveRating () | |
Save Rating. |
Class ilRatingGUI.
User interface class for rating.
Definition at line 34 of file class.ilRatingGUI.php.
ilRatingGUI::__construct | ( | ) |
Definition at line 36 of file class.ilRatingGUI.php.
References $lng.
& ilRatingGUI::executeCommand | ( | ) |
ilRatingGUI::getHTML | ( | ) |
Get HTML for rating of an object (and a user)
Definition at line 106 of file class.ilRatingGUI.php.
References $ilCtrl, $lng, ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), and getUserId().
ilRatingGUI::getUserId | ( | ) |
Get User ID.
Definition at line 98 of file class.ilRatingGUI.php.
Referenced by getHTML(), and saveRating().
ilRatingGUI::saveRating | ( | ) |
Save Rating.
Definition at line 189 of file class.ilRatingGUI.php.
References $_GET, getUserId(), ilUtil\stripSlashes(), and ilRating\writeRatingForUserAndObject().
ilRatingGUI::setObject | ( | $a_obj_id, | |
$a_obj_type, | |||
$a_sub_obj_id = 0 , |
|||
$a_sub_obj_type = "" |
|||
) |
Set 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 |
Definition at line 69 of file class.ilRatingGUI.php.
References setUserId().
ilRatingGUI::setUserId | ( | $a_userid | ) |
Set User ID.
int | $a_userid | User ID |
Definition at line 88 of file class.ilRatingGUI.php.
Referenced by setObject().