ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ 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
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
$DIC
global $DIC
Definition:
shib_login.php:26
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 3 2025 23:04:24 for ILIAS by
1.8.13 (using
Doxyfile
)