ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilRatingGUI. More...
Public Member Functions | |
__construct () | |
executeCommand () | |
execute command More... | |
setObject ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="") | |
Set Object. More... | |
setUserId ($a_userid) | |
Set User ID. More... | |
getUserId () | |
Get User ID. More... | |
setYourRatingText ($a_val) | |
Set "Your Rating" text. More... | |
getYourRatingText () | |
Get "Your Rating" text. More... | |
enableCategories ($a_value) | |
Toggle categories status. More... | |
setCtrlPath (array $a_value) | |
ilCtrl path More... | |
getHTML ($a_show_overall=true, $a_may_rate=true, $a_onclick=null, $a_additional_id=null) | |
Get HTML for rating of an object (and a user) More... | |
getBlockHTML ($a_title) | |
saveRating () | |
Save Rating. More... | |
setUpdateCallback ($a_callback) | |
resetUserRating () | |
Reset Rating. More... | |
setExportCallback ($a_callback, $a_subobj_title) | |
getListGUIProperty ($a_ref_id, $a_may_rate, $a_ajax_hash, $_parent_ref_id) | |
Build list gui property for object. More... | |
Protected Member Functions | |
renderDetails ($a_js_id, $a_may_rate, array $a_categories=null, $a_onclick=null, $a_average=false) | |
Render rating details. More... | |
Protected Attributes | |
$lng | |
$ctrl | |
$user | |
$id = "rtg_" | |
$export_callback | |
$export_subobj_title | |
$ctrl_path | |
Class ilRatingGUI.
User interface class for rating.
ilRatingGUI: ilRatingCategoryGUI
Definition at line 17 of file class.ilRatingGUI.php.
ilRatingGUI::__construct | ( | ) |
Definition at line 39 of file class.ilRatingGUI.php.
References $DIC, $lng, and user().
ilRatingGUI::enableCategories | ( | $a_value | ) |
Toggle categories status.
bool | $a_value |
Definition at line 145 of file class.ilRatingGUI.php.
ilRatingGUI::executeCommand | ( | ) |
execute command
Definition at line 54 of file class.ilRatingGUI.php.
References $ctrl, and $ilCtrl.
ilRatingGUI::getBlockHTML | ( | $a_title | ) |
Definition at line 568 of file class.ilRatingGUI.php.
References ilRatingCategory\getAllForObject(), getUserId(), and renderDetails().
ilRatingGUI::getHTML | ( | $a_show_overall = true , |
|
$a_may_rate = true , |
|||
$a_onclick = null , |
|||
$a_additional_id = null |
|||
) |
Get HTML for rating of an object (and a user)
bool | $a_show_overall | |
bool | $a_may_rate | |
string | $a_onclick | |
string | $a_additional_id |
Definition at line 431 of file class.ilRatingGUI.php.
References $i, $id, $lng, ilTooltipGUI\addTooltip(), ilRatingCategory\getAllForObject(), ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), and renderDetails().
Referenced by getListGUIProperty().
ilRatingGUI::getListGUIProperty | ( | $a_ref_id, | |
$a_may_rate, | |||
$a_ajax_hash, | |||
$_parent_ref_id | |||
) |
Build list gui property for object.
int | $a_ref_id | |
bool | $a_may_rate | |
string | $a_ajax_hash | |
int | $_parent_ref_id |
Definition at line 673 of file class.ilRatingGUI.php.
References getHTML().
ilRatingGUI::getUserId | ( | ) |
Get User ID.
Definition at line 115 of file class.ilRatingGUI.php.
References $userid.
Referenced by getBlockHTML(), getHTML(), renderDetails(), resetUserRating(), and saveRating().
ilRatingGUI::getYourRatingText | ( | ) |
Get "Your Rating" text.
Definition at line 135 of file class.ilRatingGUI.php.
Referenced by renderDetails().
|
protected |
Render rating details.
string | $a_js_id | |
bool | $a_may_rate | |
array | $a_categories | |
bool | $a_onclick | |
bool | $a_average |
Definition at line 170 of file class.ilRatingGUI.php.
References $ctrl, $i, $ilCtrl, $lng, ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), and getYourRatingText().
Referenced by getBlockHTML(), and getHTML().
ilRatingGUI::resetUserRating | ( | ) |
Reset Rating.
Definition at line 647 of file class.ilRatingGUI.php.
References getUserId(), and ilRating\resetRatingForUserAndObject().
Referenced by saveRating().
ilRatingGUI::saveRating | ( | ) |
Save Rating.
Definition at line 592 of file class.ilRatingGUI.php.
References $_GET, $_POST, $ctrl, $ilCtrl, exit, getUserId(), resetUserRating(), ilUtil\stripSlashes(), and ilRating\writeRatingForUserAndObject().
ilRatingGUI::setCtrlPath | ( | array | $a_value | ) |
ilRatingGUI::setExportCallback | ( | $a_callback, | |
$a_subobj_title | |||
) |
Definition at line 658 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 82 of file class.ilRatingGUI.php.
References $ilUser, $user, and setUserId().
ilRatingGUI::setUpdateCallback | ( | $a_callback | ) |
Definition at line 639 of file class.ilRatingGUI.php.
ilRatingGUI::setUserId | ( | $a_userid | ) |
Set User ID.
int | $a_userid | User ID |
Definition at line 105 of file class.ilRatingGUI.php.
Referenced by setObject().
ilRatingGUI::setYourRatingText | ( | $a_val | ) |
Set "Your Rating" text.
string | $a_val | text |
Definition at line 125 of file class.ilRatingGUI.php.
|
protected |
Definition at line 27 of file class.ilRatingGUI.php.
Referenced by executeCommand(), renderDetails(), and saveRating().
|
protected |
Definition at line 37 of file class.ilRatingGUI.php.
|
protected |
Definition at line 35 of file class.ilRatingGUI.php.
|
protected |
Definition at line 36 of file class.ilRatingGUI.php.
|
protected |
Definition at line 34 of file class.ilRatingGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 22 of file class.ilRatingGUI.php.
Referenced by __construct(), getHTML(), and renderDetails().
|
protected |
Definition at line 32 of file class.ilRatingGUI.php.
Referenced by setObject().