ILIAS
release_4-3 Revision
|
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. | |
enableCategories ($a_value) | |
Toggle categories status. | |
getHTML () | |
Get HTML for rating of an object (and a user) | |
getBlockHTML ($a_title) | |
saveRating () | |
Save Rating. | |
setExportCallback ($a_callback, $a_subobj_title) |
Protected Member Functions | |
renderDetails ($a_js_id, $a_may_rate, array $a_categories=null) | |
Render rating details. |
Protected Attributes | |
$id = "rtg_" | |
$export_callback | |
$export_subobj_title |
Class ilRatingGUI.
User interface class for rating.
ilRatingGUI: ilRatingCategoryGUI
Definition at line 17 of file class.ilRatingGUI.php.
ilRatingGUI::__construct | ( | ) |
Definition at line 23 of file class.ilRatingGUI.php.
References $lng.
ilRatingGUI::enableCategories | ( | $a_value | ) |
Toggle categories status.
bool | $a_value |
Definition at line 121 of file class.ilRatingGUI.php.
& ilRatingGUI::executeCommand | ( | ) |
execute command
Definition at line 33 of file class.ilRatingGUI.php.
ilRatingGUI::getBlockHTML | ( | $a_title | ) |
Definition at line 395 of file class.ilRatingGUI.php.
References ilRatingCategory\getAllForObject(), getUserId(), and renderDetails().
ilRatingGUI::getHTML | ( | ) |
Get HTML for rating of an object (and a user)
Definition at line 273 of file class.ilRatingGUI.php.
References $lng, ilTooltipGUI\addTooltip(), ilRatingCategory\getAllForObject(), ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), and renderDetails().
ilRatingGUI::getUserId | ( | ) |
Get User ID.
Definition at line 91 of file class.ilRatingGUI.php.
Referenced by getBlockHTML(), getHTML(), renderDetails(), and saveRating().
ilRatingGUI::getYourRatingText | ( | ) |
Get "Your Rating" text.
Definition at line 111 of file class.ilRatingGUI.php.
Referenced by renderDetails().
|
protected |
Render rating details.
string | $a_js_id | |
bool | $a_may_rate | |
array | $a_categories |
Definition at line 134 of file class.ilRatingGUI.php.
References $ilCtrl, $lng, ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), and getYourRatingText().
Referenced by getBlockHTML(), and getHTML().
ilRatingGUI::saveRating | ( | ) |
Save Rating.
Definition at line 418 of file class.ilRatingGUI.php.
References $_GET, $_POST, $_REQUEST, getUserId(), ilUtil\stripSlashes(), and ilRating\writeRatingForUserAndObject().
ilRatingGUI::setExportCallback | ( | $a_callback, | |
$a_subobj_title | |||
) |
Definition at line 437 of file class.ilRatingGUI.php.
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 62 of file class.ilRatingGUI.php.
References $ilUser, and setUserId().
ilRatingGUI::setUserId | ( | $a_userid | ) |
Set User ID.
int | $a_userid | User ID |
Definition at line 81 of file class.ilRatingGUI.php.
Referenced by setObject().
ilRatingGUI::setYourRatingText | ( | $a_val | ) |
Set "Your Rating" text.
string | $a_val | text |
Definition at line 101 of file class.ilRatingGUI.php.
|
protected |
Definition at line 20 of file class.ilRatingGUI.php.
|
protected |
Definition at line 21 of file class.ilRatingGUI.php.
|
protected |
Definition at line 19 of file class.ilRatingGUI.php.