4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
5 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
6 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionHintRequestGUI.php';
80 $this->
setTitle( sprintf($lng->txt(
'tst_question_hints_table_header'), $questionOBJ->
getTitle()) );
89 if( $this->questionOBJ->isAdditionalContentEditingModePageObject() )
91 require_once
'Modules/TestQuestionPool/classes/class.ilAssHintPageGUI.php';
93 foreach( $tableData as $key =>
$data )
96 $pageObjectGUI->setOutputMode(
"presentation");
97 $tableData[$key][
'hint_text'] = $pageObjectGUI->presentation();
103 if( $this->tableMode == self::TBL_MODE_ADMINISTRATION )
105 $this->
setRowTemplate(
'tpl.tst_question_hints_administration_table_row.html',
'Modules/TestQuestionPool');
109 $rowCount = count($tableData);
115 $this->
setRowTemplate(
'tpl.tst_question_hints_testoutput_table_row.html',
'Modules/TestQuestionPool');
135 $this->
setFormAction( $ilCtrl->getFormAction($this->parent_obj) );
137 if( $this->hintOrderingClipboard->hasStored() )
141 $lng->txt(
'tst_questions_hints_table_multicmd_paste_hint_before')
146 $lng->txt(
'tst_questions_hints_table_multicmd_paste_hint_after')
149 elseif( $rowCount > 0 )
153 $lng->txt(
'tst_questions_hints_table_multicmd_delete_hint')
158 $lng->txt(
'tst_questions_hints_table_multicmd_cut_hint')
163 $lng->txt(
'tst_questions_hints_table_cmd_save_order')
180 $this->
setFormAction( $ilCtrl->getFormAction($this->parent_obj) );
184 $lng->txt(
'tst_question_hints_back_to_question')
202 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_order'),
'hint_index',
'60');
203 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_text'),
'hint_text');
204 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_points'),
'hint_points',
'250');
228 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_index'),
'hint_index',
'200');
229 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_text'),
'hint_text');
230 $this->
addColumn( $lng->txt(
'tst_question_hints_table_column_hint_points'),
'hint_points',
'200');
269 if( $this->tableMode == self::TBL_MODE_ADMINISTRATION )
272 $list->setListTitle($lng->txt(
'actions'));
273 $list->setId(
"advsl_hint_{$rowData['hint_id']}_actions");
275 if( $this->questionOBJ->isAdditionalContentEditingModePageObject() )
279 $list->addItem($lng->txt(
'tst_question_hints_table_link_edit_hint_points'),
'', $editPointsHref);
281 $editPageHref = $ilCtrl->getLinkTargetByClass(
'ilasshintpagegui',
'edit');
283 $list->addItem($lng->txt(
'tst_question_hints_table_link_edit_hint_page'),
'', $editPageHref);
289 $list->addItem($lng->txt(
'tst_question_hints_table_link_edit_hint'),
'', $editHref);
294 $list->addItem($lng->txt(
'tst_question_hints_table_link_delete_hint'),
'', $deleteHref);
296 $this->tpl->setVariable(
'ACTIONS', $list->getHTML());
298 $this->tpl->setVariable(
'HINT_ID', $rowData[
'hint_id']);
306 $showHref = $this->parent_obj->getHintPresentationLinkTarget($rowData[
'hint_id']);
308 $this->tpl->setVariable(
'HINT_HREF', $showHref);
313 $this->tpl->setVariable(
'HINT_INDEX', $hintIndex);
314 $this->tpl->setVariable(
'HINT_TEXT', $rowData[
'hint_text']);
315 $this->tpl->setVariable(
'HINT_POINTS', $rowData[
'hint_points']);