ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilUIFramework Class Reference

UI framework utility class. More...

+ Collaboration diagram for ilUIFramework:

Static Public Member Functions

static getJSFiles ()
 Get javascript files. More...
 
static getCssFiles ()
 Get javascript files. More...
 
static init ($a_tpl=null)
 Init. More...
 

Data Fields

const BOWER_BOOTSTRAP_JS = "libs/bower/bower_components/bootstrap/dist/js/bootstrap.min.js"
 

Detailed Description

UI framework utility class.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilUIFramework.php.

Member Function Documentation

◆ getCssFiles()

static ilUIFramework::getCssFiles ( )
static

Get javascript files.

Returns
array array of files

Definition at line 32 of file class.ilUIFramework.php.

Referenced by init().

33  {
34  return array("./libs/bower/bower_components/Yamm3/yamm/yamm.css");
35  }
+ Here is the caller graph for this function:

◆ getJSFiles()

static ilUIFramework::getJSFiles ( )
static

Get javascript files.

Returns
array array of files

Definition at line 22 of file class.ilUIFramework.php.

Referenced by ilPortfolioHTMLExport\buildExportFile(), ilPortfolioHTMLExport\exportPageHTML(), and init().

23  {
24  return array( "./" . self::BOWER_BOOTSTRAP_JS );
25  }
+ Here is the caller graph for this function:

◆ init()

static ilUIFramework::init (   $a_tpl = null)
static

Init.

Parameters
ilTemplate$a_tpltemplate object

Definition at line 42 of file class.ilUIFramework.php.

References $DIC, $f, $tpl, getCssFiles(), and getJSFiles().

Referenced by ilSetupGUI\__construct(), ilStartUpGUI\_checkGoto(), ilTemplate\getStandardTemplate(), ilKioskPageRenderer\initIlTemplate(), and ilLMPresentationGUI\layout().

43  {
44  global $DIC;
45 
46  $tpl = $DIC["tpl"];
47 
48  if ($a_tpl == null) {
49  $a_tpl = $tpl;
50  }
51 
52  foreach (ilUIFramework::getJSFiles() as $f) {
53  $a_tpl->addJavaScript($f, true, 1);
54  }
55  foreach (ilUIFramework::getCssFiles() as $f) {
56  $a_tpl->addCss($f);
57  }
58  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
static getJSFiles()
Get javascript files.
static getCssFiles()
Get javascript files.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ BOWER_BOOTSTRAP_JS

const ilUIFramework::BOWER_BOOTSTRAP_JS = "libs/bower/bower_components/bootstrap/dist/js/bootstrap.min.js"

Definition at line 14 of file class.ilUIFramework.php.

Referenced by ilTestPlayerAbstractGUI\populateModals().


The documentation for this class was generated from the following file: