ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilTaxSelectInputGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 protected bool $multi_nodes;
28 protected int $taxononmy_id;
29
30 public function __construct(int $a_taxonomy_id, string $a_postvar, bool $a_multi = false)
31 {
32 global $DIC;
33
34 $this->lng = $DIC->language();
35 $this->ctrl = $DIC->ctrl();
36 $lng = $DIC->language();
37 $ilCtrl = $DIC->ctrl();
38
40 $this->multi_nodes = $a_multi;
41 $ilCtrl->setParameterByClass("ilformpropertydispatchgui", "postvar", $a_postvar);
42 $this->explorer_gui = new ilTaxonomyExplorerGUI(
43 array("ilformpropertydispatchgui", "iltaxselectinputgui"),
44 $this->getExplHandleCmd(),
45 $a_taxonomy_id,
46 "",
47 "",
48 "tax_expl_" . $a_postvar
49 );
50 $this->explorer_gui->setSelectMode($a_postvar . "_sel", $this->multi_nodes);
51 $this->explorer_gui->setSkipRootNode(true);
52
54 ilObject::_lookupTitle($a_taxonomy_id),
55 $a_postvar,
56 $this->explorer_gui,
57 $this->multi_nodes
58 );
59 $this->setType("tax_select");
60
61 if ((int) $a_taxonomy_id == 0) {
62 throw new ilTaxonomyException("No taxonomy ID passed to ilTaxSelectInputGUI.");
63 }
64
65 $this->setTaxonomyId((int) $a_taxonomy_id);
66 $this->tax = new ilObjTaxonomy($this->getTaxonomyId());
67 }
68
69 public function setTaxonomyId(int $a_val): void
70 {
71 $this->taxononmy_id = $a_val;
72 }
73
74 public function getTaxonomyId(): int
75 {
77 }
78
82 public function getTitleForNodeId($a_id): string
83 {
84 return ilTaxonomyNode::_lookupTitle((int) $a_id);
85 }
86}
Select explorer tree nodes input GUI.
getExplHandleCmd()
Get explorer handle command function.
loadLanguageModule(string $a_module)
Load language module.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupTitle(int $obj_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(int $a_taxonomy_id, string $a_postvar, bool $a_multi=false)
getTitleForNodeId($a_id)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupTitle(int $a_obj_id)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26