ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilGlyphGUI.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12
class
ilGlyphGUI
13
{
14
const
UP
=
"up"
;
15
const
DOWN
=
"down"
;
16
const
ADD
=
"add"
;
17
const
REMOVE
=
"remove"
;
18
const
PREVIOUS
=
"previous"
;
19
const
NEXT
=
"next"
;
20
const
CALENDAR
=
"calendar"
;
21
const
CLOSE
=
"close"
;
22
const
ATTACHMENT
=
"attachment"
;
23
const
CARET
=
"caret"
;
24
const
DRAG
=
"drag"
;
25
const
SEARCH
=
"search"
;
26
const
FILTER
=
"filter"
;
27
const
NO_TEXT
=
"**notext**"
;
28
const
INFO
=
"info"
;
29
const
EXCLAMATION
=
"exclamation"
;
30
31
protected
static
$map
= array(
32
"up"
=> array(
"class"
=>
"glyphicon glyphicon-chevron-up"
,
"txt"
=>
"up"
),
33
"down"
=> array(
"class"
=>
"glyphicon glyphicon-chevron-down"
,
"txt"
=>
"down"
),
34
"add"
=> array(
"class"
=>
"glyphicon glyphicon-plus"
,
"txt"
=>
"add"
),
35
"remove"
=> array(
"class"
=>
"glyphicon glyphicon-minus"
,
"txt"
=>
"remove"
),
36
"previous"
=> array(
"class"
=>
"glyphicon glyphicon-chevron-left"
,
"txt"
=>
"previous"
),
37
"next"
=> array(
"class"
=>
"glyphicon glyphicon-chevron-right"
,
"txt"
=>
"next"
),
38
"calendar"
=> array(
"class"
=>
"glyphicon glyphicon-calendar"
,
"txt"
=>
"calendar"
),
39
"close"
=> array(
"class"
=>
"glyphicon glyphicon-remove"
,
"txt"
=>
"close"
),
40
"attachment"
=> array(
"class"
=>
"glyphicon glyphicon-paperclip"
,
"txt"
=>
"attachment"
),
41
"caret"
=> array(
"class"
=>
""
,
"txt"
=>
""
),
42
"drag"
=> array(
"class"
=>
"glyphicon glyphicon-share-alt"
,
"txt"
=>
"drag"
),
43
"search"
=> array(
"class"
=>
"glyphicon glyphicon-search"
,
"txt"
=>
"search"
),
44
"filter"
=> array(
"class"
=>
"glyphicon glyphicon-filter"
,
"txt"
=>
"filter"
),
45
"exclamation"
=> array(
"class"
=>
"glyphicon glyphicon-exclamation-sign ilAlert"
,
"txt"
=>
"exclamation"
),
46
"info"
=> array(
"class"
=>
"glyphicon glyphicon-info-sign"
,
"txt"
=>
"info"
)
47
);
48
56
public
static
function
get
($a_glyph, $a_text =
""
)
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
}
81
}
ilGlyphGUI\FILTER
const FILTER
Definition:
class.ilGlyphGUI.php:26
ilGlyphGUI\EXCLAMATION
const EXCLAMATION
Definition:
class.ilGlyphGUI.php:29
ilGlyphGUI\DRAG
const DRAG
Definition:
class.ilGlyphGUI.php:24
ilGlyphGUI\NEXT
const NEXT
Definition:
class.ilGlyphGUI.php:19
ilGlyphGUI\SEARCH
const SEARCH
Definition:
class.ilGlyphGUI.php:25
ilGlyphGUI\ATTACHMENT
const ATTACHMENT
Definition:
class.ilGlyphGUI.php:22
ilGlyphGUI\ADD
const ADD
Definition:
class.ilGlyphGUI.php:16
ilGlyphGUI\CALENDAR
const CALENDAR
Definition:
class.ilGlyphGUI.php:20
$lng
$lng
Definition:
save_question_post_data.php:23
$DIC
global $DIC
Definition:
goto.php:24
ilGlyphGUI\NO_TEXT
const NO_TEXT
Definition:
class.ilGlyphGUI.php:27
ilGlyphGUI\UP
const UP
Definition:
class.ilGlyphGUI.php:14
ilGlyphGUI\INFO
const INFO
Definition:
class.ilGlyphGUI.php:28
ilGlyphGUI
Definition:
class.ilGlyphGUI.php:12
ilGlyphGUI\REMOVE
const REMOVE
Definition:
class.ilGlyphGUI.php:17
ilGlyphGUI\PREVIOUS
const PREVIOUS
Definition:
class.ilGlyphGUI.php:18
ilGlyphGUI\$map
static $map
Definition:
class.ilGlyphGUI.php:31
ilGlyphGUI\CARET
const CARET
Definition:
class.ilGlyphGUI.php:23
ilGlyphGUI\CLOSE
const CLOSE
Definition:
class.ilGlyphGUI.php:21
ilGlyphGUI\DOWN
const DOWN
Definition:
class.ilGlyphGUI.php:15
Services
UIComponent
Glyph
classes
class.ilGlyphGUI.php
Generated on Sat Apr 5 2025 21:01:40 for ILIAS by
1.8.13 (using
Doxyfile
)