ILIAS
release_8 Revision v8.19
|
User interface for like feature. More...
Public Member Functions | |
__construct (\ilLikeData $data, ?\ilTemplate $main_tpl=null) | |
setObject (int $a_obj_id, string $a_obj_type, int $a_sub_obj_id=0, string $a_sub_obj_type="", int $a_news_id=0) | |
executeCommand () | |
getHTML () | |
renderEmoticons () | |
Render emoticons (asynch) More... | |
renderModal () | |
Render modal (asynch) More... | |
Static Public Member Functions | |
static | getExpressionText (int $a_const) |
Get expression text for const. More... | |
Protected Member Functions | |
initJavascript () | |
renderEmoCounters (ILIAS\UI\Component\Signal $modal_signal=null, bool $unavailable=false) | |
Render emo counters. More... | |
getGlyphForConst (int $a_const, bool $unavailable=false) | |
saveExpression () | |
Save expression (asynch) More... | |
Protected Attributes | |
ilLikeData | $data |
ILIAS DI UIServices | $ui |
ilGlobalTemplateInterface | $main_tpl |
StandardGUIRequest | $request |
ilLanguage | $lng |
ilCtrl | $ctrl |
ilObjUser | $user |
int | $obj_id |
string | $obj_type |
int | $sub_obj_id |
string | $sub_obj_type |
int | $news_id |
string | $dom_id |
User interface for like feature.
Definition at line 25 of file class.ilLikeGUI.php.
ilLikeGUI::__construct | ( | \ilLikeData | $data, |
?\ilTemplate | $main_tpl = null |
||
) |
Definition at line 41 of file class.ilLikeGUI.php.
References $data, $DIC, $main_tpl, ILIAS\Repository\ctrl(), initJavascript(), ILIAS\Repository\lng(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
ilLikeGUI::executeCommand | ( | ) |
Definition at line 88 of file class.ilLikeGUI.php.
References $ctrl, and ilCtrl\getNextClass().
|
static |
Get expression text for const.
Definition at line 348 of file class.ilLikeGUI.php.
References $DIC, ilLanguage\txt(), ilLikeData\TYPE_ANGRY, ilLikeData\TYPE_ASTOUNDED, ilLikeData\TYPE_DISLIKE, ilLikeData\TYPE_LAUGH, ilLikeData\TYPE_LIKE, ilLikeData\TYPE_LOVE, and ilLikeData\TYPE_SAD.
Referenced by ilMembershipCronNotifications\run().
|
protected |
Definition at line 187 of file class.ilLikeGUI.php.
References Vendor\Package\$f, ilLikeData\TYPE_ANGRY, ilLikeData\TYPE_ASTOUNDED, ilLikeData\TYPE_DISLIKE, ilLikeData\TYPE_LAUGH, ilLikeData\TYPE_LIKE, ilLikeData\TYPE_LOVE, ilLikeData\TYPE_SAD, and ILIAS\Repository\ui().
Referenced by renderEmoCounters(), renderEmoticons(), and renderModal().
ilLikeGUI::getHTML | ( | ) |
Definition at line 105 of file class.ilLikeGUI.php.
References $ctrl, Vendor\Package\$f, $lng, $tpl, ILIAS\Repository\ctrl(), ilCtrl\getLinkTarget(), renderEmoCounters(), ilCtrl\setParameter(), ilLanguage\txt(), and ILIAS\Repository\ui().
|
protected |
Definition at line 67 of file class.ilLikeGUI.php.
Referenced by __construct().
|
protected |
Render emo counters.
ilLikeDataException |
Definition at line 143 of file class.ilLikeGUI.php.
References $ctrl, Vendor\Package\$f, $tpl, $txt, getGlyphForConst(), and ILIAS\Repository\ui().
Referenced by getHTML(), renderModal(), and saveExpression().
ilLikeGUI::renderEmoticons | ( | ) |
Render emoticons (asynch)
Definition at line 211 of file class.ilLikeGUI.php.
References $ctrl, $id, $news_id, $obj_id, $obj_type, $sub_obj_id, $sub_obj_type, $tpl, $txt, $url, exit, getGlyphForConst(), and ILIAS\Repository\ui().
ilLikeGUI::renderModal | ( | ) |
Render modal (asynch)
ilDateTimeException | |
ilLikeDataException | |
ilWACException |
Definition at line 294 of file class.ilLikeGUI.php.
References Vendor\Package\$f, $name, $user, ilObjUser\_getPersonalPicturePath(), exit, ilDatePresentation\formatDate(), getGlyphForConst(), ilUserUtil\getNamePresentation(), IL_CAL_DATETIME, renderEmoCounters(), and ILIAS\Repository\ui().
|
protected |
Save expression (asynch)
ilLikeDataException |
Definition at line 255 of file class.ilLikeGUI.php.
References $news_id, $obj_id, $obj_type, $sub_obj_id, $sub_obj_type, exit, renderEmoCounters(), and ILIAS\Repository\user().
ilLikeGUI::setObject | ( | int | $a_obj_id, |
string | $a_obj_type, | ||
int | $a_sub_obj_id = 0 , |
||
string | $a_sub_obj_type = "" , |
||
int | $a_news_id = 0 |
||
) |
Definition at line 72 of file class.ilLikeGUI.php.
References $news_id.
|
protected |
Definition at line 32 of file class.ilLikeGUI.php.
Referenced by executeCommand(), getHTML(), renderEmoCounters(), and renderEmoticons().
|
protected |
Definition at line 27 of file class.ilLikeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 39 of file class.ilLikeGUI.php.
|
protected |
Definition at line 31 of file class.ilLikeGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 29 of file class.ilLikeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), saveExpression(), and setObject().
|
protected |
Definition at line 34 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 35 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 30 of file class.ilLikeGUI.php.
|
protected |
Definition at line 36 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 37 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 28 of file class.ilLikeGUI.php.
|
protected |
Definition at line 33 of file class.ilLikeGUI.php.
Referenced by renderModal().