ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilRSSButtonGUI Class Reference
+ Collaboration diagram for ilRSSButtonGUI:

Static Public Member Functions

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

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

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 $tpl.

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

{
$tpl = new ilTemplate("tpl.rss_icon.html", true, true, "Services/News");
if ($a_href != "")
{
$tpl->setCurrentBlock("a_start");
$tpl->setVariable("HREF", $a_href);
$tpl->parseCurrentBlock();
$tpl->touchBlock("a_end");
}
$text = "";
switch ($a_type)
{
case self::ICON_RSS:
$text = "RSS";
break;
case self::ICON_RSS_AUDIO:
$text = "RSS Audio";
break;
case self::ICON_RSS_VIDEO:
$text = "RSS Video";
break;
case self::ICON_ICAL:
$text = "iCal";
break;
case self::ICON_ITUNES:
$text = "iTunes";
break;
case self::ICON_ITUNES_AUDIO:
$text = "iTunes Audio";
break;
case self::ICON_ITUNES_VIDEO:
$text = "iTunes Video";
break;
}
$tpl->setVariable("TEXT", $text);
return $tpl->get();
}

+ Here is the caller graph for this function:

Field Documentation

const ilRSSButtonGUI::ICON_ICAL = "ical"
const ilRSSButtonGUI::ICON_ITUNES = "itunes"

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

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().

const ilRSSButtonGUI::ICON_ITUNES_AUDIO = "itunes audio"

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

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().

const ilRSSButtonGUI::ICON_ITUNES_VIDEO = "itunes video"

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

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().

const ilRSSButtonGUI::ICON_RSS_AUDIO = "rss audio"

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

Referenced by ilObjMediaCastGUI\getFeedIconsHTML().

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: