ILIAS
Release_4_2_x_branch Revision 61807
|
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. | |
setYourRatingText ($a_val) | |
Set "Your Rating" text. | |
getYourRatingText () | |
Get "Your Rating" text. | |
getHTML () | |
Get HTML for rating of an object (and a user) | |
saveRating () | |
Save Rating. |
Protected Attributes | |
$id = "rtg_" |
Class ilRatingGUI.
User interface class for rating.
Definition at line 14 of file class.ilRatingGUI.php.
ilRatingGUI::__construct | ( | ) |
Definition at line 18 of file class.ilRatingGUI.php.
References $lng.
& ilRatingGUI::executeCommand | ( | ) |
ilRatingGUI::getHTML | ( | ) |
Get HTML for rating of an object (and a user)
Definition at line 110 of file class.ilRatingGUI.php.
References $ilCtrl, $lng, ilTooltipGUI\addTooltip(), ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), and getYourRatingText().
ilRatingGUI::getUserId | ( | ) |
Get User ID.
Definition at line 82 of file class.ilRatingGUI.php.
Referenced by getHTML(), and saveRating().
ilRatingGUI::getYourRatingText | ( | ) |
Get "Your Rating" text.
Definition at line 102 of file class.ilRatingGUI.php.
Referenced by getHTML().
ilRatingGUI::saveRating | ( | ) |
Save Rating.
Definition at line 245 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 51 of file class.ilRatingGUI.php.
References setUserId().
ilRatingGUI::setUserId | ( | $a_userid | ) |
Set User ID.
int | $a_userid | User ID |
Definition at line 72 of file class.ilRatingGUI.php.
Referenced by setObject().
ilRatingGUI::setYourRatingText | ( | $a_val | ) |
Set "Your Rating" text.
string | $a_val | text |
Definition at line 92 of file class.ilRatingGUI.php.
|
protected |
Definition at line 16 of file class.ilRatingGUI.php.