ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 FILTER = "filter"
 
const NO_TEXT = "**notext**"
 
const INFO = "info"
 

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 54 of file class.ilGlyphGUI.php.

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

References $html, $lng, $text, CARET, and NO_TEXT.

Referenced by ilTabsGUI\__getHTML(), ilTestQuestionsTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilAwarenessGUI\getAwarenessList(), 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(), ilObjStudyProgrammeTreeExplorerGUI\parseLeafNodeButtons(), ilObjStudyProgrammeTreeExplorerGUI\parseStudyProgrammeNodeButtons(), ilTermsOfServiceAcceptanceHistoryTableGUI\prepareRow(), ilTermsOfServiceAgreementByLanguageTableGUI\prepareRow(), ilScheduleInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilBirthdayInputGUI\render(), ilDateDurationInputGUI\render(), ilDateTimeInputGUI\render(), ilAssLacLegendGUI\renderCloseIcon(), ilSurveyPageGUI\renderPage(), ilSurveyPageGUI\renderPageNode(), ilHelpGUI\search(), 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"),
"filter" => array("class" => "glyphicon glyphicon-filter", "txt" => "filter"),
"info" => array("class" => "glyphicon glyphicon-info-sign", "txt" => "info")
)

Definition at line 30 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"

◆ FILTER

const ilGlyphGUI::FILTER = "filter"

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

Referenced by ilAwarenessGUI\getAwarenessList().

◆ INFO

const ilGlyphGUI::INFO = "info"

◆ 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 27 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

◆ UP


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