|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilRatingGUI. More...
Collaboration diagram for ilRatingGUI: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, bool $add_tooltip=false) | |
| Render rating details. More... | |
| addTooltip (string $id, int $cnt=0, float $avg=0, int $user=0) | |
Protected Attributes | |
| $lng | |
| $ctrl | |
| $user | |
| $id = "rtg_" | |
| $export_callback | |
| $export_subobj_title | |
| $ctrl_path | |
| $ui | |
Class ilRatingGUI.
User interface class for rating.
@ilCtrl_Calls ilRatingGUI: ilRatingCategoryGUI
Definition at line 17 of file class.ilRatingGUI.php.
| ilRatingGUI::__construct | ( | ) |
|
protected |
Definition at line 608 of file class.ilRatingGUI.php.
References $id, $lng, $user, and ilTooltipGUI\addTooltip().
Referenced by getHTML(), and renderDetails().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRatingGUI::enableCategories | ( | $a_value | ) |
Toggle categories status.
| bool | $a_value |
Definition at line 152 of file class.ilRatingGUI.php.
| ilRatingGUI::executeCommand | ( | ) |
execute command
Definition at line 61 of file class.ilRatingGUI.php.
References $ctrl.
| ilRatingGUI::getBlockHTML | ( | $a_title | ) |
Definition at line 644 of file class.ilRatingGUI.php.
References $panel, $ui, ANONYMOUS_USER_ID, ilRatingCategory\getAllForObject(), getUserId(), and renderDetails().
Here is the call graph for this function:| 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 474 of file class.ilRatingGUI.php.
References $i, $id, $lng, addTooltip(), ANONYMOUS_USER_ID, ilRatingCategory\getAllForObject(), ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), and renderDetails().
Referenced by getListGUIProperty().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 750 of file class.ilRatingGUI.php.
References getHTML().
Here is the call graph for this function:| ilRatingGUI::getUserId | ( | ) |
Get User ID.
Definition at line 122 of file class.ilRatingGUI.php.
Referenced by getBlockHTML(), getHTML(), renderDetails(), resetUserRating(), and saveRating().
Here is the caller graph for this function:| ilRatingGUI::getYourRatingText | ( | ) |
Get "Your Rating" text.
Definition at line 142 of file class.ilRatingGUI.php.
Referenced by renderDetails().
Here is the caller graph for this function:
|
protected |
Render rating details.
| string | $a_js_id | |
| bool | $a_may_rate | |
| array | $a_categories | |
| bool | $a_onclick | |
| bool | $a_average |
Definition at line 177 of file class.ilRatingGUI.php.
References $ctrl, $i, $lng, addTooltip(), ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), and getYourRatingText().
Referenced by getBlockHTML(), and getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRatingGUI::resetUserRating | ( | ) |
Reset Rating.
Definition at line 724 of file class.ilRatingGUI.php.
References getUserId(), and ilRating\resetRatingForUserAndObject().
Referenced by saveRating().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRatingGUI::saveRating | ( | ) |
Save Rating.
Definition at line 669 of file class.ilRatingGUI.php.
References $_GET, $_POST, $ctrl, exit, getUserId(), resetUserRating(), ilUtil\stripSlashes(), and ilRating\writeRatingForUserAndObject().
Here is the call graph for this function:| ilRatingGUI::setCtrlPath | ( | array | $a_value | ) |
ilCtrl path
| array | $a_value |
Definition at line 162 of file class.ilRatingGUI.php.
| ilRatingGUI::setExportCallback | ( | $a_callback, | |
| $a_subobj_title | |||
| ) |
Definition at line 735 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 89 of file class.ilRatingGUI.php.
References $ilUser, $user, and setUserId().
Here is the call graph for this function:| ilRatingGUI::setUpdateCallback | ( | $a_callback | ) |
Definition at line 716 of file class.ilRatingGUI.php.
| ilRatingGUI::setUserId | ( | $a_userid | ) |
Set User ID.
| int | $a_userid | User ID |
Definition at line 112 of file class.ilRatingGUI.php.
Referenced by setObject().
Here is the caller graph for this function:| ilRatingGUI::setYourRatingText | ( | $a_val | ) |
Set "Your Rating" text.
| string | $a_val | text |
Definition at line 132 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 addTooltip(), and getHTML().
|
protected |
Definition at line 22 of file class.ilRatingGUI.php.
Referenced by __construct(), addTooltip(), getHTML(), and renderDetails().
|
protected |
Definition at line 42 of file class.ilRatingGUI.php.
Referenced by getBlockHTML().
|
protected |
Definition at line 32 of file class.ilRatingGUI.php.
Referenced by addTooltip(), and setObject().