4require_once 
'Services/Table/classes/class.ilTable2GUI.php';
 
   26        public function __construct($a_parent_obj, $a_parent_cmd = 
"")
 
   34                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   37                $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
 
   49                foreach ($a_set as $key => $value)
 
   51                        $this->tpl->setVariable(
"VAL_".strtoupper($key), $value);
 
   65                $this->total_data[$a_key] = $a_value;
 
   91                if(!$this->enabled[
'content'])
 
  103                $this->
setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
 
  122                        $this->tpl->addBlockFile(
"TBL_CONTENT", 
"tbl_content", $this->row_template,
 
  123                                $this->row_template_dir);
 
  125                        foreach(
$data as $set)
 
  127                                $this->tpl->setCurrentBlock(
"tbl_content");
 
  128                                $this->css_row = ($this->css_row != 
"tblrow1")
 
  131                                $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
 
  134                                $this->tpl->setCurrentBlock(
"tbl_content");
 
  135                                $this->tpl->parseCurrentBlock();
 
  138                        $this->css_row_2 = ($this->css_row == 
"tblrow1")
 
  142                        $this->tpl->setCurrentBlock(
'totals_row');
 
  144                        foreach($this->total_data as $key => $value)
 
  146                                $this->tpl->setVariable(
'CSS_ROW_2', $this->css_row_2);
 
  147                                $this->tpl->setVariable($key,  $value);
 
  149                        $this->tpl->parseCurrentBlock();
 
  157                                : $lng->txt(
"no_items");
 
  159                        $this->css_row = ($this->css_row != 
"tblrow1")
 
  163                        $this->tpl->setCurrentBlock(
"tbl_no_entries");
 
  164                        $this->tpl->setVariable(
'TBL_NO_ENTRY_CSS_ROW', $this->css_row);
 
  165                        $this->tpl->setVariable(
'TBL_NO_ENTRY_COLUMN_COUNT', $this->column_count);
 
  166                        $this->tpl->setVariable(
'TBL_NO_ENTRY_TEXT', trim($no_items_text));
 
  167                        $this->tpl->parseCurrentBlock();
 
  171                if ($this->form_action != 
"")
 
  174                        if (is_object(
$ilUser) && 
$ilUser->prefs[
"screen_reader_optimization"])
 
  176                                $hash = 
"#".$this->getTopAnchor();
 
  179                        $this->tpl->setCurrentBlock(
"tbl_form_header");
 
  180                        $this->tpl->setVariable(
"FORMACTION", $this->
getFormAction().$hash);
 
  181                        $this->tpl->setVariable(
"FORMNAME", $this->
getFormName());
 
  182                        $this->tpl->parseCurrentBlock();
 
  183                        $this->tpl->touchBlock(
"tbl_form_footer");
 
getFormName()
Get Form name.
prepareOutput()
Anything that must be done before HTML is generated.
getNoEntriesText()
Get text for an empty table.
getParentObject()
Get parent object.
getFormAction()
Get Form action parameter.
render()
render table @access public
determineOffsetAndOrder($a_omit_offset=false)
Determine offset and order.
getExternalSorting()
Get external sorting.
fillFooter()
Fill footer row.
getExternalSegmentation()
Get external segmentation.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
fillActionRow()
Fill Action Row.
numericOrdering($a_field)
Should this field be sorted numeric?
getOrderDirection()
Get order direction.
setMaxCount($a_max_count)
set max.
setFooter($a_style, $a_previous=0, $a_next=0)
set order direction @access public
static sortArray($array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray