ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilRSSButtonGUI Class Reference
+ Collaboration diagram for ilRSSButtonGUI:

Static Public Member Functions

static get ($a_type, $a_href="")
 Get icon html. More...
 

Data Fields

const ICON_RSS = "rss"
 
const ICON_RSS_AUDIO = "rss audio"
 
const ICON_RSS_VIDEO = "rss video"
 
const ICON_ICAL = "ical"
 
const ICON_ITUNES = "itunes"
 
const ICON_ITUNES_AUDIO = "itunes audio"
 
const ICON_ITUNES_VIDEO = "itunes video"
 

Detailed Description

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

Definition at line 12 of file class.ilRSSButtonGUI.php.

Member Function Documentation

◆ get()

static ilRSSButtonGUI::get (   $a_type,
  $a_href = "" 
)
static

Get icon html.

Parameters
string$a_typeicons type ICON_RSS | ICON_ICAL
string$a_hrefhref
Returns
string icon html

Definition at line 29 of file class.ilRSSButtonGUI.php.

References $a_type, $text, and $tpl.

Referenced by ilCalendarCategoryTableGUI\fillRow(), ilObjMediaCastGUI\getFeedIconsHTML(), ilPDNewsBlockGUI\getHTML(), ilNewsForContextBlockGUI\getHTML(), ilCalendarBlockGUI\getHTML(), and ilObjBlogGUI\renderNavigation().

30  {
31  $tpl = new ilTemplate("tpl.rss_icon.html", true, true, "Services/News");
32 
33  if ($a_href != "") {
34  $tpl->setCurrentBlock("a_start");
35  $tpl->setVariable("HREF", $a_href);
36  $tpl->parseCurrentBlock();
37  $tpl->touchBlock("a_end");
38  }
39 
40  $text = "";
41 
42  switch ($a_type) {
43  case self::ICON_RSS:
44  $text = "RSS";
45  break;
46 
47  case self::ICON_RSS_AUDIO:
48  $text = "RSS Audio";
49  break;
50 
51  case self::ICON_RSS_VIDEO:
52  $text = "RSS Video";
53  break;
54 
55  case self::ICON_ICAL:
56  $text = "iCal";
57  break;
58 
59  case self::ICON_ITUNES:
60  $text = "iTunes";
61  break;
62 
63  case self::ICON_ITUNES_AUDIO:
64  $text = "iTunes Audio";
65  break;
66 
67  case self::ICON_ITUNES_VIDEO:
68  $text = "iTunes Video";
69  break;
70  }
71 
72  $tpl->setVariable("TEXT", $text);
73 
74  return $tpl->get();
75  }
$tpl
Definition: ilias.php:10
$a_type
Definition: workflow.php:92
special template class to simplify handling of ITX/PEAR
$text
Definition: errorreport.php:18
+ Here is the caller graph for this function:

Field Documentation

◆ ICON_ICAL

const ilRSSButtonGUI::ICON_ICAL = "ical"

◆ ICON_ITUNES

const ilRSSButtonGUI::ICON_ITUNES = "itunes"

Definition at line 18 of file class.ilRSSButtonGUI.php.

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().

◆ ICON_ITUNES_AUDIO

const ilRSSButtonGUI::ICON_ITUNES_AUDIO = "itunes audio"

Definition at line 19 of file class.ilRSSButtonGUI.php.

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().

◆ ICON_ITUNES_VIDEO

const ilRSSButtonGUI::ICON_ITUNES_VIDEO = "itunes video"

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

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().

◆ ICON_RSS

◆ ICON_RSS_AUDIO

const ilRSSButtonGUI::ICON_RSS_AUDIO = "rss audio"

Definition at line 15 of file class.ilRSSButtonGUI.php.

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().

◆ ICON_RSS_VIDEO

const ilRSSButtonGUI::ICON_RSS_VIDEO = "rss video"

Definition at line 16 of file class.ilRSSButtonGUI.php.

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().


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