ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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 | |
ILIAS Like InternalGUIService | $gui |
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 42 of file class.ilLikeGUI.php.
References $data, $DIC, $main_tpl, ILIAS\Repository\ctrl(), initJavascript(), ILIAS\Repository\lng(), null, ILIAS\Repository\ui(), and ILIAS\Repository\user().
ilLikeGUI::executeCommand | ( | ) |
Definition at line 97 of file class.ilLikeGUI.php.
References $ctrl, and ilCtrl\getNextClass().
|
static |
Get expression text for const.
Definition at line 364 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 196 of file class.ilLikeGUI.php.
References Vendor\Package\$f, null, 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 114 of file class.ilLikeGUI.php.
References $ctrl, Vendor\Package\$f, $lng, $r, ILIAS\Repository\ctrl(), ilCtrl\getLinkTarget(), renderEmoCounters(), ilCtrl\setParameter(), ilLanguage\txt(), ILIAS\Repository\ui(), and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().
|
protected |
Definition at line 70 of file class.ilLikeGUI.php.
Referenced by __construct().
|
protected |
Render emo counters.
ilLikeDataException |
Definition at line 152 of file class.ilLikeGUI.php.
References $ctrl, Vendor\Package\$f, $r, $txt, getGlyphForConst(), null, and ILIAS\Repository\ui().
Referenced by getHTML(), renderModal(), and saveExpression().
ilLikeGUI::renderEmoticons | ( | ) |
Render emoticons (asynch)
Definition at line 227 of file class.ilLikeGUI.php.
References $ctrl, $id, $news_id, $obj_id, $obj_type, $r, $sub_obj_id, $sub_obj_type, $txt, $url, exit, getGlyphForConst(), and ILIAS\Repository\ui().
ilLikeGUI::renderModal | ( | ) |
Render modal (asynch)
ilDateTimeException | |
ilLikeDataException | |
ilWACException |
Definition at line 310 of file class.ilLikeGUI.php.
References Vendor\Package\$f, $r, $user, ilObjUser\_getPersonalPicturePath(), exit, ilDatePresentation\formatDate(), getGlyphForConst(), ilUserUtil\getNamePresentation(), IL_CAL_DATETIME, null, renderEmoCounters(), and ILIAS\Repository\ui().
|
protected |
Save expression (asynch)
ilLikeDataException |
Definition at line 271 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 81 of file class.ilLikeGUI.php.
References $news_id.
|
protected |
Definition at line 33 of file class.ilLikeGUI.php.
Referenced by executeCommand(), getHTML(), renderEmoCounters(), and renderEmoticons().
|
protected |
Definition at line 28 of file class.ilLikeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 40 of file class.ilLikeGUI.php.
|
protected |
Definition at line 27 of file class.ilLikeGUI.php.
|
protected |
Definition at line 32 of file class.ilLikeGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 30 of file class.ilLikeGUI.php.
Referenced by __construct().
|
protected |
Definition at line 39 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), saveExpression(), and setObject().
|
protected |
Definition at line 35 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 36 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 31 of file class.ilLikeGUI.php.
|
protected |
Definition at line 37 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 38 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 29 of file class.ilLikeGUI.php.
|
protected |
Definition at line 34 of file class.ilLikeGUI.php.
Referenced by renderModal().