ILIAS  trunk Revision v11.0_alpha-1861-g09f3d197f78
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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
Deprecated:
10

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

Member Function Documentation

◆ get()

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

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

References $DIC, and $lng.

64  : string {
65  global $DIC;
66 
67  $lng = $DIC->language();
68 
69  $text = ($a_text === "")
70  ? $lng->txt(self::$map[$a_glyph]["txt"])
71  : (($a_text === self::NO_TEXT)
72  ? ""
73  : $a_text);
74  switch ($a_glyph) {
75  case self::CARET:
76  $html = '<span class="caret"></span>';
77  break;
78 
79  default:
80  $html = '<span class="sr-only">' . $text .
81  '</span><span class="' . self::$map[$a_glyph]["class"] . '"></span>';
82  break;
83  }
84  return $html;
85  }
global $DIC
Definition: shib_login.php:22
global $lng
Definition: privfeed.php:31

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

◆ ADD

const ilGlyphGUI::ADD = "add"

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

◆ ATTACHMENT

const ilGlyphGUI::ATTACHMENT = "attachment"

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

◆ CALENDAR

const ilGlyphGUI::CALENDAR = "calendar"

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

◆ CARET

const ilGlyphGUI::CARET = "caret"

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

◆ CLOSE

const ilGlyphGUI::CLOSE = "close"

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

◆ DOWN

const ilGlyphGUI::DOWN = "down"

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

◆ DRAG

const ilGlyphGUI::DRAG = "drag"

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

◆ EXCLAMATION

const ilGlyphGUI::EXCLAMATION = "exclamation"

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

◆ FILTER

const ilGlyphGUI::FILTER = "filter"

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

◆ INFO

const ilGlyphGUI::INFO = "info"

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

◆ NEXT

const ilGlyphGUI::NEXT = "next"

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

◆ NO_TEXT

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

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

◆ PREVIOUS

const ilGlyphGUI::PREVIOUS = "previous"

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

◆ REMOVE

const ilGlyphGUI::REMOVE = "remove"

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

◆ SEARCH

const ilGlyphGUI::SEARCH = "search"

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

◆ UP

const ilGlyphGUI::UP = "up"

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


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