3 declare(strict_types=1);
28 $factory = $DIC->ui()->factory();
32 public function getNodes(
33 NodeFactory $node_factory,
34 IconFactory $icon_factory,
35 ?
string $parent_id =
null,
39 public function getNodesAsLeaf(
40 NodeFactory $node_factory,
41 IconFactory $icon_factory,
48 $input = $factory->input()->field()->treeSelect(
50 "select a single node",
51 "you should not be able to click the button above!",
54 $input = $input->withDisabled(
true);
56 $form = $factory->input()->container()->form()->standard(
'#', [$input]);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This is how a factory for icons looks like.