|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
User interface for like feature. More...
Collaboration diagram for ilLikeGUI:Public Member Functions | |
| __construct (\ilLikeData $data, \ilTemplate $main_tpl=null) | |
| ilLikeGUI constructor. More... | |
| setObject ($a_obj_id, $a_obj_type, $a_sub_obj_id=0, $a_sub_obj_type="", $a_news_id=0) | |
| Set Object. More... | |
| executeCommand () | |
| Execute command. More... | |
| getHTML () | |
| Get HTML. More... | |
| renderEmoticons () | |
| Render emoticons. More... | |
| renderModal () | |
| Render modal. More... | |
Static Public Member Functions | |
| static | getExpressionText ($a_const) |
| Get unicode for const. More... | |
Protected Member Functions | |
| initJavascript () | |
| Init javascript. More... | |
| renderEmoCounters ($modal_signal=null, $unavailable=false) | |
| Render emo counters. More... | |
| getGlyphForConst ($a_const, $unavailable=false) | |
| Get glyph for const. More... | |
| saveExpression () | |
| Save expresseion. More... | |
Protected Attributes | |
| $lng | |
| $ctrl | |
| $user | |
| $obj_id | |
| $obj_type | |
| $sub_obj_id | |
| $sub_obj_type | |
| $news_id | |
| $dom_id | |
| $language | |
| ilLikeGUI::__construct | ( | \ilLikeData | $data, |
| \ilTemplate | $main_tpl = null |
||
| ) |
ilLikeGUI constructor.
| ilLikeData | $data | |
| ilTemplate | null | $main_tpl |
Definition at line 70 of file class.ilLikeGUI.php.
References $data, $DIC, initJavascript(), ui(), and user().
Here is the call graph for this function:| ilLikeGUI::executeCommand | ( | ) |
Execute command.
Definition at line 123 of file class.ilLikeGUI.php.
References $ctrl.
|
static |
Get unicode for const.
| int | $a_const |
| int | $a_const |
Definition at line 410 of file class.ilLikeGUI.php.
References $DIC, $lng, 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\parseNewsItem().
Here is the caller graph for this function:
|
protected |
Get glyph for const.
| int | $a_const |
Definition at line 241 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 ui().
Referenced by renderEmoCounters(), renderEmoticons(), and renderModal().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLikeGUI::getHTML | ( | ) |
Get HTML.
| $a_obj_id | ||
| $a_obj_type | ||
| int | $a_sub_obj_id | |
| string | $a_sub_obj_type | |
| int | $a_news_id |
| ilLikeDataException |
Definition at line 151 of file class.ilLikeGUI.php.
References $ctrl, Vendor\Package\$f, $lng, $tpl, renderEmoCounters(), and ui().
Here is the call graph for this function:
|
protected |
Init javascript.
Definition at line 94 of file class.ilLikeGUI.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Render emo counters.
| $modal_signal |
| ilLikeDataException |
Definition at line 192 of file class.ilLikeGUI.php.
References $ctrl, Vendor\Package\$f, $tpl, $txt, getGlyphForConst(), and ui().
Referenced by getHTML(), renderModal(), and saveExpression().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLikeGUI::renderEmoticons | ( | ) |
Render emoticons.
Definition at line 265 of file class.ilLikeGUI.php.
References $ctrl, $tpl, $txt, $url, exit, getGlyphForConst(), and ui().
Here is the call graph for this function:| ilLikeGUI::renderModal | ( | ) |
Render modal.
| ilLikeDataException |
Definition at line 346 of file class.ilLikeGUI.php.
References Vendor\Package\$f, $name, $user, ilObjUser\_getPersonalPicturePath(), exit, ilDatePresentation\formatDate(), getGlyphForConst(), ilUserUtil\getNamePresentation(), IL_CAL_DATETIME, renderEmoCounters(), and ui().
Here is the call graph for this function:
|
protected |
Save expresseion.
| ilLikeDataException |
Definition at line 309 of file class.ilLikeGUI.php.
References $_GET, exit, renderEmoCounters(), ilUtil\stripSlashes(), and user().
Here is the call graph for this function:| ilLikeGUI::setObject | ( | $a_obj_id, | |
| $a_obj_type, | |||
$a_sub_obj_id = 0, |
|||
$a_sub_obj_type = "", |
|||
$a_news_id = 0 |
|||
| ) |
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 108 of file class.ilLikeGUI.php.
References $news_id.
|
protected |
Definition at line 23 of file class.ilLikeGUI.php.
Referenced by executeCommand(), getHTML(), renderEmoCounters(), and renderEmoticons().
|
protected |
Definition at line 58 of file class.ilLikeGUI.php.
|
protected |
Definition at line 63 of file class.ilLikeGUI.php.
|
protected |
Definition at line 18 of file class.ilLikeGUI.php.
Referenced by getExpressionText(), and getHTML().
|
protected |
Definition at line 53 of file class.ilLikeGUI.php.
Referenced by setObject().
|
protected |
Definition at line 33 of file class.ilLikeGUI.php.
|
protected |
Definition at line 38 of file class.ilLikeGUI.php.
|
protected |
Definition at line 43 of file class.ilLikeGUI.php.
|
protected |
Definition at line 48 of file class.ilLikeGUI.php.
|
protected |
Definition at line 28 of file class.ilLikeGUI.php.
Referenced by renderModal().