ILIAS  Release_4_4_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_10_2"
static $ui_ver = "1_10_3"
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(), 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 ilTestOutputGUI\executeCommand(), ilTestPlayerDynamicQuestionSetGUI\executeCommand(), ilMailGUI\executeCommand(), ilMainMenuSearchGUI\getHTML(), ilChart\getHTML(), ilNestedOrderingGUI\getHtml(), ilInfoScreenGUI\getHTML(), assOrderingQuestionGUI\getPreview(), ilNestedOrderingGUI\getSolutionHTML(), ilTemplate\getStandardTemplate(), assOrderingQuestionGUI\getTestOutput(), ilSetupGUI\ilSetupGUI(), ilTaggingGUI\initJavascript(), ilNoteGUI\initJavascript(), ilLPObjectStatisticsLPTableGUI\initLearningProgressDetailsLayer(), ilPreviewGUI\initPreview(), ilPageObjectGUI\initSelfAssessmentRendering(), ilLMPresentationGUI\layout(), ilGlossaryPresentationGUI\printView(), ilDragDropFileInputGUI\render(), ilTextInputGUI\render(), ilSCORM2004ScoGUI\sco_preview(), 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 ilMainMenuSearchGUI\getHTML(), ilNestedOrderingGUI\getHtml(), ilPCIIMTriggerEditorGUI\getImageMapTableHTML(), assOrderingQuestionGUI\getPreview(), ilNestedOrderingGUI\getSolutionHTML(), assOrderingQuestionGUI\getTestOutput(), ilPageObjectGUI\initSelfAssessmentRendering(), ilLMPresentationGUI\layout(), ilTextInputGUI\render(), and ilSCORM2004ScoGUI\sco_preview().

{
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_10_3"
staticprivate

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

iljQueryUtil::$ver = "1_10_2"
staticprivate

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


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