ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Single news timeline item. More...
Public Member Functions | |
setNewsItem (ilNewsItem $a_val) | |
Set news item. More... | |
getNewsItem () | |
Get news item. More... | |
setUserEditAll ($a_val) | |
Set user can edit other users postings. More... | |
getUserEditAll () | |
Get user can edit other users postings. More... | |
getDateTime () | |
Get datetime.
| |
render () | |
Render item.
| |
renderFooter () | |
Render footer. More... | |
Static Public Member Functions | |
static | getInstance (ilNewsItem $a_news_item, $a_news_ref_id, \ilLikeGUI $a_like_gui) |
Get instance. More... | |
Protected Member Functions | |
__construct (ilNewsItem $a_news_item, $a_news_ref_id, \ilLikeGUI $a_like_gui) | |
Constructor. More... | |
renderMedia (ilNewsItem $i) | |
Render media. More... | |
renderMediaModal (ilNewsItem $i) | |
Render media. More... | |
getMediaPath (ilNewsItem $i) | |
Protected Attributes | |
$lng | |
$news_item | |
$obj_def | |
$user | |
$user_edit_all | |
$news_item_ref_id | |
$ref_id | |
$ctrl | |
$like_gui | |
Single news timeline item.
Definition at line 12 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Constructor.
ilNewsItem | $a_news_item | |
$a_news_ref_id | ||
ilLikeGUI | $a_like_gui |
Definition at line 69 of file class.ilNewsTimelineItemGUI.php.
References $_GET, $DIC, setNewsItem(), and user().
ilNewsTimelineItemGUI::getDateTime | ( | ) |
Get datetime.
Implements ilTimelineItemInt.
Definition at line 140 of file class.ilNewsTimelineItemGUI.php.
References $i, getNewsItem(), and IL_CAL_DATETIME.
Referenced by render().
|
static |
Get instance.
ilNewsItem | $a_news_item | news item |
Definition at line 91 of file class.ilNewsTimelineItemGUI.php.
Referenced by ilNewsTimelineGUI\loadMore(), and ilNewsTimelineGUI\show().
|
protected |
ilNewsItem | $i |
Definition at line 378 of file class.ilNewsTimelineItemGUI.php.
References ilObjMediaObject\_getURL(), ilObjMediaObject\getMediaItem(), and ilNewsItem\getMobId().
Referenced by renderMedia(), and renderMediaModal().
ilNewsTimelineItemGUI::getNewsItem | ( | ) |
Get news item.
Definition at line 112 of file class.ilNewsTimelineItemGUI.php.
References $news_item.
Referenced by getDateTime(), render(), and renderFooter().
ilNewsTimelineItemGUI::getUserEditAll | ( | ) |
Get user can edit other users postings.
Definition at line 132 of file class.ilNewsTimelineItemGUI.php.
References $user_edit_all.
Referenced by render().
ilNewsTimelineItemGUI::render | ( | ) |
Render item.
Implements ilTimelineItemInt.
Definition at line 150 of file class.ilNewsTimelineItemGUI.php.
References $i, $list, $tpl, ilObject\_exists(), ilObject\_lookupTitle(), ilNewsItem\determineNewsTitle(), ilAdvancedSelectionListGUI\DOWN_ARROW_DARK, ilDatePresentation\formatDate(), getDateTime(), ilUserUtil\getNamePresentation(), getNewsItem(), ilNewsRendererFactory\getRenderer(), getUserEditAll(), IL_CAL_DATETIME, renderMedia(), and user().
ilNewsTimelineItemGUI::renderFooter | ( | ) |
Render footer.
ilCtrlException |
Definition at line 338 of file class.ilNewsTimelineItemGUI.php.
References $_GET, $html, $i, getNewsItem(), renderMediaModal(), and ilNoteGUI\setDefaultCommand().
|
protected |
Render media.
Definition at line 269 of file class.ilNewsTimelineItemGUI.php.
References $DIC, $html, $title, ilNewsItem\getId(), getMediaPath(), and ilObjMediaObject\getMimeType().
Referenced by render().
|
protected |
Render media.
ilNewsItem |
Definition at line 307 of file class.ilNewsTimelineItemGUI.php.
References $DIC, $title, ilNewsItem\getId(), ilModalGUI\getInstance(), getMediaPath(), ilObjMediaObject\getMimeType(), and ilModalGUI\TYPE_LARGE.
Referenced by renderFooter().
ilNewsTimelineItemGUI::setNewsItem | ( | ilNewsItem | $a_val | ) |
Set news item.
ilNewsItem | $a_val | news item |
Definition at line 102 of file class.ilNewsTimelineItemGUI.php.
Referenced by __construct().
ilNewsTimelineItemGUI::setUserEditAll | ( | $a_val | ) |
Set user can edit other users postings.
bool | $a_val | user can edit all postings |
Definition at line 122 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Definition at line 55 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Definition at line 60 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Definition at line 17 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Definition at line 22 of file class.ilNewsTimelineItemGUI.php.
Referenced by getNewsItem().
|
protected |
Definition at line 44 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Definition at line 27 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Definition at line 50 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Definition at line 32 of file class.ilNewsTimelineItemGUI.php.
|
protected |
Definition at line 37 of file class.ilNewsTimelineItemGUI.php.
Referenced by getUserEditAll().