ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilGlyphGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilGlyphGUI:

Static Public Member Functions

static get (string $a_glyph, string $a_text="")
 

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 array $map
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Member Function Documentation

◆ get()

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

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

References $DIC, and $lng.

Referenced by ilLMPresentationGUI\addResourceFiles(), ilKprimChoiceWizardInputGUI\checkInput(), ilAwarenessGUI\getAwarenessList(), ilHierarchyFormGUI\getLegend(), ilMediaPlayerGUI\getMp3PlayerHtml(), ilFormPropertyGUI\getMultiIconsHTML(), ILIAS\COPage\Editor\Components\Page\PageQueryActionHandler\getPageEditHelp(), ilSelectBuilderInputGUI\insert(), ilEssayKeywordWizardInputGUI\insert(), ilMatrixRowWizardInputGUI\insert(), ilFileWizardInputGUI\insert(), ilMatchingPairWizardInputGUI\insert(), ilMultipleChoiceWizardInputGUI\insert(), ilImageWizardInputGUI\insert(), ilAnswerWizardInputGUI\insert(), ilKVPWizardInputGUI\insert(), ilImagemapFileInputGUI\insert(), ilCategoryWizardInputGUI\insert(), ilMatchingWizardInputGUI\insert(), ilOrgUnitGenericMultiInputGUI\insert(), ilSingleChoiceWizardInputGUI\insert(), ilExerciseSubmissionTableGUI\parseColumns(), ilObjStudyProgrammeTreeExplorerGUI\parseLeafNodeButtons(), ilObjStudyProgrammeTreeExplorerGUI\parseStudyProgrammeNodeButtons(), ilTabsGUI\removeNonTabbedLinks(), ilDclMultiTextInputGUI\render(), ilGloAdvColSortInputGUI\render(), ilTextWizardInputGUI\render(), ilMultipleTextsInputGUI\render(), ilScheduleInputGUI\render(), ilOrgUnitGenericMultiInputGUI\render(), ilDclGenericMultiInputGUI\render(), ilMultipleImagesInputGUI\render(), ilObjForumGUI\renderDraftContent(), ilSurveyPageEditGUI\renderPage(), ilSurveyPageEditGUI\renderPageNode(), ilObjForumGUI\renderPostContent(), ilHelpGUI\search(), ilHelpGUI\showHelp(), ilHelpGUI\showPage(), ilSearchGUI\showSearch(), and ilLuceneSearchGUI\showSearchForm().

62  : string {
63  global $DIC;
64 
65  $lng = $DIC->language();
66 
67  $text = ($a_text === "")
68  ? $lng->txt(self::$map[$a_glyph]["txt"])
69  : (($a_text === self::NO_TEXT)
70  ? ""
71  : $a_text);
72  switch ($a_glyph) {
73  case self::CARET:
74  $html = '<span class="caret"></span>';
75  break;
76 
77  default:
78  $html = '<span class="sr-only">' . $text .
79  '</span><span class="' . self::$map[$a_glyph]["class"] . '"></span>';
80  break;
81 
82  }
83  return $html;
84  }
$lng
global $DIC
Definition: feed.php:28
+ Here is the caller graph for this function:

Field Documentation

◆ $map

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

◆ ADD

◆ ATTACHMENT

const ilGlyphGUI::ATTACHMENT = "attachment"

◆ CALENDAR

const ilGlyphGUI::CALENDAR = "calendar"

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

◆ CARET

const ilGlyphGUI::CARET = "caret"

◆ CLOSE

◆ DOWN

◆ DRAG

◆ EXCLAMATION

const ilGlyphGUI::EXCLAMATION = "exclamation"

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

◆ FILTER

const ilGlyphGUI::FILTER = "filter"

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

Referenced by ilAwarenessGUI\getAwarenessList().

◆ INFO

const ilGlyphGUI::INFO = "info"

◆ NEXT

const ilGlyphGUI::NEXT = "next"

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

Referenced by ilTabsGUI\removeNonTabbedLinks().

◆ NO_TEXT

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

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

Referenced by ilTabsGUI\removeNonTabbedLinks().

◆ PREVIOUS

const ilGlyphGUI::PREVIOUS = "previous"

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

Referenced by ilTabsGUI\removeNonTabbedLinks().

◆ REMOVE

◆ SEARCH

const ilGlyphGUI::SEARCH = "search"

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

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

◆ UP


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