|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilRatingGUI:Public Member Functions | |
| __construct () | |
| executeCommand () | |
| execute command More... | |
| setObject (int $a_obj_id, string $a_obj_type, ?int $a_sub_obj_id=0, ?string $a_sub_obj_type="") | |
| Set Object. More... | |
| setUserId (int $a_userid) | |
| getUserId () | |
| setYourRatingText (string $a_val) | |
| getYourRatingText () | |
| enableCategories (bool $a_value) | |
| setCtrlPath (array $a_value) | |
| getHTML (bool $a_show_overall=true, bool $a_may_rate=true, string $a_onclick=null, string $a_additional_id=null) | |
| getBlockHTML (string $a_title) | |
| saveRating () | |
| Save Rating. More... | |
| setUpdateCallback ($a_callback) | |
| resetUserRating () | |
| setExportCallback ($a_callback, string $a_subobj_title) | |
| getListGUIProperty (int $a_ref_id, bool $a_may_rate, string $a_ajax_hash, int $parent_ref_id) | |
Protected Member Functions | |
| renderDetails (string $a_js_id, bool $a_may_rate, array $a_categories=null, string $a_onclick=null, bool $a_average=false, bool $add_tooltip=false) | |
| addTooltip (string $id, int $cnt=0, float $avg=0, int $user=0) | |
Protected Attributes | |
| ilLanguage | $lng |
| ilCtrl | $ctrl |
| ilObjUser | $user |
| string | $id = "rtg_" |
| $export_callback | |
| string | $export_subobj_title = "" |
| array | $ctrl_path = [] |
| bool | $enable_categories = false |
| string | $your_rating_text = "" |
| ILIAS DI UIServices | $ui |
| int | $obj_id |
| string | $obj_type |
| int | $sub_obj_id |
| string | $sub_obj_type |
| int | $userid |
| $update_callback = null | |
| array | $requested_ratings = null |
| int | $requested_rating |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilRatingGUI. User interface class for rating.
Definition at line 25 of file class.ilRatingGUI.php.
| ilRatingGUI::__construct | ( | ) |
Definition at line 47 of file class.ilRatingGUI.php.
References $DIC, $params, ILIAS\Repository\ctrl(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
protected |
Definition at line 595 of file class.ilRatingGUI.php.
References $lng, $user, ilTooltipGUI\addTooltip(), and ilLanguage\txt().
Referenced by getHTML(), and renderDetails().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRatingGUI::enableCategories | ( | bool | $a_value | ) |
Definition at line 141 of file class.ilRatingGUI.php.
| ilRatingGUI::executeCommand | ( | ) |
execute command
Definition at line 72 of file class.ilRatingGUI.php.
References $ctrl, and ilCtrl\getNextClass().
Here is the call graph for this function:| ilRatingGUI::getBlockHTML | ( | string | $a_title | ) |
Definition at line 630 of file class.ilRatingGUI.php.
References $ui, ANONYMOUS_USER_ID, ilRatingCategory\getAllForObject(), getUserId(), and renderDetails().
Here is the call graph for this function:| ilRatingGUI::getHTML | ( | bool | $a_show_overall = true, |
| bool | $a_may_rate = true, |
||
| string | $a_onclick = null, |
||
| string | $a_additional_id = null |
||
| ) |
Definition at line 440 of file class.ilRatingGUI.php.
References Vendor\Package\$f, $id, $lng, $r, addTooltip(), ANONYMOUS_USER_ID, ilRatingCategory\getAllForObject(), ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), renderDetails(), ilLanguage\txt(), ILIAS\Repository\ui(), and ILIAS\UI\Implementation\Component\withOnLoadCode().
Referenced by getListGUIProperty().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRatingGUI::getListGUIProperty | ( | int | $a_ref_id, |
| bool | $a_may_rate, | ||
| string | $a_ajax_hash, | ||
| int | $parent_ref_id | ||
| ) |
Definition at line 725 of file class.ilRatingGUI.php.
References getHTML().
Here is the call graph for this function:| ilRatingGUI::getUserId | ( | ) |
Definition at line 126 of file class.ilRatingGUI.php.
References $userid.
Referenced by getBlockHTML(), getHTML(), renderDetails(), resetUserRating(), and saveRating().
Here is the caller graph for this function:| ilRatingGUI::getYourRatingText | ( | ) |
Definition at line 136 of file class.ilRatingGUI.php.
References $your_rating_text.
Referenced by renderDetails().
Here is the caller graph for this function:
|
protected |
Definition at line 152 of file class.ilRatingGUI.php.
References $ctrl, $lng, addTooltip(), ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getUserId(), getYourRatingText(), and ilLanguage\txt().
Referenced by getBlockHTML(), and getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRatingGUI::resetUserRating | ( | ) |
Definition at line 707 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 655 of file class.ilRatingGUI.php.
References $ctrl, $requested_rating, exit, getUserId(), resetUserRating(), and ilRating\writeRatingForUserAndObject().
Here is the call graph for this function:| ilRatingGUI::setCtrlPath | ( | array | $a_value | ) |
Definition at line 146 of file class.ilRatingGUI.php.
| ilRatingGUI::setExportCallback | ( | $a_callback, | |
| string | $a_subobj_title | ||
| ) |
Definition at line 718 of file class.ilRatingGUI.php.
| ilRatingGUI::setObject | ( | int | $a_obj_id, |
| string | $a_obj_type, | ||
| ?int | $a_sub_obj_id = 0, |
||
| ?string | $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 99 of file class.ilRatingGUI.php.
References $sub_obj_type, $user, and setUserId().
Here is the call graph for this function:| ilRatingGUI::setUpdateCallback | ( | $a_callback | ) |
Definition at line 702 of file class.ilRatingGUI.php.
| ilRatingGUI::setUserId | ( | int | $a_userid | ) |
Definition at line 121 of file class.ilRatingGUI.php.
Referenced by setObject().
Here is the caller graph for this function:| ilRatingGUI::setYourRatingText | ( | string | $a_val | ) |
Definition at line 131 of file class.ilRatingGUI.php.
|
protected |
Definition at line 28 of file class.ilRatingGUI.php.
Referenced by executeCommand(), renderDetails(), and saveRating().
|
protected |
Definition at line 33 of file class.ilRatingGUI.php.
|
protected |
Definition at line 34 of file class.ilRatingGUI.php.
|
protected |
Definition at line 31 of file class.ilRatingGUI.php.
|
protected |
Definition at line 32 of file class.ilRatingGUI.php.
|
protected |
Definition at line 30 of file class.ilRatingGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 27 of file class.ilRatingGUI.php.
Referenced by addTooltip(), getHTML(), and renderDetails().
|
protected |
Definition at line 38 of file class.ilRatingGUI.php.
|
protected |
Definition at line 39 of file class.ilRatingGUI.php.
|
protected |
Definition at line 45 of file class.ilRatingGUI.php.
Referenced by saveRating().
|
protected |
Definition at line 44 of file class.ilRatingGUI.php.
|
protected |
Definition at line 40 of file class.ilRatingGUI.php.
|
protected |
Definition at line 41 of file class.ilRatingGUI.php.
Referenced by setObject().
|
protected |
Definition at line 36 of file class.ilRatingGUI.php.
Referenced by getBlockHTML().
|
protected |
Definition at line 43 of file class.ilRatingGUI.php.
|
protected |
Definition at line 29 of file class.ilRatingGUI.php.
Referenced by addTooltip(), and setObject().
|
protected |
Definition at line 42 of file class.ilRatingGUI.php.
Referenced by getUserId().
|
protected |
Definition at line 35 of file class.ilRatingGUI.php.
Referenced by getYourRatingText().