/** * Constructor * */ public function __construct($a_parent_obj, $a_parent_cmd = "", $a_template_context = "") { global $lng; parent::__construct(0, false); $this->unique_id = md5(uniqid()); $this->parent_obj = $a_parent_obj; $this->parent_cmd = $a_parent_cmd; $this->buttons = array(); $this->header_commands = array(); $this->multi = array(); $this->hidden_inputs = array(); $this->formname = "table_" . $this->unique_id; $this->tpl = new ilTemplate("tpl.table2.html", true, true, "Services/Table"); $lng->loadLanguageModule('tbl'); if (!$a_template_context) { $a_template_context = $this->getId(); } $this->setContext($a_template_context); // activate export mode if (isset($_GET[$this->prefix . "_xpt"])) { $this->export_mode = (int) $_GET[$this->prefix . "_xpt"]; } // template handling if (isset($_GET[$this->prefix . "_tpl"])) { $this->restoreTemplate($_GET[$this->prefix . "_tpl"]); } $this->determineLimit(); $this->setIsDataTable(true); $this->setEnableNumInfo(true); $this->determineSelectedColumns(); }