ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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) | |
getTooltipTopics (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(), null, ILIAS\Repository\ui(), and ILIAS\Repository\user().
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().
ilRatingGUI::getBlockHTML | ( | string | $a_title | ) |
Definition at line 635 of file class.ilRatingGUI.php.
References $ui, ANONYMOUS_USER_ID, ilRatingCategory\getAllForObject(), getUserId(), null, and renderDetails().
ilRatingGUI::getHTML | ( | bool | $a_show_overall = true , |
bool | $a_may_rate = true , |
||
?string | $a_onclick = null , |
||
?string | $a_additional_id = null |
||
) |
Definition at line 458 of file class.ilRatingGUI.php.
References Vendor\Package\$f, $id, $lng, $r, ANONYMOUS_USER_ID, ilRatingCategory\getAllForObject(), ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getTooltipTopics(), getUserId(), renderDetails(), ilLanguage\txt(), and ILIAS\Repository\ui().
Referenced by getListGUIProperty().
ilRatingGUI::getListGUIProperty | ( | int | $a_ref_id, |
bool | $a_may_rate, | ||
string | $a_ajax_hash, | ||
int | $parent_ref_id | ||
) |
Definition at line 730 of file class.ilRatingGUI.php.
References getHTML().
|
protected |
Definition at line 610 of file class.ilRatingGUI.php.
References $lng, ILIAS\GlobalScreen\Scope\$topics, $user, and ilLanguage\txt().
Referenced by getHTML(), and renderDetails().
ilRatingGUI::getUserId | ( | ) |
Definition at line 126 of file class.ilRatingGUI.php.
References $userid.
Referenced by getBlockHTML(), getHTML(), renderDetails(), resetUserRating(), and saveRating().
ilRatingGUI::getYourRatingText | ( | ) |
Definition at line 136 of file class.ilRatingGUI.php.
References $your_rating_text.
Referenced by renderDetails().
|
protected |
Definition at line 152 of file class.ilRatingGUI.php.
References Vendor\Package\$b, $ctrl, Vendor\Package\$f, $lng, $r, ILIAS\GlobalScreen\Scope\$topics, ilUtil\getImagePath(), ilRating\getOverallRatingForObject(), ilRating\getRatingForUserAndObject(), getTooltipTopics(), getUserId(), getYourRatingText(), null, ilLanguage\txt(), and ILIAS\Repository\ui().
Referenced by getBlockHTML(), and getHTML().
ilRatingGUI::resetUserRating | ( | ) |
Definition at line 712 of file class.ilRatingGUI.php.
References getUserId(), and ilRating\resetRatingForUserAndObject().
Referenced by saveRating().
ilRatingGUI::saveRating | ( | ) |
Save Rating.
Definition at line 660 of file class.ilRatingGUI.php.
References $ctrl, $requested_rating, exit, getUserId(), resetUserRating(), and ilRating\writeRatingForUserAndObject().
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 723 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().
ilRatingGUI::setUpdateCallback | ( | $a_callback | ) |
Definition at line 707 of file class.ilRatingGUI.php.
ilRatingGUI::setUserId | ( | int | $a_userid | ) |
Definition at line 121 of file class.ilRatingGUI.php.
Referenced by setObject().
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 getHTML(), getTooltipTopics(), 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 getTooltipTopics(), 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().