ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
class.ilTextHighlighterGUI.php
Go to the documentation of this file.
1
<?php
2
25
class
ilTextHighlighterGUI
26
{
30
public
static
function
highlight(
31
string
$a_dom_node_id,
32
string
$a_text,
33
ilGlobalTemplateInterface
$a_tpl = null
34
):
void
{
36
global
$DIC
;
37
38
$tpl = $DIC[
"tpl"
];
39
40
if
(!trim($a_text)) {
41
return
;
42
}
43
44
if
($a_tpl === null) {
45
$a_tpl = $tpl;
46
}
47
$a_tpl->addJavaScript(
"assets/js/ilTextHighlighter.js"
);
48
$a_tpl->addOnLoadCode(
"il.TextHighlighter.highlight('"
. $a_dom_node_id .
"','"
. $a_text .
"');"
);
49
}
50
}
ilGlobalTemplateInterface
$DIC
global $DIC
Definition:
shib_login.php:25
ilTextHighlighterGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilTextHighlighterGUI.php:25
components
ILIAS
UIComponent
TextHighlighter
classes
class.ilTextHighlighterGUI.php
Generated on Wed Sep 10 2025 15:16:51 for ILIAS by
1.8.13 (using
Doxyfile
)