ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
iljQueryUtil Class Reference

jQuery utilities More...

+ Collaboration diagram for iljQueryUtil:

Static Public Member Functions

static initjQuery ($a_tpl=null)
 Init jQuery. More...
 
static initjQueryUI ()
 Init jQuery UI (see included_components.txt for included components) More...
 
static getLocaljQueryPath ()
 Get local path of jQuery file. More...
 
static getLocaljQueryUIPath ()
 Get local path of jQuery UI file. More...
 
static initMaphilight ()
 Init maphilight. More...
 
static getLocalMaphilightPath ()
 Get local path of maphilight file. More...
 

Static Private Attributes

static $ver = "2_2_4"
 
static $ui_ver = "1_12_0"
 
static $maphilight_ver = "14_03_20"
 
static $min = "-min"
 

Detailed Description

jQuery utilities

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

Definition at line 10 of file class.iljQueryUtil.php.

Member Function Documentation

◆ getLocaljQueryPath()

static iljQueryUtil::getLocaljQueryPath ( )
static

Get local path of jQuery file.

Definition at line 67 of file class.iljQueryUtil.php.

Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilSCORM13Player\getPlayer(), and ilObjContentObject\getSupplyingExportFiles().

68  {
69  return "./Services/jQuery/js/".self::$ver."/jquery".self::$min.".js";
70  }
+ Here is the caller graph for this function:

◆ getLocaljQueryUIPath()

static iljQueryUtil::getLocaljQueryUIPath ( )
static

Get local path of jQuery UI file.

Definition at line 75 of file class.iljQueryUtil.php.

Referenced by ilCOPageHTMLExport\exportSupportScripts(), and ilObjContentObject\getSupplyingExportFiles().

76  {
77  return "./Services/jQuery/js/ui_".self::$ui_ver."/jquery-ui".self::$min.".js";
78  }
+ Here is the caller graph for this function:

◆ getLocalMaphilightPath()

static iljQueryUtil::getLocalMaphilightPath ( )
static

Get local path of maphilight file.

Definition at line 97 of file class.iljQueryUtil.php.

Referenced by ilCOPageHTMLExport\exportSupportScripts(), ilObjContentObject\getSupplyingExportFiles(), and ilObjMediaObjectGUI\includePresentationJS().

98  {
99  return "./Services/jQuery/js/maphilight_".self::$maphilight_ver."/maphilight.js";
100  }
+ Here is the caller graph for this function:

◆ initjQuery()

static iljQueryUtil::initjQuery (   $a_tpl = null)
static

Init jQuery.

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

References $tpl.

Referenced by ilTestScoringByQuestionsGUI\__construct(), ilSessionReminderGUI\__construct(), ilTermsOfServiceAcceptanceHistoryTableGUI\__construct(), ilSetupGUI\__construct(), ilAccountRegistrationGUI\__initForm(), ilStartUpGUI\confirmRegistration(), ilObjForumGUI\doHistoryCheck(), ilTestOutputGUI\executeCommand(), ilTestPlayerDynamicQuestionSetGUI\executeCommand(), ilForumExportGUI\executeCommand(), ilMainMenuSearchGUI\getHTML(), ilInfoScreenGUI\getHTML(), assMatchingQuestionGUI\getPreview(), ilTemplate\getStandardTemplate(), assMatchingQuestionGUI\getTestOutput(), ilExplorerBaseGUI\init(), ilOnScreenChatGUI\initializeFrontend(), ilTaggingGUI\initJavascript(), ilNoteGUI\initJavascript(), ilChart\initJS(), ilLPObjectStatisticsLPTableGUI\initLearningProgressDetailsLayer(), ilPreviewGUI\initPreview(), ilLMPresentationGUI\layout(), ilScoringAdjustmentGUI\outputAdjustQuestionForm(), ilGlossaryPresentationGUI\printView(), ilNotificationOSDGUI\render(), ilDragDropFileInputGUI\render(), ilMultipleNestedOrderingElementsInputGUI\render(), ilSCORM2004ScoGUI\sco_preview(), ilTextInputGUI\setMultiValues(), ilColumnGUI\showBlocks(), ilPageObjectGUI\showPage(), ilRepositoryGUI\showTree(), and ilObjSCORM2004LearningModuleGUI\showTree().

23  {
24  global $tpl;
25 
26  /*
27  self::$ver = DEVMODE
28  ? "3_1_0"
29  : "2_2_4";
30  */
31  self::$min = DEVMODE
32  ? ""
33  : "-min";
34 
35  if ($a_tpl == null)
36  {
37  $a_tpl = $tpl;
38  }
39 
40  $a_tpl->addJavaScript(self::getLocaljQueryPath(), true, 1);
41 
42  /*
43  // adding jquery-migrate for >= 1.9.x
44  $major = explode("_", self::$ver);
45  $major = $major[0]*100+$major[1];
46  if($major >= 109)
47  {
48  $path = str_replace("jquery", "jquery-migrate", self::getLocaljQueryPath());
49  $a_tpl->addJavaScript($path, true, 1);
50  }
51  */
52  }
global $tpl
Definition: ilias.php:8
+ Here is the caller graph for this function:

◆ initjQueryUI()

static iljQueryUtil::initjQueryUI ( )
static

◆ initMaphilight()

static iljQueryUtil::initMaphilight ( )
static

Init maphilight.

Definition at line 87 of file class.iljQueryUtil.php.

References $tpl.

88  {
89  global $tpl;
90 
91  $tpl->addJavaScript(self::getLocalMaphilightPath(), true, 1);
92  }
global $tpl
Definition: ilias.php:8

Field Documentation

◆ $maphilight_ver

iljQueryUtil::$maphilight_ver = "14_03_20"
staticprivate

Definition at line 16 of file class.iljQueryUtil.php.

◆ $min

iljQueryUtil::$min = "-min"
staticprivate

Definition at line 17 of file class.iljQueryUtil.php.

◆ $ui_ver

iljQueryUtil::$ui_ver = "1_12_0"
staticprivate

Definition at line 15 of file class.iljQueryUtil.php.

◆ $ver

iljQueryUtil::$ver = "2_2_4"
staticprivate

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


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