4 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
5 require_once
'Services/Form/classes/class.ilNumberInputGUI.php';
6 require_once
'Services/Table/classes/class.ilTable2GUI.php';
33 parent::__construct($controller, $default_cmd);
39 $this->
addMultiCommand(
'confirmDeleteUnits', $this->lng->txt(
'delete'));
43 $this->
setTitle(sprintf($this->lng->txt(
'un_units_of_category_x'), $category->getDisplayString()));
45 $this->
addColumn($this->lng->txt(
'un_sequence'),
'');
46 $this->
addColumn($this->lng->txt(
'unit'),
'');
47 $this->
addColumn($this->lng->txt(
'baseunit'),
'');
48 $this->
addColumn($this->lng->txt(
'factor'),
'');
54 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject(),
'showUnitsOfCategory'));
59 $this->
setRowTemplate(
'tpl.unit_row_html',
'Modules/TestQuestionPool');
77 $sequence->setValue($this->position++ * 10);
78 $sequence->setMinValue(0);
79 $sequence->setSize(3);
80 $row[
'sequence'] = $sequence->render();
83 $action->setId(
'asl_content_' .
$row[
'unit_id']);
84 $action->setAsynch(
false);
85 $action->setListTitle($this->lng->txt(
'actions'));
87 $action->addItem($this->lng->txt(
'edit'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'showUnitModificationForm'));
88 $action->addItem($this->lng->txt(
'delete'),
'', $ilCtrl->getLinkTarget($this->
getParentObject(),
'confirmDeleteUnit'));
90 $row[
'actions'] = $action->getHtml();
92 if(
$row[
'unit_id'] ==
$row[
'baseunit_id'])
94 $row[
'baseunit'] =
'';
96 parent::fillRow(
$row);
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct($a_parent_obj, $a_parent_cmd="", $a_template_context="")
Constructor.
Class ilUnitConfigurationGUI .
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
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.
User interface class for advanced drop-down selection lists.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
fillRow($a_set)
Standard Version of Fill Row.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
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.
static formCheckbox($checked, $varname, $value, $disabled=false)
??? public
setLimit($a_limit=0, $a_default_limit=0)