5include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   34                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   42                $this->
setStyle(
'table', 
'fullwidth');
 
   44                $this->
setRowTemplate(
"tpl.il_as_tst_list_of_questions_row.html", 
"Modules/Test");
 
   48                $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   61                        $this->
setTitle($this->lng->txt(
'obligations_summary'));
 
   65                        $this->
setTitle($this->lng->txt(
'question_summary'));
 
   70                $this->
addColumn($this->lng->txt(
"tst_qst_order"),
'order', 
'');
 
   71                $this->
addColumn($this->lng->txt(
"tst_question_title"),
'title', 
'');
 
   75                        $this->
addColumn($this->lng->txt(
"obligatory"), 
'obligatory', 
'');
 
   82                        $this->
addColumn($this->lng->txt(
"tst_maximum_points"),
'points', 
'');
 
   85                $this->
addColumn($this->lng->txt(
"worked_through"),
'worked_through', 
'');
 
   89                        $this->
addColumn($this->lng->txt(
"answered"),
'answered', 
'');
 
   94                        $this->
addColumn($this->lng->txt(
"tst_question_marker"),
'marked', 
'');
 
  104                        $button->setCaption(
'save_finish');
 
  105                        $button->setCommand(
'finishTest');
 
  121                        $this->tpl->setCurrentBlock(
'points');
 
  122                        $this->tpl->setVariable(
"POINTS", 
$data[
'points']);
 
  123                        $this->tpl->parseCurrentBlock();
 
  125                if (strlen(
$data[
'description']))
 
  127                        $this->tpl->setCurrentBlock(
'description');
 
  129                        $this->tpl->parseCurrentBlock();
 
  135                                $this->tpl->setCurrentBlock(
'marked_img');
 
  136                                $this->tpl->setVariable(
"HREF_MARKED", 
ilUtil::img(
'./templates/default/images/marked.svg', $this->lng->txt(
"tst_question_marked"), 
'24px', 
'24px'));
 
  137                                $this->tpl->parseCurrentBlock();
 
  141                                $this->tpl->touchBlock(
'marker');
 
  148                        if( 
$data[
'isAnswered'] )
 
  150                                $value = $this->lng->txt(
"yes");
 
  152                        $this->tpl->setCurrentBlock(
'answered_col');
 
  153                        $this->tpl->setVariable(
'ANSWERED', $value);
 
  154                        $this->tpl->parseCurrentBlock();
 
  157                        if( 
$data[
"obligatory"] )
 
  159                                $OBLIGATORY = 
"<img src=\"".ilUtil::getImagePath(
"obligatory.gif", 
"Modules/Test").
 
  160                                        "\" alt=\"".$this->lng->txt(
"question_obligatory").
 
  161                                        "\" title=\"".$this->lng->txt(
"question_obligatory").
"\" />";
 
  163                        else $OBLIGATORY = 
'';
 
  164                        $this->tpl->setVariable(
"QUESTION_OBLIGATORY", $OBLIGATORY);
 
  167                $this->tpl->setVariable(
"ORDER", 
$data[
'order']);
 
  169                $this->tpl->setVariable(
"HREF", 
$data[
'href']);
 
  170                $this->tpl->setVariable(
"POSTPONED", 
$data[
'postponed']);
 
  171                if (
$data[
"worked_through"])
 
  173                        $this->tpl->setVariable(
"WORKED_THROUGH", $this->lng->txt(
"yes"));
 
  177                        $this->tpl->setVariable(
"WORKED_THROUGH", 
' ');
 
setShowPointsEnabled($showPointsEnabled)
$obligationsFilterEnabled
isShowObligationsEnabled()
areObligationsNotAnswered()
setShowMarkerEnabled($showMarkerEnabled)
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
setShowObligationsEnabled($showObligationsEnabled)
setObligationsFilterEnabled($obligationsFilterEnabled)
setObligationsNotAnswered($obligationsNotAnswered)
isObligationsFilterEnabled()
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormName($a_formname)
Set Form name.
addCommandButtonInstance(ilButton $a_button)
Add Command button instance.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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)
setLimit($a_limit=0, $a_default_limit=0)
set max.
enable($a_module_name)
enables particular modules of table
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms @access public