ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
class.ilUIFramework.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
ilUIFramework
13
{
14
const
BOWER_BOOTSTRAP_JS
=
"node_modules/bootstrap/dist/js/bootstrap.min.js"
;
15
16
22
public
static
function
getJSFiles
()
23
{
24
return
array(
"./"
. self::BOWER_BOOTSTRAP_JS );
25
}
26
32
public
static
function
getCssFiles
()
33
{
34
return
[];
35
}
36
37
43
public
static
function
init
(
ilGlobalTemplateInterface
$a_tpl =
null
)
44
{
45
global
$DIC
;
46
47
if
($a_tpl ==
null
) {
48
$a_tpl =
$DIC
[
"tpl"
];
49
}
50
51
foreach
(
ilUIFramework::getJSFiles
() as
$f
) {
52
$a_tpl->addJavaScript(
$f
,
true
, 0);
53
}
54
foreach
(
ilUIFramework::getCssFiles
() as
$f
) {
55
$a_tpl->addCss(
$f
);
56
}
57
}
58
}
php
An exception for terminatinating execution or to throw for unit testing.
ilUIFramework
UI framework utility class.
Definition:
class.ilUIFramework.php:13
ilUIFramework\getCssFiles
static getCssFiles()
Get javascript files.
Definition:
class.ilUIFramework.php:32
ilUIFramework\getJSFiles
static getJSFiles()
Get javascript files.
Definition:
class.ilUIFramework.php:22
ilUIFramework\BOWER_BOOTSTRAP_JS
const BOWER_BOOTSTRAP_JS
Definition:
class.ilUIFramework.php:14
ilUIFramework\init
static init(ilGlobalTemplateInterface $a_tpl=null)
Init.
Definition:
class.ilUIFramework.php:43
$DIC
global $DIC
Definition:
goto.php:24
ilGlobalTemplateInterface
Created by PhpStorm.
Definition:
interface.ilGlobalTemplateInterface.php:17
Vendor\Package\$f
$f
Definition:
example_cleaned.php:31
Services
UICore
classes
class.ilUIFramework.php
Generated on Fri Oct 3 2025 21:01:07 for ILIAS by
1.9.4 (using
Doxyfile
)