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');
166 if( strlen($row[
'description']) )
168 $description =
" title=\"{$row['description']}\" ";
178 $row[
'worked_through'] ?
'answered'.$active :
'unanswered'.$active
196 $tpl->setCurrentBlock(
"mark_icon");
198 $tpl->setVariable(
"ICON_TEXT", $this->lng->txt(
'tst_question_marked'));
199 $tpl->setVariable(
"ICON_CLASS",
'ilTestMarkQuestionIcon');
200 $tpl->parseCurrentBlock();
203 $tpl->setCurrentBlock(
'linked_entry');
204 $tpl->setVariable(
'HREF', $this->
buildLink($row[
'sequence']));
206 $tpl->setVariable(
'NEXTSEQ', $row[
'sequence']);
207 $tpl->setVariable(
'CLASS', $class);
209 $tpl->setVariable(
"DESCRIPTION", $description);
210 $tpl->parseCurrentBlock();
215 $tpl->setCurrentBlock(
'item');
228 return $panel->getHTML();
237 $this->ctrl->setParameter(
241 $this->ctrl->setParameter(
247 $this->ctrl->setParameter(
250 $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)