5include_once 
"Services/Table/classes/class.ilTable2GUI.php";
 
   17    public function __construct($a_parent_obj, $a_parent_cmd, $a_cat_id)
 
   21        $this->ctrl = 
$DIC->ctrl();
 
   22        $this->lng = 
$DIC->language();
 
   26        $this->cat_id = $a_cat_id;
 
   27        $this->
setId(
"exccrit" . $this->cat_id);
 
   29        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   36        $this->
addColumn($this->lng->txt(
"position"), 
"pos", 
"10%");
 
   37        $this->
addColumn($this->lng->txt(
"title"), 
"title");
 
   38        $this->
addColumn($this->lng->txt(
"type"), 
"type");
 
   39        $this->
addColumn($this->lng->txt(
"actions"));
 
   45        $this->
setRowTemplate(
"tpl.exc_crit_row.html", 
"Modules/Exercise");
 
   64                "id" => $item->getId()
 
   65                ,
"type" => $item->getTranslatedType()
 
   67                ,
"title" => $item->getTitle()
 
   73        return (
bool) 
sizeof(
$data);
 
   78        return in_array($a_field, array(
"pos"));
 
   86        $this->tpl->setVariable(
"ID", $a_set[
"id"]);
 
   87        $this->tpl->setVariable(
"POS", $a_set[
"pos"]);
 
   88        $this->tpl->setVariable(
"TYPE", $a_set[
"type"]);
 
   89        $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
 
   95        $this->tpl->setCurrentBlock(
"action_bl");
 
   96        $this->tpl->setVariable(
"ACTION_URL", 
$url);
 
   97        $this->tpl->setVariable(
"ACTION_TXT", 
$lng->txt(
"edit"));
 
   98        $this->tpl->parseCurrentBlock();
 
An exception for terminatinating execution or to throw for unit testing.
Class ilExcCriteriaTableGUI.
__construct($a_parent_obj, $a_parent_cmd, $a_cat_id)
ilTable2GUI constructor.
fillRow($a_set)
Standard Version of Fill Row.
numericOrdering($a_field)
Should this field be sorted numeric?
static getInstancesByParentId($a_parent_id)
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setLimit($a_limit=0, $a_default_limit=0)
set max.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.