|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Provides the objects of a learning sequence as flat list of nodes for tree selects. More...
Inheritance diagram for ILIAS\LearningSequence\Content\Condition\LSOItemNodeRetrieval:
Collaboration diagram for ILIAS\LearningSequence\Content\Condition\LSOItemNodeRetrieval:Public Member Functions | |
| __construct (protected array $items) | |
| getNodes (NodeFactory $node_factory, IconFactory $icon_factory, array $sync_node_id_whitelist=[], ?string $parent_id=null,) | |
| This method will be called by the tree select input and tree multi select input to generate the tree which is displayed on the client. More... | |
| getNodesAsLeaf (NodeFactory $node_factory, IconFactory $icon_factory, array $node_ids,) | |
| This method will be called by the UI framework in order to retrieve Leaf instances for provided/submitted values (node-ids). More... | |
| getNodes (NodeFactory $node_factory, IconFactory $icon_factory, array $sync_node_id_whitelist=[], ?string $parent_id=null,) | |
| This method will be called by the tree select input and tree multi select input to generate the tree which is displayed on the client. More... | |
| getNodesAsLeaf (NodeFactory $node_factory, IconFactory $icon_factory, array $node_ids,) | |
| This method will be called by the UI framework in order to retrieve Leaf instances for provided/submitted values (node-ids). More... | |
Provides the objects of a learning sequence as flat list of nodes for tree selects.
Definition at line 30 of file LSOItemNodeRetrieval.php.
| ILIAS\LearningSequence\Content\Condition\LSOItemNodeRetrieval::__construct | ( | protected array | $items | ) |
| ILIAS\LearningSequence\Content\Condition\LSOItemNodeRetrieval::getNodes | ( | NodeFactory | $node_factory, |
| IconFactory | $icon_factory, | ||
| array | $sync_node_id_whitelist = [], |
||
| ?string | $parent_id = null |
||
| ) |
This method will be called by the tree select input and tree multi select input to generate the tree which is displayed on the client.
Parts of the tree can be rendered asynchronously, by generating an
When this method is provided with a $sync_node_id_whitelist by the UI framework, you MUST generate a complete path from the root to each node (id) in the whitelist. The whitelist is derived from selected node-ids and already contains every node-id on the path leading to a selected node. You can therefore treat it as a "max-depth-whitelist" while building the tree. At every level of these paths all sibling nodes must be included. Sibling branches that are not part of any path MAY be represented as an
| array<string|int> | $sync_node_id_whitelist |
Implements ILIAS\UI\Component\Input\Field\Node\NodeRetrieval.
Definition at line 40 of file LSOItemNodeRetrieval.php.
| ILIAS\LearningSequence\Content\Condition\LSOItemNodeRetrieval::getNodesAsLeaf | ( | NodeFactory | $node_factory, |
| IconFactory | $icon_factory, | ||
| array | $node_ids | ||
| ) |
This method will be called by the UI framework in order to retrieve Leaf instances for provided/submitted values (node-ids).
This method MUST yield placeholder instances for invalid node-ids, informing the user about the absence of a given Node.
| array<string|int> | $node_ids |
Implements ILIAS\UI\Component\Input\Field\Node\NodeRetrieval.
Definition at line 64 of file LSOItemNodeRetrieval.php.
References ilObject\_lookupObjId(), ilObject\_lookupTitle(), and ilObject\_lookupType().
Here is the call graph for this function: