ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilFileNewsRendererGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 addTimelineActions (ilAdvancedSelectionListGUI $list)
 
- Public Member Functions inherited from ilNewsDefaultRendererGUI
 __construct ()
 
 setNewsItem (ilNewsItem $a_news_item, int $a_news_ref_id)
 
 getNewsItem ()
 
 getNewsRefId ()
 
 setLanguage (string $lang_key)
 
 getTimelineContent ()
 Render content for timeline. More...
 
 getDetailContent ()
 Render content for detail view. More...
 
 makeClickable (string $a_str)
 
 addTimelineActions (ilAdvancedSelectionListGUI $list)
 
 getObjectLink ()
 Get link href for object link. More...
 
 preventEditing ()
 

Additional Inherited Members

- Protected Attributes inherited from ilNewsDefaultRendererGUI
ILIAS Refinery Factory $refinery
 
string $lng_key
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilNewsItem $news_item
 
int $news_ref_id
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 26 of file class.ilFileNewsRendererGUI.php.

Member Function Documentation

◆ addTimelineActions()

ilFileNewsRendererGUI::addTimelineActions ( ilAdvancedSelectionListGUI  $list)

Implements ilNewsRendererGUI.

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

References $url, ilAdvancedSelectionListGUI\addItem(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

28  : void
29  {
30  $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->news_ref_id);
31  $url = $this->ctrl->getLinkTargetByClass("ilrepositorygui", "sendfile");
32  $this->ctrl->setParameterByClass("ilrepositorygui", "ref_id", $this->news_ref_id);
33 
34  $list->addItem($this->lng->txt("download"), "", $url);
35  }
addItem(string $a_title, string $a_value="", string $a_link="", string $a_img="", string $a_alt="", string $a_frame="", string $a_html="", bool $a_prevent_background_click=false, string $a_onclick="", string $a_ttip="", string $a_tt_my="right center", string $a_tt_at="left center", bool $a_tt_use_htmlspecialchars=true, array $a_data=array())
$url
+ Here is the call graph for this function:

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