ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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...
 

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 29 of file class.ilUIFramework.php.

References array.

Referenced by init().

30  {
31  return array("./Services/UICore/lib/yamm3/yamm/yamm.css");
32  }
Create styles array
The data for the language used.
+ Here is the caller graph for this function:

◆ getJSFiles()

static ilUIFramework::getJSFiles ( )
static

Get javascript files.

Returns
array array of files

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

References array.

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

20  {
21  return array("./Services/UICore/lib/bootstrap-3.2.0/dist/js/bootstrap.min.js");
22  }
Create styles array
The data for the language used.
+ 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 39 of file class.ilUIFramework.php.

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

Referenced by ilSetupGUI\__construct(), ilStartUpGUI\confirmRegistration(), ilTemplate\getStandardTemplate(), and ilLMPresentationGUI\layout().

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

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