4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   22        function __construct($a_parent_obj, $a_parent_cmd, $a_parent_id)
 
   26                $this->
setId(
"rtgcat");
 
   28                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   30                $this->
addColumn($this->lng->txt(
"position"));
 
   31                $this->
addColumn($this->lng->txt(
"title"), 
"title");
 
   32                $this->
addColumn($this->lng->txt(
"description"), 
"description");
 
   33                $this->
addColumn($this->lng->txt(
"actions"));
 
   36                $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
 
   37                $this->
setRowTemplate(
"tpl.rating_category_row.html", 
"Services/Rating");
 
   39                $this->
addCommandButton(
"updateorder", $lng->txt(
"rating_update_positions"));
 
   51                include_once 
"Services/Rating/classes/class.ilRatingCategory.php";
 
   66            $this->tpl->setVariable(
"VAL_ID", $a_set[
"id"]);
 
   67            $this->tpl->setVariable(
"VAL_POS", $a_set[
"pos"]);
 
   68            $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
 
   69            $this->tpl->setVariable(
"TXT_DESCRIPTION", nl2br($a_set[
"description"]));
 
   71                $ilCtrl->setParameter($this->parent_obj, 
"cat_id", $a_set[
"id"]);
 
   74                $items[
"edit"] = array(
$lng->txt(
"edit"), 
$ilCtrl->getLinkTarget($this->parent_obj, 
"edit"));
 
   75                $items[
"delete"] = array(
$lng->txt(
"delete"), 
$ilCtrl->getLinkTarget($this->parent_obj, 
"confirmDelete"));
 
   77                $this->tpl->setCurrentBlock(
"actions");
 
   78                foreach($items as $item)
 
   80                        $this->tpl->setVariable(
"ACTION_CAPTION", $item[0]);
 
   81                        $this->tpl->setVariable(
"ACTION_LINK", $item[1]);
 
   82                        $this->tpl->parseCurrentBlock();
 
fillRow($a_set)
Fill table row.
getItems($a_parent_obj_id)
Build item rows for given object and filter(s)
__construct($a_parent_obj, $a_parent_cmd, $a_parent_id)
Constructor.
static getAllForObject($a_parent_obj_id)
Get all categories for object.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setEnableHeader($a_enableheader)
Set Enable Header.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
setMaxCount($a_max_count)
set max.