50 $ilCtrl = $DIC[
'ilCtrl'];
53 $this->
ctrl = $ilCtrl;
54 $this->ui_factory = $DIC[
'ui.factory'];
55 $this->ui_renderer = $DIC[
'ui.renderer'];
58 $this->
setStyle(
'table',
'fullwidth');
60 $this->
setRowTemplate(
"tpl.il_as_tst_list_of_questions_row.html",
"Modules/Test");
71 public function init(): void
76 $this->
setTitle($this->
lng->txt(
'obligations_summary'));
78 $this->
setTitle($this->
lng->txt(
'question_summary'));
83 $this->
addColumn($this->
lng->txt(
"tst_qst_order"),
'order',
'');
84 $this->
addColumn($this->
lng->txt(
"tst_question_title"),
'title',
'');
87 $this->
addColumn($this->
lng->txt(
"obligatory"),
'obligatory',
'');
93 $this->
addColumn($this->
lng->txt(
"tst_maximum_points"),
'points',
'');
96 #$this->addColumn($this->lng->txt("worked_through"),'worked_through', ''); 97 $this->
addColumn($this->
lng->txt(
"answered"),
'answered',
'');
100 $this->
addColumn($this->
lng->txt(
"answered"),
'answered',
'');
104 $this->
addColumn($this->
lng->txt(
"tst_question_marker"),
'marked',
'');
111 $this->
lng->txt(
'tst_resume_test')
116 $button->setCaption(
'finish_test');
125 $this->tpl->setCurrentBlock(
'points');
126 $this->tpl->setVariable(
"POINTS", $a_set[
'points'] .
' ' . $this->
lng->txt(
"points_short"));
127 $this->tpl->parseCurrentBlock();
129 if (strlen($a_set[
'description'])) {
130 $this->tpl->setCurrentBlock(
'description');
132 $this->tpl->parseCurrentBlock();
135 if ($a_set[
'marked']) {
136 $this->tpl->setCurrentBlock(
'marked_img');
137 $this->tpl->setVariable(
141 $this->
lng->txt(
"tst_question_marked"),
146 $this->tpl->parseCurrentBlock();
148 $this->tpl->touchBlock(
'marker');
155 if ($a_set[
'isAnswered']) {
156 $value = $this->
lng->txt(
"yes");
158 $this->tpl->setCurrentBlock(
'answered_col');
159 $this->tpl->setVariable(
'ANSWERED', $value);
160 $this->tpl->parseCurrentBlock();
164 if ($a_set[
"obligatory"]) {
165 $icon = $this->ui_factory->symbol()->icon()->custom(
167 $this->
lng->txt(
'question_obligatory')
170 $OBLIGATORY = $this->ui_renderer->render(
$icon);
174 $this->tpl->setVariable(
"QUESTION_OBLIGATORY", $OBLIGATORY);
178 $a_set[
'postponed'] ? $this->
lng->txt(
'postponed') :
'' 181 if ($a_set[
'disabled']) {
182 $this->tpl->setCurrentBlock(
'static_title');
184 $this->tpl->parseCurrentBlock();
186 $this->
ctrl->setParameter($this->parent_obj,
'sequence', $a_set[
'sequence']);
187 $this->
ctrl->setParameter($this->parent_obj,
'pmode',
'');
190 $this->tpl->setCurrentBlock(
'linked_title');
192 $this->tpl->setVariable(
"HREF", $href);
193 $this->tpl->parseCurrentBlock();
196 $this->tpl->setVariable(
"ORDER", $a_set[
'order']);
197 $this->tpl->setVariable(
"POSTPONED", $postponed);
198 if ($a_set[
"worked_through"]) {
199 $this->tpl->setVariable(
"WORKED_THROUGH", $this->
lng->txt(
"yes"));
201 $this->tpl->setVariable(
"WORKED_THROUGH",
' ');
enable(string $a_module_name)
addCommandButtonInstance(ilButtonBase $a_button)
setFormAction(string $a_form_action, bool $a_multipart=false)
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setShowPointsEnabled($showPointsEnabled)
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setFinishTestButtonEnabled(bool $finishTestButtonEnabled)
isFinishTestButtonEnabled()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setFormName(string $a_name="")
static img(string $a_src, ?string $a_alt=null, $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
__construct($a_parent_obj, $a_parent_cmd)
setStyle(string $a_element, string $a_style)
isObligationsFilterEnabled()
setObligationsNotAnswered($obligationsNotAnswered)
setShowObligationsEnabled($showObligationsEnabled)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
bool $obligationsFilterEnabled
isShowObligationsEnabled()
bool $showObligationsEnabled
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
bool $obligationsNotAnswered
__construct(Container $dic, ilPlugin $plugin)
setLimit(int $a_limit=0, int $a_default_limit=0)
setObligationsFilterEnabled($obligationsFilterEnabled)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
disable(string $a_module_name)
bool $finishTestButtonEnabled
setShowMarkerEnabled($showMarkerEnabled)
areObligationsNotAnswered()