ilTaxonomySettingsGUI: ilObjTaxonomyGUI
More...
◆ __construct()
◆ executeCommand()
ilTaxonomySettingsGUI::executeCommand |
( |
| ) |
|
Definition at line 84 of file class.ilTaxonomySettingsGUI.php.
References ILIAS\Repository\ctrl(), ilCtrl\getCmd(), ilCtrl\getNextClass(), ilCtrl\setReturn(), and ILIAS\Repository\tabs().
86 $ctrl = $this->gui->ctrl();
91 $this->
tabs->activateSubTab(
"tax_settings");
93 switch ($next_class) {
95 case strtolower(ilObjTaxonomyGUI::class):
96 $ctrl->setReturn($this,
"");
97 $tax_gui = $this->gui->getObjTaxonomyGUI($this->rep_obj_id);
98 if ($this->assigned_item_sorting) {
99 $tax_gui->activateAssignedItemSorting(
100 $this->assigned_item_info_obj,
101 $this->assigned_item_comp_id,
102 $this->assigned_item_obj_id,
103 $this->assigned_item_type
106 $this->
ctrl->forwardCommand($tax_gui);
110 if (in_array($cmd, [
"listTaxonomies"])) {
getCmd(?string $fallback_command=null)
getNextClass($a_gui_class=null)
◆ listTaxonomies()
ilTaxonomySettingsGUI::listTaxonomies |
( |
| ) |
|
|
protected |
Definition at line 116 of file class.ilTaxonomySettingsGUI.php.
References $components, Vendor\Package\$f, $multiple, $r, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\UI\examples\MainControls\SystemInfo\multiple().
118 $f = $this->gui->ui()->factory();
119 $r = $this->gui->ui()->renderer();
120 $um = $this->domain->usage();
121 $tax_ids = $um->getUsageOfObject($this->rep_obj_id,
true);
122 if ($this->
multiple || count($tax_ids) === 0) {
123 $this->toolboar->addButton(
124 $this->
lng->txt(
"tax_add_taxonomy"),
125 $this->
ctrl->getLinkTargetByClass(ilObjTaxonomyGUI::class,
"createAssignedTaxonomy")
128 $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
"tax_max_one_tax"));
131 foreach($tax_ids as $t) {
132 $this->
ctrl->setParameterByClass(ilObjTaxonomyGUI::class,
"tax_id", $t[
"tax_id"]);
134 $action[] =
$f->button()->shy(
135 $this->
lng->txt(
"edit"),
136 $this->
ctrl->getLinkTargetByClass(ilObjTaxonomyGUI::class,
"listNodes")
138 $action[] =
$f->button()->shy(
139 $this->
lng->txt(
"delete"),
140 $this->
ctrl->getLinkTargetByClass(ilObjTaxonomyGUI::class,
"confirmDeleteTaxonomy")
143 if ($this->modifier) {
144 $properties = $this->modifier->getProperties((
int) $t[
"tax_id"]);
145 foreach ($this->modifier->getActions((
int) $t[
"tax_id"]) as $act) {
149 $dd =
$f->dropdown()->standard($action);
150 $item =
$f->item()->standard($t[
"title"])->withActions($dd);
151 if (count($properties) > 0) {
152 $item = $item->withProperties($properties);
157 ? $this->
lng->txt(
"obj_taxf")
158 : $this->
lng->txt(
"obj_tax");
159 $panel =
$f->panel()->listing()->standard(
161 [
$f->item()->group(
"", $items) ]
164 if ($this->list_info !==
"") {
165 $this->tpl->setOnScreenMessage(
"info", $this->list_info);
multiple()
description: > This example show how the UI-Elements itself looks like.
◆ withAssignedItemSorting()
ilTaxonomySettingsGUI::withAssignedItemSorting |
( |
ilTaxAssignedItemInfo |
$a_item_info_obj, |
|
|
string |
$a_component_id, |
|
|
int |
$a_obj_id, |
|
|
string |
$a_item_type |
|
) |
| |
Definition at line 69 of file class.ilTaxonomySettingsGUI.php.
76 $new->assigned_item_sorting =
true;
77 $new->assigned_item_info_obj = $a_item_info_obj;
78 $new->assigned_item_comp_id = $a_component_id;
79 $new->assigned_item_obj_id = $a_obj_id;
80 $new->assigned_item_type = $a_item_type;
◆ $assigned_item_comp_id
string ilTaxonomySettingsGUI::$assigned_item_comp_id = "" |
|
protected |
◆ $assigned_item_info_obj
◆ $assigned_item_obj_id
int ilTaxonomySettingsGUI::$assigned_item_obj_id = 0 |
|
protected |
◆ $assigned_item_sorting
bool ilTaxonomySettingsGUI::$assigned_item_sorting = false |
|
protected |
◆ $assigned_item_type
string ilTaxonomySettingsGUI::$assigned_item_type = "" |
|
protected |
◆ $ctrl
ilCtrl ilTaxonomySettingsGUI::$ctrl |
|
protected |
◆ $domain
ILIAS Taxonomy InternalDomainService ilTaxonomySettingsGUI::$domain |
|
protected |
◆ $gui
ILIAS Taxonomy InternalGUIService ilTaxonomySettingsGUI::$gui |
|
protected |
◆ $list_info
string ilTaxonomySettingsGUI::$list_info |
|
protected |
◆ $lng
◆ $modifier
ILIAS Taxonomy Settings ModifierGUIInterface ilTaxonomySettingsGUI::$modifier |
|
protected |
◆ $multiple
bool ilTaxonomySettingsGUI::$multiple |
|
protected |
◆ $rep_obj_id
int ilTaxonomySettingsGUI::$rep_obj_id |
|
protected |
◆ $tabs
◆ $toolboar
◆ $tpl
The documentation for this class was generated from the following file: