ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
class.ilGlyphGUI.php
Go to the documentation of this file.
1
<?php
2
24
class
ilGlyphGUI
25
{
26
public
const
UP
=
"up"
;
27
public
const
DOWN
=
"down"
;
28
public
const
ADD
=
"add"
;
29
public
const
REMOVE
=
"remove"
;
30
public
const
PREVIOUS
=
"previous"
;
31
public
const
NEXT
=
"next"
;
32
public
const
CALENDAR
=
"calendar"
;
33
public
const
CLOSE
=
"close"
;
34
public
const
ATTACHMENT
=
"attachment"
;
35
public
const
CARET
=
"caret"
;
36
public
const
DRAG
=
"drag"
;
37
public
const
SEARCH
=
"search"
;
38
public
const
FILTER
=
"filter"
;
39
public
const
NO_TEXT
=
"**notext**"
;
40
public
const
INFO
=
"info"
;
41
public
const
EXCLAMATION
=
"exclamation"
;
42
43
protected
static
array
$map
= array(
44
"up"
=> array(
"class"
=>
"glyphicon glyphicon-chevron-up"
,
"txt"
=>
"up"
),
45
"down"
=> array(
"class"
=>
"glyphicon glyphicon-chevron-down"
,
"txt"
=>
"down"
),
46
"add"
=> array(
"class"
=>
"glyphicon glyphicon-plus"
,
"txt"
=>
"add"
),
47
"remove"
=> array(
"class"
=>
"glyphicon glyphicon-minus"
,
"txt"
=>
"remove"
),
48
"previous"
=> array(
"class"
=>
"glyphicon glyphicon-chevron-left"
,
"txt"
=>
"previous"
),
49
"next"
=> array(
"class"
=>
"glyphicon glyphicon-chevron-right"
,
"txt"
=>
"next"
),
50
"calendar"
=> array(
"class"
=>
"glyphicon glyphicon-calendar"
,
"txt"
=>
"calendar"
),
51
"close"
=> array(
"class"
=>
"glyphicon glyphicon-remove"
,
"txt"
=>
"close"
),
52
"attachment"
=> array(
"class"
=>
"glyphicon glyphicon-paperclip"
,
"txt"
=>
"attachment"
),
53
"caret"
=> array(
"class"
=>
""
,
"txt"
=>
""
),
54
"drag"
=> array(
"class"
=>
"glyphicon glyphicon-share-alt"
,
"txt"
=>
"drag"
),
55
"search"
=> array(
"class"
=>
"glyphicon glyphicon-search"
,
"txt"
=>
"search"
),
56
"filter"
=> array(
"class"
=>
"glyphicon glyphicon-filter"
,
"txt"
=>
"filter"
),
57
"exclamation"
=> array(
"class"
=>
"glyphicon glyphicon-exclamation-sign ilAlert"
,
"txt"
=>
"exclamation"
),
58
"info"
=> array(
"class"
=>
"glyphicon glyphicon-info-sign"
,
"txt"
=>
"info"
)
59
);
60
61
public
static
function
get
(
62
string
$a_glyph,
63
string
$a_text =
""
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
}
86
}
ilGlyphGUI\FILTER
const FILTER
Definition:
class.ilGlyphGUI.php:38
ilGlyphGUI\EXCLAMATION
const EXCLAMATION
Definition:
class.ilGlyphGUI.php:41
ilGlyphGUI\DRAG
const DRAG
Definition:
class.ilGlyphGUI.php:36
ilGlyphGUI\NEXT
const NEXT
Definition:
class.ilGlyphGUI.php:31
ilGlyphGUI\$map
static array $map
Definition:
class.ilGlyphGUI.php:43
ilGlyphGUI\SEARCH
const SEARCH
Definition:
class.ilGlyphGUI.php:37
ilGlyphGUI\ATTACHMENT
const ATTACHMENT
Definition:
class.ilGlyphGUI.php:34
ilGlyphGUI\ADD
const ADD
Definition:
class.ilGlyphGUI.php:28
ilGlyphGUI\CALENDAR
const CALENDAR
Definition:
class.ilGlyphGUI.php:32
$text
$text
Definition:
xapiexit.php:21
ilGlyphGUI\NO_TEXT
const NO_TEXT
Definition:
class.ilGlyphGUI.php:39
$DIC
global $DIC
Definition:
shib_login.php:25
ilGlyphGUI\UP
const UP
Definition:
class.ilGlyphGUI.php:26
ilGlyphGUI\INFO
const INFO
Definition:
class.ilGlyphGUI.php:40
$lng
global $lng
Definition:
privfeed.php:32
ilGlyphGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilGlyphGUI.php:24
ilGlyphGUI\REMOVE
const REMOVE
Definition:
class.ilGlyphGUI.php:29
ilGlyphGUI\PREVIOUS
const PREVIOUS
Definition:
class.ilGlyphGUI.php:30
ilGlyphGUI\CARET
const CARET
Definition:
class.ilGlyphGUI.php:35
ilGlyphGUI\CLOSE
const CLOSE
Definition:
class.ilGlyphGUI.php:33
ilGlyphGUI\DOWN
const DOWN
Definition:
class.ilGlyphGUI.php:27
components
ILIAS
UIComponent
Glyph
classes
class.ilGlyphGUI.php
Generated on Wed Sep 10 2025 15:16:51 for ILIAS by
1.8.13 (using
Doxyfile
)