ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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"
 
const EXCLAMATION = "exclamation"
 

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

References $DIC, $html, $lng, $map, and $text.

Referenced by ilTabsGUI\__getHTML(), ilTestQuestionsTableGUI\buildObligatoryColumnContent(), ilKprimChoiceWizardInputGUI\checkInput(), ilListOfQuestionsTableGUI\fillRow(), ilAwarenessGUI\getAwarenessList(), ilDclTreePickInputGUI\getHtml(), ilHierarchyFormGUI\getLegend(), ilMediaPlayerGUI\getMp3PlayerHtml(), ilFormPropertyGUI\getMultiIconsHTML(), ilNoteGUI\getNoteListHTML(), ilEssayKeywordWizardInputGUI\insert(), ilSelectBuilderInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilFileWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilOrgUnitGenericMultiInputGUI\insert(), ilPageObjectGUI\insertHelp(), ilLMPresentationGUI\layout(), ilObjStudyProgrammeTreeExplorerGUI\parseLeafNodeButtons(), ilExerciseSubmissionTableGUI\parseRow(), ilObjStudyProgrammeTreeExplorerGUI\parseStudyProgrammeNodeButtons(), ilNotificationOSDGUI\render(), ilDclMultiTextInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilMultipleTextsInputGUI\render(), ilTextWizardInputGUI\render(), ilScheduleInputGUI\render(), ilMultipleImagesInputGUI\render(), ilOrgUnitGenericMultiInputGUI\render(), ilDclGenericMultiInputGUI\render(), ilAssLacLegendGUI\renderCloseIcon(), ilObjForumGUI\renderDraftContent(), ilSurveyPageGUI\renderPage(), ilSurveyPageGUI\renderPageNode(), ilObjForumGUI\renderPostContent(), ilHelpGUI\search(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilSearchGUI\showSearch(), and ilLuceneSearchGUI\showSearchForm().

57  {
58  global $DIC;
59 
60  $lng = $DIC->language();
61 
62  $html = "";
63  $text = ($a_text == "")
64  ? $lng->txt(self::$map[$a_glyph]["txt"])
65  : (($a_text == self::NO_TEXT)
66  ? ""
67  : $a_text);
68  switch ($a_glyph) {
69  case self::CARET:
70  $html = '<span class="caret"></span>';
71  break;
72 
73  default:
74  $html = '<span class="sr-only">' . $text .
75  '</span><span class="' . self::$map[$a_glyph]["class"] . '"></span>';
76  break;
77 
78  }
79  return $html;
80  }
global $DIC
Definition: saml.php:7
$lng
$text
Definition: errorreport.php:18
$html
Definition: example_001.php:87
+ 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"),
"exclamation" => array("class" => "glyphicon glyphicon-exclamation-sign ilAlert", "txt" => "exclamation"),
"info" => array("class" => "glyphicon glyphicon-info-sign", "txt" => "info")
)

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

◆ ADD

◆ ATTACHMENT

const ilGlyphGUI::ATTACHMENT = "attachment"

◆ CALENDAR

const ilGlyphGUI::CALENDAR = "calendar"

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

◆ CARET

const ilGlyphGUI::CARET = "caret"

◆ CLOSE

◆ DOWN

◆ DRAG

const ilGlyphGUI::DRAG = "drag"

◆ EXCLAMATION

const ilGlyphGUI::EXCLAMATION = "exclamation"

◆ 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().

◆ PREVIOUS

const ilGlyphGUI::PREVIOUS = "previous"

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

Referenced by ilTabsGUI\__getHTML().

◆ REMOVE

◆ SEARCH

const ilGlyphGUI::SEARCH = "search"

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

Referenced by ilHelpGUI\search(), and ilHelpGUI\showHelp().

◆ UP


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