6 include_once(
"Services/Table/classes/class.ilTable2GUI.php");
24 public function __construct($a_parent_obj, $a_parent_cmd, $a_file_list)
28 $this->ctrl = $DIC->ctrl();
29 $this->lng = $DIC->language();
31 $lng = $DIC->language();
33 parent::__construct($a_parent_obj, $a_parent_cmd);
39 $this->
addColumn(
$lng->txt(
"cont_characteristic"),
"",
"50%");
46 "tpl.file_list_row.html",
50 $this->file_list = $a_file_list;
51 $this->
setData($this->file_list->getFileList());
55 if (count($this->
getData()) > 0) {
57 $this->
addCommandButton(
"savePositionsAndClasses",
$lng->txt(
"cont_save_positions_and_classes"));
76 $this->tpl->setCurrentBlock(
"class_sel");
77 $sel = ($a_set[
"class"] ==
"")
82 "class[" . $a_set[
"hier_id"] .
":" . $a_set[
"pc_id"] .
"]",
87 $this->tpl->parseCurrentBlock();
91 $this->tpl->setVariable(
"POS", $this->pos);
92 $this->tpl->setVariable(
"FID", $a_set[
"hier_id"] .
":" . $a_set[
"pc_id"]);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd, $a_file_list)
static _lookupTitle($a_id)
lookup object title
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
TableGUI class for file list.
fillRow($a_set)
Standard Version of Fill Row.
setLimit($a_limit=0, $a_default_limit=0)