38 $this->
setId(
'orgu_types_table');
42 $this->
addColumn($this->DIC->language()->txt(
'action'),
'',
'100px',
false,
'text-right');
44 $this->
setFormAction($this->DIC->ctrl()->getFormAction($this->parent_obj));
58 $obj = ilOrgUnitPosition::find($set[
"id"]);
60 $this->tpl->setVariable(
'TITLE', $obj->getTitle());
61 $this->tpl->setVariable(
'DESCRIPTION', $obj->getDescription());
62 $this->tpl->setVariable(
'AUTHORITIES', implode(
"<br>", $obj->getAuthorities()));
65 ->setParameterByClass(ilOrgUnitPositionGUI::class, BaseCommands::AR_ID, $set[
'id']);
67 $selection->setListTitle($this->DIC->language()->txt(
'actions'));
68 $selection->setId(BaseCommands::AR_ID . $set[
'id']);
69 $selection->addItem($this->DIC->language()->txt(
'edit'),
'edit', $this->DIC->ctrl()
71 if (!$obj->isCorePosition()) {
72 $selection->addItem($this->DIC->language()->txt(
'delete'),
'delete', $this->DIC->ctrl()
76 $this->tpl->setVariable(
'ACTIONS', $selection->getHTML());
85 foreach ($this->columns as $column) {
86 $this->
addColumn($this->DIC->language()->txt($column), $column);
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
static getArray($key=null, $values=null)
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
const CMD_CONFIRM_DELETION
Class ilOrgUnitPositionTableGUI.
initColumns()
Add columns.
__construct(BaseCommands $parent_obj, $parent_cmd)
ilOrgUnitPositionTableGUI constructor.
buildData()
Build and set data for table.
setPrefix($a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
fillRow($a_set)
Standard Version of Fill Row.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc