5 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
6 require_once
'Modules/Test/classes/class.ilTestPlayerCommands.php';
37 parent::__construct($a_parent_obj, $a_parent_cmd);
45 $this->
setStyle(
'table',
'fullwidth');
47 $this->
setRowTemplate(
"tpl.il_as_tst_list_of_questions_row.html",
"Modules/Test");
51 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
63 $this->
setTitle($this->lng->txt(
'obligations_summary'));
65 $this->
setTitle($this->lng->txt(
'question_summary'));
70 $this->
addColumn($this->lng->txt(
"tst_qst_order"),
'order',
'');
71 $this->
addColumn($this->lng->txt(
"tst_question_title"),
'title',
'');
74 $this->
addColumn($this->lng->txt(
"obligatory"),
'obligatory',
'');
80 $this->
addColumn($this->lng->txt(
"tst_maximum_points"),
'points',
'');
83 #$this->addColumn($this->lng->txt("worked_through"),'worked_through', ''); 84 $this->
addColumn($this->lng->txt(
"answered"),
'answered',
'');
87 $this->
addColumn($this->lng->txt(
"answered"),
'answered',
'');
91 $this->
addColumn($this->lng->txt(
"tst_question_marker"),
'marked',
'');
98 $this->lng->txt(
'back')
103 $button->setCaption(
'finish_test');
119 $this->tpl->setCurrentBlock(
'points');
120 $this->tpl->setVariable(
"POINTS",
$data[
'points'] .
' ' . $this->lng->txt(
"points_short"));
121 $this->tpl->parseCurrentBlock();
123 if (strlen(
$data[
'description'])) {
124 $this->tpl->setCurrentBlock(
'description');
126 $this->tpl->parseCurrentBlock();
129 if (
$data[
'marked']) {
130 $this->tpl->setCurrentBlock(
'marked_img');
131 $this->tpl->setVariable(
"HREF_MARKED",
ilUtil::img(
'./templates/default/images/marked.svg', $this->lng->txt(
"tst_question_marked"),
'24px',
'24px'));
132 $this->tpl->parseCurrentBlock();
134 $this->tpl->touchBlock(
'marker');
141 if (
$data[
'isAnswered']) {
142 $value = $this->lng->txt(
"yes");
144 $this->tpl->setCurrentBlock(
'answered_col');
145 $this->tpl->setVariable(
'ANSWERED', $value);
146 $this->tpl->parseCurrentBlock();
150 if (
$data[
"obligatory"]) {
151 require_once
'Services/UIComponent/Glyph/classes/class.ilGlyphGUI.php';
156 $this->tpl->setVariable(
"QUESTION_OBLIGATORY", $OBLIGATORY);
159 $this->ctrl->setParameter($this->parent_obj,
'sequence',
$data[
'sequence']);
160 $this->ctrl->setParameter($this->parent_obj,
'pmode',
'');
164 $data[
'postponed'] ? $this->lng->txt(
'postponed') :
'' 167 $this->tpl->setVariable(
"ORDER",
$data[
'order']);
169 $this->tpl->setVariable(
"HREF", $href);
170 $this->tpl->setVariable(
"POSTPONED", $postponed);
171 if (
$data[
"worked_through"]) {
172 $this->tpl->setVariable(
"WORKED_THROUGH", $this->lng->txt(
"yes"));
174 $this->tpl->setVariable(
"WORKED_THROUGH",
' ');
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
addCommandButtonInstance(ilButtonBase $a_button)
Add Command button instance.
setStyle($a_element, $a_style)
setFinishTestButtonEnabled($finishTestButtonEnabled)
setShowPointsEnabled($showPointsEnabled)
static get($a_glyph, $a_text="")
Get glyph html.
isFinishTestButtonEnabled()
$obligationsFilterEnabled
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
isObligationsFilterEnabled()
setObligationsNotAnswered($obligationsNotAnswered)
setShowObligationsEnabled($showObligationsEnabled)
enable($a_module_name)
enables particular modules of table
isShowObligationsEnabled()
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
setFormName($a_formname="")
Set Form name.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setObligationsFilterEnabled($obligationsFilterEnabled)
setShowMarkerEnabled($showMarkerEnabled)
areObligationsNotAnswered()
setLimit($a_limit=0, $a_default_limit=0)