ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
User interface for like feature. More...
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) | |
Render emo counters. More... | |
getGlyphForConst ($a_const) | |
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, data, initJavascript(), and user().
ilLikeGUI::executeCommand | ( | ) |
Execute command.
Definition at line 123 of file class.ilLikeGUI.php.
References $ctrl, and $ilCtrl.
|
static |
Get unicode for const.
int | $a_const |
int | $a_const |
Definition at line 407 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().
|
protected |
Get glyph for const.
int | $a_const |
Definition at line 241 of file class.ilLikeGUI.php.
References $f, ilLikeData\TYPE_ANGRY, ilLikeData\TYPE_ASTOUNDED, ilLikeData\TYPE_DISLIKE, ilLikeData\TYPE_LAUGH, ilLikeData\TYPE_LIKE, ilLikeData\TYPE_LOVE, and ilLikeData\TYPE_SAD.
Referenced by renderEmoCounters(), renderEmoticons(), and renderModal().
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, $f, $lng, $r, $tpl, and renderEmoCounters().
|
protected |
Init javascript.
Definition at line 94 of file class.ilLikeGUI.php.
Referenced by __construct().
|
protected |
Render emo counters.
$modal_signal |
ilLikeDataException |
Definition at line 192 of file class.ilLikeGUI.php.
References $ctrl, $f, $ilCtrl, $r, $tpl, $txt, data, and getGlyphForConst().
Referenced by getHTML(), renderModal(), and saveExpression().
ilLikeGUI::renderEmoticons | ( | ) |
Render emoticons.
Definition at line 262 of file class.ilLikeGUI.php.
References $ctrl, $id, $ilCtrl, $news_id, $obj_id, $obj_type, $r, $sub_obj_id, $sub_obj_type, $tpl, $txt, $url, data, exit, and getGlyphForConst().
ilLikeGUI::renderModal | ( | ) |
Render modal.
ilLikeDataException |
Definition at line 343 of file class.ilLikeGUI.php.
References $f, $header, $name, $r, $user, data, exit, ilDatePresentation\formatDate(), getGlyphForConst(), ilUserUtil\getNamePresentation(), IL_CAL_DATETIME, and renderEmoCounters().
|
protected |
Save expresseion.
ilLikeDataException |
Definition at line 306 of file class.ilLikeGUI.php.
References $_GET, $news_id, $obj_id, $obj_type, $sub_obj_id, $sub_obj_type, data, exit, renderEmoCounters(), ilUtil\stripSlashes(), and user().
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 renderEmoticons(), saveExpression(), and setObject().
|
protected |
Definition at line 33 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 43 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 48 of file class.ilLikeGUI.php.
Referenced by renderEmoticons(), and saveExpression().
|
protected |
Definition at line 28 of file class.ilLikeGUI.php.
Referenced by renderModal().