本文整理汇总了PHP中iljQueryUtil::getLocaljQueryUIPath方法的典型用法代码示例。如果您正苦于以下问题:PHP iljQueryUtil::getLocaljQueryUIPath方法的具体用法?PHP iljQueryUtil::getLocaljQueryUIPath怎么用?PHP iljQueryUtil::getLocaljQueryUIPath使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iljQueryUtil
的用法示例。
在下文中一共展示了iljQueryUtil::getLocaljQueryUIPath方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSupplyingExportFiles
/**
* Get supplying export files
*
* @param
* @return
*/
static function getSupplyingExportFiles($a_target_dir = ".")
{
include_once "./Services/YUI/classes/class.ilYuiUtil.php";
include_once "./Services/jQuery/classes/class.iljQueryUtil.php";
include_once "./Services/MediaObjects/classes/class.ilPlayerUtil.php";
$scripts = array(array("source" => ilYuiUtil::getLocalPath('yahoo/yahoo-min.js'), "target" => $a_target_dir . '/js/yahoo/yahoo-min.js', "type" => "js"), array("source" => ilYuiUtil::getLocalPath('yahoo-dom-event/yahoo-dom-event.js'), "target" => $a_target_dir . '/js/yahoo/yahoo-dom-event.js', "type" => "js"), array("source" => ilYuiUtil::getLocalPath('animation/animation-min.js'), "target" => $a_target_dir . '/js/yahoo/animation-min.js', "type" => "js"), array("source" => './Services/JavaScript/js/Basic.js', "target" => $a_target_dir . '/js/Basic.js', "type" => "js"), array("source" => './Services/Accordion/js/accordion.js', "target" => $a_target_dir . '/js/accordion.js', "type" => "js"), array("source" => './Services/Accordion/css/accordion.css', "target" => $a_target_dir . '/css/accordion.css', "type" => "css"), array("source" => iljQueryUtil::getLocaljQueryPath(), "target" => $a_target_dir . '/js/jquery.js', "type" => "js"), array("source" => iljQueryUtil::getLocalMaphilightPath(), "target" => $a_target_dir . '/js/maphilight.js', "type" => "js"), array("source" => iljQueryUtil::getLocaljQueryUIPath(), "target" => $a_target_dir . '/js/jquery-ui-min.js', "type" => "js"), array("source" => './Services/COPage/js/ilCOPagePres.js', "target" => $a_target_dir . '/js/ilCOPagePres.js', "type" => "js"), array("source" => './Modules/Scorm2004/scripts/questions/pure.js', "target" => $a_target_dir . '/js/pure.js', "type" => "js"), array("source" => './Modules/Scorm2004/scripts/questions/question_handling.js', "target" => $a_target_dir . '/js/question_handling.js', "type" => "js"), array("source" => './Modules/Scorm2004/templates/default/question_handling.css', "target" => $a_target_dir . '/css/question_handling.css', "type" => "css"), array("source" => ilPlayerUtil::getLocalMediaElementJsPath(), "target" => $a_target_dir . "/" . ilPlayerUtil::getLocalMediaElementJsPath(), "type" => "js"), array("source" => ilPlayerUtil::getLocalMediaElementCssPath(), "target" => $a_target_dir . "/" . ilPlayerUtil::getLocalMediaElementCssPath(), "type" => "css"));
$mathJaxSetting = new ilSetting("MathJax");
$use_mathjax = $mathJaxSetting->get("enable");
if ($use_mathjax) {
$scripts[] = array("source" => "", "target" => $mathJaxSetting->get("path_to_mathjax"), "type" => "js");
}
return $scripts;
}
示例2: exportSupportScripts
/**
* Export support scripts
*
* @param
* @return
*/
function exportSupportScripts()
{
// export flv/mp3 player
//copy(ilPlayerUtil::getFlashVideoPlayerFilename(true),
// $this->js_dir."/".ilPlayerUtil::getFlashVideoPlayerFilename());
//copy("./Services/MediaObjects/flash_mp3_player/mp3player.swf",
// $this->mp3_dir."/mp3player.swf");
// basic js
copy('./Services/JavaScript/js/Basic.js', $this->js_dir . '/Basic.js');
copy('./Services/UIComponent/Overlay/js/ilOverlay.js', $this->js_dir . '/ilOverlay.js');
// jquery
include_once "./Services/jQuery/classes/class.iljQueryUtil.php";
copy(iljQueryUtil::getLocaljQueryPath(), $this->js_dir . '/jquery.js');
copy(iljQueryUtil::getLocaljQueryUIPath(), $this->js_dir . '/jquery-ui-min.js');
copy(iljQueryUtil::getLocalMaphilightPath(), $this->js_dir . '/maphilight.js');
// yui stuff we use
include_once "./Services/YUI/classes/class.ilYuiUtil.php";
copy(ilYuiUtil::getLocalPath('yahoo/yahoo-min.js'), $this->js_yahoo_dir . '/yahoo-min.js');
copy(ilYuiUtil::getLocalPath('yahoo-dom-event/yahoo-dom-event.js'), $this->js_yahoo_dir . '/yahoo-dom-event.js');
copy(ilYuiUtil::getLocalPath('animation/animation-min.js'), $this->js_yahoo_dir . '/animation-min.js');
copy(ilYuiUtil::getLocalPath('container/container-min.js'), $this->js_yahoo_dir . '/container-min.js');
copy(ilYuiUtil::getLocalPath('container/assets/skins/sam/container.css'), $this->css_dir . '/container.css');
// accordion
copy('./Services/Accordion/js/accordion.js', $this->js_dir . '/accordion.js');
copy('./Services/Accordion/css/accordion.css', $this->css_dir . '/accordion.css');
// page presentation js
copy('./Services/COPage/js/ilCOPagePres.js', $this->js_dir . '/ilCOPagePres.js');
// tooltip
copy('./Services/UIComponent/Tooltip/js/ilTooltip.js', $this->js_dir . '/ilTooltip.js');
// mediaelement.js
include_once "./Services/MediaObjects/classes/class.ilPlayerUtil.php";
ilPlayerUtil::copyPlayerFilesToTargetDirectory($this->flv_dir);
// copy(ilPlayerUtil::getLocalMediaElementCssPath(),
// $this->css_dir.'/mediaelementplayer.css');
// copy(ilPlayerUtil::getLocalMediaElementJsPath(),
// $this->js_dir.'/mediaelement-and-player.js');
}
示例3: exportSupportScripts
/**
* Export support scripts
*
* @param
* @return
*/
function exportSupportScripts()
{
// basic js
copy('./Services/JavaScript/js/Basic.js', $this->js_dir . '/Basic.js');
copy('./Services/UIComponent/Overlay/js/ilOverlay.js', $this->js_dir . '/ilOverlay.js');
// jquery
include_once "./Services/jQuery/classes/class.iljQueryUtil.php";
copy(iljQueryUtil::getLocaljQueryPath(), $this->js_dir . '/jquery.js');
copy(iljQueryUtil::getLocaljQueryUIPath(), $this->js_dir . '/jquery-ui-min.js');
copy(iljQueryUtil::getLocalMaphilightPath(), $this->js_dir . '/maphilight.js');
// yui stuff we use
include_once "./Services/YUI/classes/class.ilYuiUtil.php";
copy(ilYuiUtil::getLocalPath('yahoo/yahoo-min.js'), $this->js_yahoo_dir . '/yahoo-min.js');
copy(ilYuiUtil::getLocalPath('yahoo-dom-event/yahoo-dom-event.js'), $this->js_yahoo_dir . '/yahoo-dom-event.js');
copy(ilYuiUtil::getLocalPath('animation/animation-min.js'), $this->js_yahoo_dir . '/animation-min.js');
copy(ilYuiUtil::getLocalPath('container/container-min.js'), $this->js_yahoo_dir . '/container-min.js');
copy(ilYuiUtil::getLocalPath('container/assets/skins/sam/container.css'), $this->css_dir . '/container.css');
// accordion
copy('./Services/Accordion/js/accordion.js', $this->js_dir . '/accordion.js');
copy('./Services/Accordion/css/accordion.css', $this->css_dir . '/accordion.css');
// page presentation js
copy('./Services/COPage/js/ilCOPagePres.js', $this->js_dir . '/ilCOPagePres.js');
// tooltip
copy('./Services/UIComponent/Tooltip/js/ilTooltip.js', $this->js_dir . '/ilTooltip.js');
// mediaelement.js
include_once "./Services/MediaObjects/classes/class.ilPlayerUtil.php";
ilPlayerUtil::copyPlayerFilesToTargetDirectory($this->flv_dir);
// matching question
copy('./Modules/TestQuestionPool/js/ilMatchingQuestion.js', $this->js_dir . '/ilMatchingQuestion.js');
copy('./Modules/TestQuestionPool/templates/default/test_javascript.css', $this->css_dir . '/test_javascript.css');
// copy(ilPlayerUtil::getLocalMediaElementCssPath(),
// $this->css_dir.'/mediaelementplayer.css');
// copy(ilPlayerUtil::getLocalMediaElementJsPath(),
// $this->js_dir.'/mediaelement-and-player.js');
}