ILIAS  release_8 Revision v8.24
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.

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 }
global $DIC
Definition: feed.php:28
$lng

References $DIC, $lng, CARET, and NO_TEXT.

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

+ 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"

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

◆ CALENDAR

const ilGlyphGUI::CALENDAR = "calendar"

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

◆ CARET

const ilGlyphGUI::CARET = "caret"

◆ CLOSE

const ilGlyphGUI::CLOSE = "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"

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

◆ NEXT

const ilGlyphGUI::NEXT = "next"

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

◆ NO_TEXT

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

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

Referenced by get().

◆ PREVIOUS

const ilGlyphGUI::PREVIOUS = "previous"

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

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