4require_once 
'Services/Table/classes/class.ilTable2GUI.php';
 
   27                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   37                $this->
setStyle(
'table', 
'fullwidth');
 
   39                $this->
addColumn($this->lng->txt(
"tst_question_title"),
'title', 
'');
 
   41                if ($this->show_postponed)
 
   43                        $this->
addColumn($this->lng->txt(
"postpone_status") ,
'postponed', 
'');
 
   46                if ($this->show_marker)
 
   48                        $this->
addColumn($this->lng->txt(
"tst_question_marker"),
'marked', 
'');
 
   51                $this->
setTitle($this->lng->txt(
'tst_tracked_question_list'));
 
   53                $this->
setRowTemplate(
"tpl.il_as_tst_tracked_questions_row.html", 
"Modules/Test");
 
   59                $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   75                if (strlen(
$data[
'description']))
 
   77                        $this->tpl->setCurrentBlock(
'description');
 
   79                        $this->tpl->parseCurrentBlock();
 
   82                if( $this->show_postponed )
 
   84                        if(
$data[
'postponed'])
 
   86                                $this->tpl->setCurrentBlock(
'postponed');
 
   87                                $this->tpl->setVariable(
'POSTPONED', $this->lng->txt(
'postponed'));
 
   88                                $this->tpl->parseCurrentBlock();
 
   92                                $this->tpl->setCurrentBlock(
'postponed');
 
   93                                $this->tpl->touchBlock(
'postponed');
 
   94                                $this->tpl->parseCurrentBlock();
 
   98                if ($this->show_marker)
 
  102                                $this->tpl->setCurrentBlock(
'marked_img');
 
  103                                $this->tpl->setVariable(
"HREF_MARKED", 
ilUtil::img(
'./templates/default/images/marked.svg', $this->lng->txt(
"tst_question_marked"), 
'24px', 
'24px'));
 
  104                                $this->tpl->parseCurrentBlock();
 
  106                                $this->tpl->setCurrentBlock(
'marker');
 
  107                                $this->tpl->parseCurrentBlock();
 
  111                                $this->tpl->setCurrentBlock(
'marker');
 
  112                                $this->tpl->touchBlock(
'marker');
 
  113                                $this->tpl->parseCurrentBlock();
 
  118                if( 
$data[
"obligatory"] )
 
  120                        $OBLIGATORY = 
"<img src=\"".ilUtil::getImagePath(
"obligatory.gif", 
"Modules/Test").
 
  121                                        "\" alt=\"".$this->lng->txt(
"question_obligatory").
 
  122                                        "\" title=\"".$this->lng->txt(
"question_obligatory").
"\" />";
 
  124                else $OBLIGATORY = 
'';
 
  127                $this->tpl->setVariable(
"QUESTION_OBLIGATORY", $OBLIGATORY);
 
  129                $this->tpl->setVariable(
"ORDER", 
$data[
'order']);
 
  131                $this->tpl->setVariable(
"HREF", 
$data[
'href']);
 
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.
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
__construct($a_parent_obj, $a_parent_cmd, $show_postponed, $show_marker)
Constructor.
getPostponedLabel($isPostponed)
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