当前位置: 首页>>代码示例>>PHP>>正文


PHP iljQueryUtil::getLocaljQueryPath方法代码示例

本文整理汇总了PHP中iljQueryUtil::getLocaljQueryPath方法的典型用法代码示例。如果您正苦于以下问题:PHP iljQueryUtil::getLocaljQueryPath方法的具体用法?PHP iljQueryUtil::getLocaljQueryPath怎么用?PHP iljQueryUtil::getLocaljQueryPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在iljQueryUtil的用法示例。


在下文中一共展示了iljQueryUtil::getLocaljQueryPath方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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');
 }
开发者ID:khanhnnvn,项目名称:ilias_E-learning,代码行数:43,代码来源:class.ilCOPageHTMLExport.php

示例2: 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;
 }
开发者ID:Walid-Synakene,项目名称:ilias,代码行数:19,代码来源:class.ilObjContentObject.php

示例3: getPlayer

 public function getPlayer()
 {
     global $ilUser, $lng, $ilias, $ilSetting;
     // player basic config data
     $initSuspendData = null;
     $initAdlactData = null;
     if ($this->slm->getSequencing() == true) {
         $initSuspendData = json_decode($this->getSuspendDataInit());
         $initAdlactData = json_decode($this->getADLActDataInit());
         $initGlobalobjData = $this->readGObjectiveInit();
     }
     $config = $this->getConfigForPlayer();
     //session
     if ($this->slm->getSession()) {
         //			$session_timeout = (int)($ilias->ini->readVariable("session","expire"))/2;
         $session_timeout = (int) ilSession::getIdleValue() / 2;
     } else {
         $session_timeout = 0;
     }
     $config['session_ping'] = $session_timeout;
     //url strings
     $store_url = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=cmi&ref_id=' . $_GET["ref_id"];
     $unload_url = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=scormPlayerUnload&ref_id=' . $_GET["ref_id"];
     if ($this->slm->getSessionDeactivated()) {
         $store_url = 'storeScorm2004.php?package_id=' . $this->packageId . '&ref_id=' . $_GET["ref_id"] . '&client_id=' . $this->ilias->client_id . '&do=store';
         $unload_url = 'storeScorm2004.php?package_id=' . $this->packageId . '&ref_id=' . $_GET["ref_id"] . '&client_id=' . $this->ilias->client_id . '&do=unload';
     }
     $config['cp_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=cp&ref_id=' . $_GET["ref_id"];
     $config['cmi_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=cmi&ref_id=' . $_GET["ref_id"];
     $config['store_url'] = $store_url;
     $config['get_adldata_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=getSharedData&ref_id=' . $_GET["ref_id"];
     $config['set_adldata_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=setSharedData&ref_id=' . $_GET["ref_id"];
     $config['adlact_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=adlact&ref_id=' . $_GET["ref_id"];
     $config['specialpage_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=specialPage&ref_id=' . $_GET["ref_id"];
     $config['suspend_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=suspend&ref_id=' . $_GET["ref_id"];
     $config['get_suspend_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=getSuspend&ref_id=' . $_GET["ref_id"];
     //next 2 lines could be deleted later
     $config['gobjective_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=gobjective&ref_id=' . $_GET["ref_id"];
     $config['get_gobjective_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=getGobjective&ref_id=' . $_GET["ref_id"];
     $config['ping_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=pingSession&ref_id=' . $_GET["ref_id"];
     $config['scorm_player_unload_url'] = $unload_url;
     $config['post_log_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=postLogEntry&ref_id=' . $_GET["ref_id"];
     $config['livelog_url'] = 'ilias.php?baseClass=ilSAHSPresentationGUI' . '&cmd=liveLogContent&ref_id=' . $_GET["ref_id"];
     $config['package_url'] = $this->getDataDirectory() . "/";
     //editor
     $config['envEditor'] = $this->envEditor;
     //debug
     $config['debug'] = $this->slm->getDebug();
     $config['debug_fields'] = $this->getDebugValues();
     $config['debug_fields_test'] = $this->getDebugValues(true);
     //language strings
     $langstrings['btnStart'] = $lng->txt('scplayer_start');
     $langstrings['btnExit'] = $lng->txt('scplayer_exit');
     $langstrings['btnExitAll'] = $lng->txt('scplayer_exitall');
     $langstrings['btnSuspendAll'] = $lng->txt('scplayer_suspendall');
     $langstrings['btnPrevious'] = $lng->txt('scplayer_previous');
     $langstrings['btnContinue'] = $lng->txt('scplayer_continue');
     $langstrings['btnhidetree'] = $lng->txt('scplayer_hidetree');
     $langstrings['btnshowtree'] = $lng->txt('scplayer_showtree');
     $langstrings['linkexpandTree'] = $lng->txt('scplayer_expandtree');
     $langstrings['linkcollapseTree'] = $lng->txt('scplayer_collapsetree');
     $langstrings['contCreditOff'] = $lng->txt('cont_credit_off');
     $config['langstrings'] = $langstrings;
     //template variables
     //$this->tpl = new ilTemplate("tpl.scorm2004.player.html", false, false, "Modules/Scorm2004");
     $this->tpl = new ilTemplate("tpl.scorm2004.player.html", true, true, "Modules/Scorm2004");
     include_once "./Services/jQuery/classes/class.iljQueryUtil.php";
     $this->tpl->setVariable("JS_FILE", iljQueryUtil::getLocaljQueryPath());
     // include ilias rte css, if given
     $rte_css = $this->slm->getDataDirectory() . "/ilias_css_4_2/css/style.css";
     if (is_file($rte_css)) {
         $this->tpl->setCurrentBlock("rte_css");
         $this->tpl->setVariable("RTE_CSS", $rte_css);
         $this->tpl->parseCurrentBlock();
     }
     $this->tpl->setVariable('JSON_LANGSTRINGS', json_encode($langstrings));
     // include_once("./Services/YUI/classes/class.ilYuiUtil.php");
     // $this->tpl->setVariable('YUI_PATH', ilYuiUtil::getLocalPath());
     // $this->tpl->setVariable('TREE_JS', "./Services/UIComponent/NestedList/js/ilNestedList.js");
     $this->tpl->setVariable('TREE_JS', "./Modules/Scorm2004/scripts/ilNestedList.js");
     $this->tpl->setVariable($langstrings);
     $this->tpl->setVariable('DOC_TITLE', 'ILIAS SCORM 2004 Player');
     if ($this->slm->getIe_compatibility()) {
         $this->tpl->setVariable('IE_COMPATIBILITY', '<meta http-equiv="X-UA-Compatible" content="IE=7" />');
     }
     $this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
     $this->tpl->setVariable('INIT_CP_DATA', json_encode(json_decode($this->getCPDataInit())));
     $this->tpl->setVariable('INIT_CMI_DATA', json_encode($this->getCMIData($this->userId, $this->packageId)));
     $this->tpl->setVariable('INIT_ADLACT_DATA', json_encode($initAdlactData));
     $this->tpl->setVariable('INIT_GLOBALOBJ_DATA', json_encode($initGlobalobjData));
     $this->tpl->setVariable('JS_DATA', json_encode($config));
     list($tsfrac, $tsint) = explode(' ', microtime());
     $this->tpl->setVariable('TIMESTAMP', sprintf('%d%03d', $tsint, 1000 * (double) $tsfrac));
     $this->tpl->setVariable('BASE_DIR', './Modules/Scorm2004/');
     $this->tpl->setVariable('TXT_COLLAPSE', $lng->txt('scplayer_collapsetree'));
     if ($this->slm->getDebug()) {
         $this->tpl->setVariable('TXT_DEBUGGER', $lng->txt('scplayer_debugger'));
         $this->tpl->setVariable('DEBUG_URL', "PopupCenter('ilias.php?baseClass=ilSAHSPresentationGUI&cmd=debugGUI&ref_id=" . $_GET["ref_id"] . "','Debug',800,600);");
     } else {
         $this->tpl->setVariable('TXT_DEBUGGER', '');
//.........这里部分代码省略.........
开发者ID:arlendotcn,项目名称:ilias,代码行数:101,代码来源:ilSCORM13Player.php

示例4: 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');
 }
开发者ID:arlendotcn,项目名称:ilias,代码行数:41,代码来源:class.ilCOPageHTMLExport.php

示例5: while

$steps = 0;
while (!file_exists('ilias.ini.php')) {
    chdir('..');
    ++$steps;
}
require_once 'Services/Init/classes/class.ilInitialisation.php';
ilInitialisation::initILIAS();
/**
 * @var $ilIliasIniFile ilIniFile
 * @var $ilUser         ilObjUser
 */
global $ilIliasIniFile, $ilUser;
$tpl = new ilTemplate(dirname(__FILE__) . '/tpl.latex.html', true, true);
$tpl->resetJavascript();
require_once 'Services/jQuery/classes/class.iljQueryUtil.php';
$jquery_path = iljQueryUtil::getLocaljQueryPath();
if (strpos($jquery_path, './') === 0) {
    $jquery_path = substr($jquery_path, 2);
} else {
    if (strpos($jquery_path, '.') === 0) {
        $jquery_path = substr($jquery_path, 1);
    }
}
$mathJaxSetting = new ilSetting('MathJax');
if ($mathJaxSetting->get('enable')) {
    $tpl->addJavaScript($mathJaxSetting->get('path_to_mathjax'));
    $tpl->setCurrentBlock('js_on_change_math_jax');
    $tpl->touchBlock('js_on_change_math_jax');
    $tpl->parseCurrentBlock();
    $tpl->setCurrentBlock('delimiter_latex');
    $tpl->setVariable('DELIMITER', (int) $mathJaxSetting->get('limiter'));
开发者ID:arlendotcn,项目名称:ilias,代码行数:31,代码来源:latex.php


注:本文中的iljQueryUtil::getLocaljQueryPath方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。