1<?php
2
3/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5/**
6 * News render interface
7 *
8 * @author Alex Killing <alex.killing@gmx.de>
9 * @version $Id$
10 * @ingroup ServicesNews
11 */
12interface ilNewsRendererGUI
13{
14    /**
15     * Constructor
16     */
17    public function __construct();
18
19    /**
20     * Language key
21     *
22     * @param $i ilNewsItem news item
23     */
24    public function setLanguage($lang_key);
25
26    /**
27     * Set news item
28     *
29     * @param ilNewsItem $a_news_item
30     * @param int $a_news_ref_id
31     */
32    public function setNewsItem(ilNewsItem $a_news_item, $a_news_ref_id);
33
34    /**
35     * Render content for timeline
36     *
37     * @return string html
38     */
39    public function getTimelineContent();
40
41    /**
42     * Render content for detail view
43     *
44     * @return string html
45     */
46    public function getDetailContent();
47
48    /**
49     * @param ilAdvancedSelectionListGUI $list
50     */
51    public function addTimelineActions(ilAdvancedSelectionListGUI $list);
52
53    /**
54     * Get link href for object link
55     *
56     * @return string link href url
57     */
58    public function getObjectLink();
59}
60