4include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   29                $this->
setId(
"qpl_print");
 
   30                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   39                $this->
setStyle(
'table', 
'fullwidth');
 
   41                $this->
addCommandButton(
'print', $this->lng->txt(
'print'), 
"javascript:window.print();return false;");
 
   43                $this->
setRowTemplate(
"tpl.il_as_qpl_printview_row.html", 
"Modules/TestQuestionPool");
 
   45                $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   58                $this->
addColumn($this->lng->txt(
"title"),
'title', 
'');
 
   62                        if (strcmp($c, 
'description') == 0) $this->
addColumn($this->lng->txt(
"description"),
'description', 
'');
 
   63                        if (strcmp($c, 
'author') == 0) $this->
addColumn($this->lng->txt(
"author"),
'author', 
'');
 
   64                        if (strcmp($c, 
'ttype') == 0) $this->
addColumn($this->lng->txt(
"question_type"),
'ttype', 
'');
 
   66                        if (strcmp($c, 
'created') == 0) $this->
addColumn($this->lng->txt(
"create_date"),
'created', 
'');
 
   67                        if (strcmp($c, 
'updated') == 0) $this->
addColumn($this->lng->txt(
"last_update"),
'updated', 
'');
 
   73                return $this->lng->txt(
"points") . 
' ('.$this->getTotalPoints().
')';
 
   79                $cols[
"description"] = array(
 
   80                        "txt" => 
$lng->txt(
"description"),
 
   83                $cols[
"author"] = array(
 
   84                        "txt" => 
$lng->txt(
"author"),
 
   87                $cols[
"ttype"] = array(
 
   88                        "txt" => 
$lng->txt(
"question_type"),
 
   91                $cols[
"points"] = array(
 
   92                        "txt" => 
$lng->txt(
"points"),
 
   95                $cols[
"created"] = array(
 
   96                        "txt" => 
$lng->txt(
"create_date"),
 
   99                $cols[
"updated"] = array(
 
  100                        "txt" => 
$lng->txt(
"last_update"),
 
  119                        if (strcmp($c, 
'description') == 0)
 
  121                                $this->tpl->setCurrentBlock(
'description');
 
  123                                $this->tpl->parseCurrentBlock();
 
  125                        if (strcmp($c, 
'author') == 0)
 
  127                                $this->tpl->setCurrentBlock(
'author');
 
  129                                $this->tpl->parseCurrentBlock();
 
  131                        if (strcmp($c, 
'ttype') == 0)
 
  133                                $this->tpl->setCurrentBlock(
'ttype');
 
  135                                $this->tpl->parseCurrentBlock();
 
  137                        if (strcmp($c, 
'points') == 0)
 
  139                                $this->tpl->setCurrentBlock(
'points');
 
  141                                $this->tpl->parseCurrentBlock();
 
  143                        if(strcmp($c, 
'created') == 0)
 
  145                                $this->tpl->setCurrentBlock(
'created');
 
  147                                $this->tpl->parseCurrentBlock();
 
  149                        if(strcmp($c, 
'updated') == 0)
 
  151                                $this->tpl->setCurrentBlock(
'updated');
 
  153                                $this->tpl->parseCurrentBlock();
 
  156                if ((strcmp($this->outputmode, 
"detailed") == 0) || (strcmp($this->outputmode, 
"detailed_printview") == 0))
 
  158                        $this->tpl->setCurrentBlock(
"overview_row_detail");
 
  159                        include_once 
"./Modules/TestQuestionPool/classes/class.assQuestion.php";
 
  162                        if (strcmp($this->outputmode, 
"detailed") == 0)
 
  164                                $solutionoutput = $question_gui->getSolutionOutput($active_id = 
"", 
$pass = NULL, $graphicalOutput = FALSE, $result_output = FALSE, $show_question_only = FALSE, $show_feedback = FALSE, $show_correct_solution = 
true, $show_manual_scoring = 
false);
 
  165                                if (strlen($solutionoutput) == 0) $solutionoutput = $question_gui->getPreview();
 
  166                                $this->tpl->setVariable(
"DETAILS", $solutionoutput);
 
  167                                $this->tpl->setVariable(
"ROW_DETAIL_COLSPAN", $this->column_count);
 
  171                                $this->tpl->setVariable(
"DETAILS", $question_gui->getPreview());
 
  172                                $this->tpl->setVariable(
"ROW_DETAIL_COLSPAN", $this->column_count);
 
  174                        $this->tpl->parseCurrentBlock();
 
  185                if(in_array(
$column, array(
'points', 
'created', 
'updated')))
 
An exception for terminatinating execution or to throw for unit testing.
const RENDER_PURPOSE_PREVIEW
static & _instanciateQuestionGUI($question_id)
Creates an instance of a question gui with a given question id.
static setUseRelativeDates($a_status)
set use relative dates
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
getSelectableColumns()
Get selectable columns.
__construct($a_parent_obj, $a_parent_cmd, $outputmode='')
Constructor.
setTotalPoints($totalPoints)
getSelectedColumns()
Get selected columns.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormName($a_formname="")
Set Form name.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
disable($a_module_name)
diesables particular modules of table
setStyle($a_element, $a_style)
enable($a_module_name)
enables particular modules of table
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public