ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
ilGlyphGUI Class Reference
+ Collaboration diagram for ilGlyphGUI:

Static Public Member Functions

static get ($a_glyph, $a_text="")
 Get glyph html. More...
 

Data Fields

const UP = "up"
 
const DOWN = "down"
 
const ADD = "add"
 
const REMOVE = "remove"
 
const PREVIOUS = "previous"
 
const NEXT = "next"
 
const CALENDAR = "calendar"
 
const CLOSE = "close"
 
const ATTACHMENT = "attachment"
 
const CARET = "caret"
 
const DRAG = "drag"
 
const SEARCH = "search"
 
const NO_TEXT = "**notext**"
 

Static Protected Attributes

static $map
 

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.ilGlyphGUI.php.

Member Function Documentation

◆ get()

static ilGlyphGUI::get (   $a_glyph,
  $a_text = "" 
)
static

Get glyph html.

Parameters
string$a_glyphglyph constant
string$a_texttext representation
Returns
string html

Definition at line 50 of file class.ilGlyphGUI.php.

51 {
52 global $lng;
53
54 $html = "";
55 $text = ($a_text == "")
56 ? $lng->txt(self::$map[$a_glyph]["txt"])
57 : ($a_text == self::NO_TEXT)
58 ? ""
59 : $a_text;
60 switch ($a_glyph)
61 {
62 case self::CARET:
63 $html = '<span class="caret"></span>';
64 break;
65
66 default:
67 $html = '<span class="sr-only">'.$text.
68 '</span><span class="'.self::$map[$a_glyph]["class"].'"></span>';
69 break;
70
71 }
72 return $html;
73 }
global $lng
Definition: privfeed.php:40

References $lng, CARET, and NO_TEXT.

Referenced by ilTabsGUI\__getHTML(), ilTestQuestionsTableGUI\fillRow(), ilDataCollectionTreePickInputGUI\getHtml(), ilHierarchyFormGUI\getLegend(), ilMediaPlayerGUI\getMp3PlayerHtml(), ilFormPropertyGUI\getMultiIconsHTML(), ilNoteGUI\getNoteListHTML(), ilSelectBuilderInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilImageWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilFileWizardInputGUI\insert(), ilTextWizardInputGUI\insert(), ilPageObjectGUI\insertHelp(), ilTermsOfServiceAcceptanceHistoryTableGUI\prepareRow(), ilTermsOfServiceAgreementByLanguageTableGUI\prepareRow(), ilScheduleInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilBirthdayInputGUI\render(), ilDateDurationInputGUI\render(), ilDateTimeInputGUI\render(), ilSurveyPageGUI\renderPage(), ilSurveyPageGUI\renderPageNode(), ilCalendarDayGUI\show(), ilCalendarMonthGUI\show(), ilCalendarWeekGUI\show(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilSearchGUI\showSearch(), and ilLuceneSearchGUI\showSearchForm().

+ Here is the caller graph for this function:

Field Documentation

◆ $map

ilGlyphGUI::$map
staticprotected
Initial value:
= array(
"up" => array("class" => "glyphicon glyphicon-chevron-up", "txt" => "up"),
"down" => array("class" => "glyphicon glyphicon-chevron-down", "txt" => "down"),
"add" => array("class" => "glyphicon glyphicon-plus", "txt" => "add"),
"remove" => array("class" => "glyphicon glyphicon-minus", "txt" => "remove"),
"previous" => array("class" => "glyphicon glyphicon-chevron-left", "txt" => "previous"),
"next" => array("class" => "glyphicon glyphicon-chevron-right", "txt" => "next"),
"calendar" => array("class" => "glyphicon glyphicon-calendar", "txt" => "calendar"),
"close" => array("class" => "glyphicon glyphicon-remove", "txt" => "close"),
"attachment" => array("class" => "glyphicon glyphicon-paperclip", "txt" => "attachment"),
"caret" => array("class" => "", "txt" => ""),
"drag" => array("class" => "glyphicon glyphicon-share-alt", "txt" => "drag"),
"search" => array("class" => "glyphicon glyphicon-search", "txt" => "search")
)

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

◆ ADD

◆ ATTACHMENT

const ilGlyphGUI::ATTACHMENT = "attachment"

Definition at line 22 of file class.ilGlyphGUI.php.

◆ CALENDAR

const ilGlyphGUI::CALENDAR = "calendar"

◆ CARET

const ilGlyphGUI::CARET = "caret"

◆ CLOSE

◆ DOWN

◆ DRAG

const ilGlyphGUI::DRAG = "drag"

◆ NEXT

const ilGlyphGUI::NEXT = "next"

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

Referenced by ilTabsGUI\__getHTML().

◆ NO_TEXT

const ilGlyphGUI::NO_TEXT = "**notext**"

Definition at line 26 of file class.ilGlyphGUI.php.

Referenced by ilTabsGUI\__getHTML(), and get().

◆ PREVIOUS

const ilGlyphGUI::PREVIOUS = "previous"

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

Referenced by ilTabsGUI\__getHTML().

◆ REMOVE

◆ SEARCH

const ilGlyphGUI::SEARCH = "search"

◆ UP


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