/** * Test getSkillLevelsForTrigger * * @param * @return */ function testLevels() { global $tpl, $lng, $ilCtrl, $ilTabs; $this->setTestSubTabs("levels"); $ilTabs->activateTab("test"); include_once "./Services/Skill/classes/class.ilBasicSkill.php"; include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; $this->form = new ilPropertyFormGUI(); $this->form->addCommandButton("testLevels", $lng->txt("execute")); $this->form->setTitle("getTriggerOfAllCertificates()"); $this->form->setFormAction($ilCtrl->getFormAction($this)); // user id $ti = new ilTextInputGUI("Ref ID", "ref_id"); $ti->setMaxLength(200); $ti->setValue($_POST["ref_id"]); $this->form->addItem($ti); $result = ""; if (isset($_POST["ref_id"])) { $result = ilBasicSkill::getSkillLevelsForTrigger($_POST["ref_id"]); $result = "<br />Result:<br />" . var_export($result, true); } $tpl->setContent($this->form->getHTML() . $result); }