35 $this->
setId(
"qpl_print");
40 $ilCtrl = $DIC[
'ilCtrl'];
43 $this->
ctrl = $ilCtrl;
45 $this->
setTitle($this->
lng->txt($this->outputmode));
46 $this->
ctrl->setParameterByClass(
'ilObjQuestionPoolGUI',
'output',
$outputmode);
49 $this->
setStyle(
'table',
'fullwidth');
51 $this->
addCommandButton(
'print', $this->
lng->txt(
'print'),
"javascript:window.print();return false;");
53 $this->
setRowTemplate(
"tpl.il_as_qpl_printview_row.html",
"Modules/TestQuestionPool");
69 if (strcmp(
$c,
'description') == 0) {
70 $this->
addColumn($this->
lng->txt(
"description"),
'description',
'');
72 if (strcmp(
$c,
'author') == 0) {
73 $this->
addColumn($this->
lng->txt(
"author"),
'author',
'');
75 if (strcmp(
$c,
'ttype') == 0) {
76 $this->
addColumn($this->
lng->txt(
"question_type"),
'ttype',
'');
78 if (strcmp(
$c,
'points') == 0) {
81 if (strcmp(
$c,
'created') == 0) {
82 $this->
addColumn($this->
lng->txt(
"create_date"),
'created',
'');
84 if (strcmp(
$c,
'updated') == 0) {
85 $this->
addColumn($this->
lng->txt(
"last_update"),
'updated',
'');
99 $cols[
"description"] = array(
100 "txt" =>
$lng->
txt(
"description"),
103 $cols[
"author"] = array(
107 $cols[
"ttype"] = array(
108 "txt" =>
$lng->
txt(
"question_type"),
111 $cols[
"points"] = array(
115 $cols[
"created"] = array(
116 "txt" =>
$lng->
txt(
"create_date"),
119 $cols[
"updated"] = array(
120 "txt" =>
$lng->
txt(
"last_update"),
137 if (strcmp($c,
'description') == 0) {
138 $this->tpl->setCurrentBlock(
'description');
139 $this->tpl->setVariable(
143 $this->tpl->parseCurrentBlock();
145 if (strcmp($c,
'author') == 0) {
146 $this->tpl->setCurrentBlock(
'author');
148 $this->tpl->parseCurrentBlock();
150 if (strcmp($c,
'ttype') == 0) {
151 $this->tpl->setCurrentBlock(
'ttype');
153 $this->tpl->parseCurrentBlock();
155 if (strcmp($c,
'points') == 0) {
156 $this->tpl->setCurrentBlock(
'points');
158 $this->tpl->parseCurrentBlock();
160 if (strcmp($c,
'created') == 0) {
161 $this->tpl->setCurrentBlock(
'created');
163 $this->tpl->parseCurrentBlock();
165 if (strcmp($c,
'updated') == 0) {
166 $this->tpl->setCurrentBlock(
'updated');
168 $this->tpl->parseCurrentBlock();
171 if ((strcmp($this->outputmode,
"detailed_output_solutions") == 0) || (strcmp($this->outputmode,
"detailed_output_printview") == 0)) {
172 $this->tpl->setCurrentBlock(
"overview_row_detail");
175 if (strcmp($this->outputmode,
"detailed_output_solutions") == 0) {
176 $solutionoutput = $question_gui->getSolutionOutput(0, null,
false,
false,
false,
false,
true,
false);
177 if (strlen($solutionoutput) == 0) {
178 $solutionoutput = $question_gui->getPreview();
180 $this->tpl->setVariable(
"DETAILS", $solutionoutput);
181 $this->tpl->setVariable(
"ROW_DETAIL_COLSPAN", $this->column_count);
183 $this->tpl->setVariable(
"DETAILS", $question_gui->getPreview());
184 $this->tpl->setVariable(
"ROW_DETAIL_COLSPAN", $this->column_count);
186 $this->tpl->parseCurrentBlock();
197 if (in_array($a_field, array(
'points',
'created',
'updated'))) {
__construct($a_parent_obj, $a_parent_cmd, $outputmode='')
enable(string $a_module_name)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
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="")
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
fillRow(array $a_set)
fill row public
setTotalPoints($totalPoints)
setFormName(string $a_name="")
static instantiateQuestionGUI(int $a_question_id)
numericOrdering(string $a_field)
setStyle(string $a_element, string $a_style)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static setUseRelativeDates(bool $a_status)
set use relative dates
const RENDER_PURPOSE_PREVIEW