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

jQuery utilities More...

+ Collaboration diagram for iljQueryUtil:

Static Public Member Functions

static initjQuery ($a_tpl=null)
 inits and adds the jQuery JS-File to the global or a passed template More...
 
static initjQueryUI ($a_tpl=null)
 inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components) More...
 
static getLocaljQueryPath ()
 
static getLocaljQueryUIPath ()
 
static initMaphilight ()
 Inits and add maphilight to the general template. More...
 
static getLocalMaphilightPath ()
 Get local path of maphilight file. More...
 

Static Private Attributes

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 12 of file class.iljQueryUtil.php.

Member Function Documentation

◆ getLocaljQueryPath()

static iljQueryUtil::getLocaljQueryPath ( )
static
Returns
string local path of jQuery file

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

Referenced by ilSCORMOfflineModeGUI\executeCommand(), ilCOPageHTMLExport\exportSupportScripts(), ilSCORM13Player\getPlayer(), ilSCORMOfflineMode\getSopManifestEntries(), and ilObjContentObject\getSupplyingExportFiles().

65  {
66  return "./libs/bower/bower_components/jquery/dist/jquery" . self::$min . ".js";
67  }
+ Here is the caller graph for this function:

◆ getLocaljQueryUIPath()

static iljQueryUtil::getLocaljQueryUIPath ( )
static
Returns
string local path of jQuery UI file

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

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

74  {
75  return "./libs/bower/bower_components/jquery-ui/jquery-ui" . self::$min . ".js";
76  }
+ Here is the caller graph for this function:

◆ getLocalMaphilightPath()

static iljQueryUtil::getLocalMaphilightPath ( )
static

Get local path of maphilight file.

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

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

99  {
100  return "./libs/bower/bower_components/maphilight/jquery.maphilight.min.js";
101  }
+ Here is the caller graph for this function:

◆ initjQuery()

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

inits and adds the jQuery JS-File to the global or a passed template

Parameters
\ilTemplate$a_tplglobal $tpl is used when null

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

References $DIC, and $tpl.

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

27  {
28  global $DIC;
29 
30  $tpl = $DIC["tpl"];
31 
32  // self::$min = DEVMODE ? "" : ".min";
33  self::$min = "";
34  if ($a_tpl == null) {
35  $a_tpl = $tpl;
36  }
37 
38  $a_tpl->addJavaScript(self::getLocaljQueryPath(), true, 1);
39  $a_tpl->addJavaScript('./libs/bower/bower_components/jquery-migrate/jquery-migrate.min.js', true, 1);
40  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initjQueryUI()

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

inits and adds the jQuery-UI JS-File to the global template (see included_components.txt for included components)

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

References $DIC, and $tpl.

Referenced by ilPCIIMTriggerEditorGUI\__construct(), ilColumnGUI\addBlockSorting(), ilStudyProgrammeExpandableProgressListGUI\addJavaScript(), ilAccordionGUI\addJavaScript(), ilMainMenuSearchGUI\getHTML(), assMatchingQuestionGUI\getPreview(), ilTemplate\getStandardTemplate(), assMatchingQuestionGUI\getTestOutput(), ilOnScreenChatGUI\initializeFrontend(), ilLMPresentationGUI\layout(), ilMultipleNestedOrderingElementsInputGUI\render(), ilSCORM2004ScoGUI\sco_preview(), ilTextInputGUI\setMultiValues(), and ilPageObjectGUI\showPage().

48  {
49  global $DIC;
50 
51  $tpl = $DIC["tpl"];
52 
53  if ($a_tpl == null) {
54  $a_tpl = $tpl;
55  }
56 
57  $a_tpl->addJavaScript(self::getLocaljQueryUIPath(), true, 1);
58  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
+ Here is the caller graph for this function:

◆ initMaphilight()

static iljQueryUtil::initMaphilight ( )
static

Inits and add maphilight to the general template.

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

References $DIC, and $tpl.

86  {
87  global $DIC;
88 
89  $tpl = $DIC["tpl"];
90 
91  $tpl->addJavaScript(self::getLocalMaphilightPath(), true, 1);
92  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10

Field Documentation

◆ $min

iljQueryUtil::$min = ".min"
staticprivate

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


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