/** * inits the notification telling the user, * that a hint is stored to hint ordering clipboard * * @access private * @global ilLanguage $lng */ private function initHintOrderingClipboardNotification() { global $lng; if (!$this->hintOrderingClipboard->hasStored()) { return; } $questionHint = ilAssQuestionHint::getInstanceById($this->hintOrderingClipboard->getStored()); ilUtil::sendInfo(sprintf($lng->txt('tst_question_hints_item_stored_in_ordering_clipboard'), $questionHint->getIndex())); }
/** * inits the required command buttons / multi selection commands * for administration table mode * * @access private * @global ilCtrl $ilCtrl * @global ilLanguage $lng * @param integer $rowCount */ private function initAdministrationCommands($rowCount) { global $ilCtrl, $lng; $this->setFormAction($ilCtrl->getFormAction($this->parent_obj)); if ($this->hintOrderingClipboard->hasStored()) { $this->addMultiCommand(ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_BEFORE, $lng->txt('tst_questions_hints_table_multicmd_paste_hint_before')); $this->addMultiCommand(ilAssQuestionHintsGUI::CMD_PASTE_FROM_ORDERING_CLIPBOARD_AFTER, $lng->txt('tst_questions_hints_table_multicmd_paste_hint_after')); } elseif ($rowCount > 0) { $this->addMultiCommand(ilAssQuestionHintsGUI::CMD_CONFIRM_DELETE, $lng->txt('tst_questions_hints_table_multicmd_delete_hint')); if ($rowCount > 1) { $this->addMultiCommand(ilAssQuestionHintsGUI::CMD_CUT_TO_ORDERING_CLIPBOARD, $lng->txt('tst_questions_hints_table_multicmd_cut_hint')); } $this->addCommandButton(ilAssQuestionHintsGUI::CMD_SAVE_LIST_ORDER, $lng->txt('tst_questions_hints_table_cmd_save_order')); } }