ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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, $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().
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 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().
|
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().
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().
|
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, Vendor\Package\$f, $ilCtrl, $tpl, $txt, getGlyphForConst(), and ui().
Referenced by getHTML(), renderModal(), and saveExpression().
ilLikeGUI::renderEmoticons | ( | ) |
Render emoticons.
Definition at line 265 of file class.ilLikeGUI.php.
References $ctrl, $ilCtrl, $news_id, $obj_id, $obj_type, $sub_obj_id, $sub_obj_type, $tpl, $txt, $url, exit, getGlyphForConst(), and ui().
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().
|
protected |
Save expresseion.
ilLikeDataException |
Definition at line 309 of file class.ilLikeGUI.php.
References $_GET, $news_id, $obj_id, $obj_type, $sub_obj_id, $sub_obj_type, 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().