57 $this->questionSummaryData = array();
58 $this->currentSequenceElement = null;
59 $this->disabled =
false;
147 require_once
'Services/UIComponent/Panel/classes/class.ilPanelGUI.php';
151 $panel->setHeading($this->lng->txt(
'list_of_questions'));
160 $tpl =
new ilTemplate(
'tpl.il_as_tst_list_of_questions_short.html',
true,
true,
'Modules/Test');
165 if (strlen($row[
'description'])) {
174 $row[
'worked_through'] ?
'answered' . $active :
'unanswered' . $active
177 if ($row[
'marked']) {
178 $tpl->setCurrentBlock(
"mark_icon");
180 $tpl->setVariable(
"ICON_TEXT", $this->lng->txt(
'tst_question_marked'));
181 $tpl->setVariable(
"ICON_CLASS",
'ilTestMarkQuestionIcon');
182 $tpl->parseCurrentBlock();
185 if ($this->
isDisabled() || $row[
'disabled']) {
186 $tpl->setCurrentBlock(
'disabled_entry');
187 $tpl->setVariable(
'CLASS', $class);
190 $tpl->parseCurrentBlock();
194 $tpl->setCurrentBlock(
'linked_entry');
195 $tpl->setVariable(
'HREF', $this->
buildLink($row[
'sequence']));
197 $tpl->setVariable(
'NEXTSEQ', $row[
'sequence']);
198 $tpl->setVariable(
'CLASS', $class);
201 $tpl->parseCurrentBlock();
204 $tpl->setCurrentBlock(
'item');
217 return $panel->getHTML();
226 $this->ctrl->setParameter(
232 $this->ctrl->setParameter(
240 $this->ctrl->setParameter(
245 $this->ctrl->setParameter(
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
This class provides processing control methods.
setQuestionSummaryData($questionSummaryData)
getCurrentSequenceElement()
getCurrentPresentationMode()
setCurrentSequenceElement($currentSequenceElement)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
special template class to simplify handling of ITX/PEAR
setCurrentPresentationMode($currentPresentationMode)
const HEADING_STYLE_SUBHEADING
static getInstance()
Get instance.
const PANEL_STYLE_SECONDARY
__construct(ilCtrl $ctrl, ilLanguage $lng)
buildLink($sequenceElement)