5 require_once
'Services/Table/classes/class.ilTable2GUI.php';
6 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
7 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php';
81 $this->
setTitle( sprintf($lng->txt(
'tst_question_hints_table_header'), $questionOBJ->
getTitle()) );
91 if( $this->tableMode == self::TBL_MODE_ADMINISTRATION )
93 $this->
setRowTemplate(
'tpl.tst_question_hints_administration_table_row.html',
'Modules/TestQuestionPool');
97 $rowCount = count($tableData);
103 $this->
setRowTemplate(
'tpl.tst_question_hints_testoutput_table_row.html',
'Modules/TestQuestionPool');
123 $this->
setFormAction( $ilCtrl->getFormAction($this->parent_obj) );
125 if( $this->hintOrderingClipboard->hasStored() )
129 $lng->txt(
'tst_questions_hints_table_multicmd_paste_hint_before')
134 $lng->txt(
'tst_questions_hints_table_multicmd_paste_hint_after')
137 elseif( $rowCount > 0 )
141 $lng->txt(
'tst_questions_hints_table_multicmd_delete_hint')
146 $lng->txt(
'tst_questions_hints_table_multicmd_cut_hint')
151 $lng->txt(
'tst_questions_hints_table_cmd_save_order')
168 $this->
setFormAction( $ilCtrl->getFormAction($this->parent_obj) );
172 $lng->txt(
'tst_question_hints_back_to_question')
190 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_order'),
'hint_index',
'60');
191 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_text'),
'hint_text');
192 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_points'),
'hint_points',
'250');
216 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_index'),
'hint_index',
'200');
217 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_text'),
'hint_text');
218 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_points'),
'hint_points',
'200');
257 if( $this->tableMode == self::TBL_MODE_ADMINISTRATION )
266 $list->setListTitle($lng->txt(
'actions'));
267 $list->setId(
"advsl_hint_{$rowData['hint_id']}_actions");
269 $list->addItem($lng->txt(
'tst_question_hints_table_link_edit_hint'),
'', $editHref);
270 $list->addItem($lng->txt(
'tst_question_hints_table_link_delete_hint'),
'', $deleteHref);
272 $this->tpl->setVariable(
'ACTIONS', $list->getHTML());
274 $this->tpl->setVariable(
'HINT_ID', $rowData[
'hint_id']);
284 $this->tpl->setVariable(
'HINT_HREF', $showHref);
286 $hintIndex = sprintf($lng->txt(
'tst_question_hints_index_column_label'), $rowData[
'hint_index']);
289 $this->tpl->setVariable(
'HINT_INDEX', $hintIndex);
290 $this->tpl->setVariable(
'HINT_TEXT', $rowData[
'hint_text']);
291 $this->tpl->setVariable(
'HINT_POINTS', $rowData[
'hint_points']);