ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
iljQueryUtil Class Reference

jQuery utilities More...

+ Collaboration diagram for iljQueryUtil:

Public Member Functions

 getLocaljQueryPath ()
 Get local path of jQuery file.
 getLocaljQueryUIPath ()
 Get local path of jQuery UI file.
 getLocalMaphilightPath ()
 Get local path of maphilight file.

Static Public Member Functions

static initjQuery ($a_tpl=null)
 Init jQuery.
static initjQueryUI ()
 Init jQuery UI (see included_components.txt for included components)
static initMaphilight ()
 Init maphilight.

Static Private Attributes

static $ver = "1_11_2"
static $ui_ver = "1_11_2"
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

iljQueryUtil::getLocaljQueryPath ( )

Get local path of jQuery file.

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

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

{
return "./Services/jQuery/js/".self::$ver."/jquery".self::$min.".js";
}

+ Here is the caller graph for this function:

iljQueryUtil::getLocaljQueryUIPath ( )

Get local path of jQuery UI file.

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

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

{
return "./Services/jQuery/js/ui_".self::$ui_ver."/jquery-ui.min.js";
}

+ Here is the caller graph for this function:

iljQueryUtil::getLocalMaphilightPath ( )

Get local path of maphilight file.

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

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

{
return "./Services/jQuery/js/maphilight_".self::$maphilight_ver."/maphilight.js";
}

+ Here is the caller graph for this function:

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

Init jQuery.

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

References $path, and $tpl.

Referenced by ilAccountRegistrationGUI\__initForm(), ilTestOutputGUI\executeCommand(), ilTestPlayerDynamicQuestionSetGUI\executeCommand(), ilMailGUI\executeCommand(), ilMainMenuSearchGUI\getHTML(), ilNestedOrderingGUI\getHtml(), ilInfoScreenGUI\getHTML(), ilNestedOrderingGUI\getSolutionHTML(), ilTemplate\getStandardTemplate(), ilSetupGUI\ilSetupGUI(), ilExplorerBaseGUI\init(), ilTaggingGUI\initJavascript(), ilNoteGUI\initJavascript(), ilChart\initJS(), ilLPObjectStatisticsLPTableGUI\initLearningProgressDetailsLayer(), ilPreviewGUI\initPreview(), ilLMPresentationGUI\layout(), ilGlossaryPresentationGUI\printView(), ilDragDropFileInputGUI\render(), ilSCORM2004ScoGUI\sco_preview(), ilPageObjectGUI\showPage(), ilRepositoryGUI\showTree(), and ilObjSCORM2004LearningModuleGUI\showTree().

{
global $tpl;
if ($a_tpl == null)
{
$a_tpl = $tpl;
}
$a_tpl->addJavaScript(self::getLocaljQueryPath(), true, 1);
// adding jquery-migrate for >= 1.9.x
$major = explode("_", self::$ver);
$major = $major[0]*100+$major[1];
if($major >= 109)
{
$path = str_replace("jquery", "jquery-migrate", self::getLocaljQueryPath());
// this will enable console error logging!
if(DEVMODE)
{
$path = str_replace(self::$min, "", $path);
}
$a_tpl->addJavaScript($path, true, 1);
}
}

+ Here is the caller graph for this function:

static iljQueryUtil::initjQueryUI ( )
static

Init jQuery UI (see included_components.txt for included components)

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

References $tpl.

Referenced by ilAccordionGUI\addJavaScript(), ilMainMenuSearchGUI\getHTML(), ilNestedOrderingGUI\getHtml(), ilPCIIMTriggerEditorGUI\getImageMapTableHTML(), ilNestedOrderingGUI\getSolutionHTML(), ilLMPresentationGUI\layout(), ilSCORM2004ScoGUI\sco_preview(), and ilPageObjectGUI\showPage().

{
global $tpl;
$tpl->addJavaScript(self::getLocaljQueryUIPath(), true, 1);
}

+ Here is the caller graph for this function:

static iljQueryUtil::initMaphilight ( )
static

Init maphilight.

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

References $tpl.

{
global $tpl;
$tpl->addJavaScript(self::getLocalMaphilightPath(), true, 1);
}

Field Documentation

iljQueryUtil::$maphilight_ver = "14_03_20"
staticprivate

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

iljQueryUtil::$min = "-min"
staticprivate

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

iljQueryUtil::$ui_ver = "1_11_2"
staticprivate

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

iljQueryUtil::$ver = "1_11_2"
staticprivate

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


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