ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilTextHighlighterGUI.php
Go to the documentation of this file.
1
<?php
2
23
class
ilTextHighlighterGUI
24
{
28
public
static
function
highlight(
29
string
$a_dom_node_id,
30
string
$a_text,
31
ilGlobalTemplateInterface
$a_tpl = null
32
):
void
{
34
global
$DIC
;
35
36
$tpl
= $DIC[
"tpl"
];
37
38
if
(!trim($a_text)) {
39
return
;
40
}
41
42
if
($a_tpl === null) {
43
$a_tpl =
$tpl
;
44
}
45
$a_tpl->addJavaScript(
"./Services/UIComponent/TextHighlighter/js/ilTextHighlighter.js"
);
46
$a_tpl->addOnLoadCode(
"il.TextHighlighter.highlight('"
. $a_dom_node_id .
"','"
. $a_text .
"');"
);
47
}
48
}
ilGlobalTemplateInterface
$DIC
global $DIC
Definition:
feed.php:28
ilTextHighlighterGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilTextHighlighterGUI.php:23
$tpl
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition:
latex.php:41
Services
UIComponent
TextHighlighter
classes
class.ilTextHighlighterGUI.php
Generated on Tue Apr 1 2025 22:02:38 for ILIAS by
1.8.13 (using
Doxyfile
)