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
190 if ($row[
'marked']) {
191 $tpl->setCurrentBlock(
"mark_icon");
193 $tpl->setVariable(
"ICON_TEXT", $this->lng->txt(
'tst_question_marked'));
194 $tpl->setVariable(
"ICON_CLASS",
'ilTestMarkQuestionIcon');
195 $tpl->parseCurrentBlock();
198 $tpl->setCurrentBlock(
'linked_entry');
199 $tpl->setVariable(
'HREF', $this->
buildLink($row[
'sequence']));
201 $tpl->setVariable(
'NEXTSEQ', $row[
'sequence']);
202 $tpl->setVariable(
'CLASS', $class);
205 $tpl->parseCurrentBlock();
210 $tpl->setCurrentBlock(
'item');
223 return $panel->getHTML();
232 $this->ctrl->setParameter(
238 $this->ctrl->setParameter(
246 $this->ctrl->setParameter(
251 $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)
Create styles array
The data for the language used.
const HEADING_STYLE_SUBHEADING
static getInstance()
Get instance.
const PANEL_STYLE_SECONDARY
__construct(ilCtrl $ctrl, ilLanguage $lng)
buildLink($sequenceElement)