/** * Constructor */ public function __construct($a_id, $a_parent_obj, $a_parent_cmd) { parent::__construct($a_id, $a_parent_obj, $a_parent_cmd); include_once "./Services/Skill/classes/class.ilVirtualSkillTree.php"; $this->vtree = new ilVirtualSkillTree(); $this->setSkipRootNode(false); $this->setAjax(false); }
/** * Constructor */ public function __construct($a_parent_obj, $a_parent_cmd, $a_select_gui, $a_select_cmd, $a_select_par = "selected_skill") { parent::__construct("skill_sel", $a_parent_obj, $a_parent_cmd); $this->select_gui = is_object($a_select_gui) ? strtolower(get_class($a_select_gui)) : $a_select_gui; $this->select_cmd = $a_select_cmd; $this->select_par = $a_select_par; include_once "./Services/Skill/classes/class.ilSkillTree.php"; $this->tree = new ilSkillTree(); $this->setSkipRootNode(false); $this->setAjax(false); }
/** * Constructor */ public function __construct($a_expl_id, $a_parent_obj, $a_parent_cmd, $a_tree) { parent::__construct($a_expl_id, $a_parent_obj, $a_parent_cmd); $this->tree = $a_tree; }
/** * Get initialisation HTML to use interna link editing */ function getInitHTML($a_url, $a_move_to_body = false) { global $tpl, $lng; $lng->loadLanguageModule("link"); $tpl->addJavaScript("./Services/UIComponent/Explorer/js/ilExplorer.js"); include_once "./Services/UIComponent/Explorer2/classes/class.ilExplorerBaseGUI.php"; ilExplorerBaseGUI::init(); include_once "./Services/YUI/classes/class.ilYuiUtil.php"; ilYuiUtil::initConnection(); $tpl->addJavascript("./Services/Link/js/ilIntLink.js"); include_once "./Services/UIComponent/Modal/classes/class.ilModalGUI.php"; $modal = ilModalGUI::getInstance(); $modal->setHeading($lng->txt("link_link")); $modal->setId("ilIntLinkModal"); $modal->setBody("<div id='ilIntLinkModalContent'></div>"); $ltpl = new ilTemplate("tpl.int_link_panel.html", true, true, "Services/Link"); $ltpl->setVariable("MODAL", $modal->getHTML()); $ltpl->setVariable("IL_INT_LINK_URL", $a_url); return $ltpl->get(); }
/** * 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"; include_once "./Services/UIComponent/Explorer2/classes/class.ilExplorerBaseGUI.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/TestQuestionPool/js/ilMatchingQuestion.js', "target" => $a_target_dir . '/js/ilMatchingQuestion.js', "type" => "js"), array("source" => './Modules/Scorm2004/templates/default/question_handling.css', "target" => $a_target_dir . '/css/question_handling.css', "type" => "css"), array("source" => './Modules/TestQuestionPool/templates/default/test_javascript.css', "target" => $a_target_dir . '/css/test_javascript.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"), array("source" => ilExplorerBaseGUI::getLocalExplorerJsPath(), "target" => $a_target_dir . "/" . ilExplorerBaseGUI::getLocalExplorerJsPath(), "type" => "js"), array("source" => ilExplorerBaseGUI::getLocalJsTreeJsPath(), "target" => $a_target_dir . "/" . ilExplorerBaseGUI::getLocalJsTreeJsPath(), "type" => "js"), array("source" => './Modules/LearningModule/js/LearningModule.js', "target" => $a_target_dir . '/js/LearningModule.js', "type" => "js")); $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; }
/** * Get HTML * * @return string html */ function getHTML() { if ($this->getPreloadChilds()) { $this->preloadChilds(); } return parent::getHTML(); }