ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilFileNewsRendererGUI Class Reference

Default renderer. More...

+ Inheritance diagram for ilFileNewsRendererGUI:
+ Collaboration diagram for ilFileNewsRendererGUI:

Public Member Functions

 addTimelineActions (ilAdvancedSelectionListGUI $list)
 
- Public Member Functions inherited from ilNewsDefaultRendererGUI
 __construct ()
 Constructor. More...
 
 setNewsItem (ilNewsItem $a_news_item, $a_news_ref_id)
 Set news item.
Parameters
ilNewsItem$a_news_item
int$a_news_ref_id
More...
 
 getNewsItem ()
 Get news item. More...
 
 getNewsRefId ()
 Get news ref id. More...
 
 setLanguage ($a_lang_key)
 Language key.
Parameters
$iilNewsItem news item
More...
 
 getTimelineContent ()
 Render content for timeline.
Returns
string html
More...
 
 getDetailContent ()
 Render content for detail view.
Returns
string html
More...
 
 makeClickable ($a_str)
 Make clickable. More...
 
 addTimelineActions (ilAdvancedSelectionListGUI $list)
 
 getObjectLink ()
 Get object link. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilNewsDefaultRendererGUI
 $lng_key
 
 $ctrl
 
 $lng
 
 $news_item
 
 $news_ref_id
 

Detailed Description

Default renderer.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 14 of file class.ilFileNewsRendererGUI.php.

Member Function Documentation

◆ addTimelineActions()

ilFileNewsRendererGUI::addTimelineActions ( ilAdvancedSelectionListGUI  $list)
Parameters
ilAdvancedSelectionListGUI$list

Implements ilNewsRendererGUI.

Definition at line 20 of file class.ilFileNewsRendererGUI.php.

References $url, and ilAdvancedSelectionListGUI\addItem().

21  {
22  $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->news_ref_id);
23  $url = $this->ctrl->getLinkTargetByClass("ilrepositorygui", "sendfile");
24  $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->news_ref_id);
25 
26  $list->addItem($this->lng->txt("download"), "", $url);
27  }
addItem( $a_title, $a_value="", $a_link="", $a_img="", $a_alt="", $a_frame="", $a_html="", $a_prevent_background_click=false, $a_onclick="", $a_ttip="", $a_tt_my="right center", $a_tt_at="left center", $a_tt_use_htmlspecialchars=true, $a_data=array())
Add an item.
$url
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: