ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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.

30 {
31 $tpl = new ilTemplate("tpl.rss_icon.html", true, true, "Services/News");
32
33 if ($a_href != "")
34 {
35 $tpl->setCurrentBlock("a_start");
36 $tpl->setVariable("HREF", $a_href);
37 $tpl->parseCurrentBlock();
38 $tpl->touchBlock("a_end");
39 }
40
41 $text = "";
42
43 switch ($a_type)
44 {
45 case self::ICON_RSS:
46 $text = "RSS";
47 break;
48
50 $text = "RSS Audio";
51 break;
52
54 $text = "RSS Video";
55 break;
56
57 case self::ICON_ICAL:
58 $text = "iCal";
59 break;
60
62 $text = "iTunes";
63 break;
64
66 $text = "iTunes Audio";
67 break;
68
70 $text = "iTunes Video";
71 break;
72 }
73
74 $tpl->setVariable("TEXT", $text);
75
76 return $tpl->get();
77 }
global $tpl
Definition: ilias.php:8
special template class to simplify handling of ITX/PEAR
$text

References $text, $tpl, ICON_ICAL, ICON_ITUNES, ICON_ITUNES_AUDIO, ICON_ITUNES_VIDEO, ICON_RSS, ICON_RSS_AUDIO, and ICON_RSS_VIDEO.

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

+ 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 get(), and ilObjMediaCastGUI\getFeedIconsHTML().

◆ ICON_ITUNES_AUDIO

const ilRSSButtonGUI::ICON_ITUNES_AUDIO = "itunes audio"

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

Referenced by get(), and ilObjMediaCastGUI\getFeedIconsHTML().

◆ ICON_ITUNES_VIDEO

const ilRSSButtonGUI::ICON_ITUNES_VIDEO = "itunes video"

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

Referenced by get(), and 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 get(), and ilObjMediaCastGUI\getFeedIconsHTML().

◆ ICON_RSS_VIDEO

const ilRSSButtonGUI::ICON_RSS_VIDEO = "rss video"

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

Referenced by get(), and ilObjMediaCastGUI\getFeedIconsHTML().


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