ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
TestingNode Class Reference

Dummy-implementation for testing. More...

+ Inheritance diagram for TestingNode:
+ Collaboration diagram for TestingNode:

Public Member Functions

 __construct (string $label, URI $link=null)
 
 withLink (URI $link)
 Create a new node object with an URI that will be added to the UI. More...
 
- Public Member Functions inherited from ILIAS\UI\Implementation\Component\Tree\Node\Node
 __construct (string $label, URI $link=null)
 
 getLabel ()
 Get the label of this Node. More...
 
 withAdditionalSubnode (INode $node)
 
 getSubnodes ()
 Get all Nodes under this one.
Returns
Node[]
More...
 
 withExpanded (bool $expanded)
 Set $expanded to true to have this node expanded on loading. More...
 
 isExpanded ()
 Should this Node be expanded on loading? More...
 
 withHighlighted (bool $highlighted)
 
 isHighlighted ()
 
 withOnClick (Signal $signal)
 
 appendOnClick (Signal $signal)
 
 getLink ()
 Get the URI object that is added as link in the UI. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\Tree\Node\Node
 withAdditionalSubnode (Node $node)
 Add a Node under this one. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\Component
 getCanonicalName ()
 Get the canonical name of the component. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\Triggerer
 withResetTriggeredSignals ()
 Get a component like this but reset any triggered signals of other components. More...
 
 getTriggeredSignals ()
 Get all triggered signals of this component. More...
 
- Public Member Functions inherited from ILIAS\UI\Component\JavaScriptBindable
 withOnLoadCode (\Closure $binder)
 
 withAdditionalOnLoadCode (\Closure $binder)
 Add some onload-code to the component instead of replacing the existing one. More...
 
 getOnLoadCode ()
 Get the currently bound on load code. More...
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\UI\Implementation\Component\Tree\Node\Node
 $link
 
 $label
 
 $expanded = false
 
 $highlighted = false
 
 $subnodes = []
 

Detailed Description

Dummy-implementation for testing.

Definition at line 15 of file NodeTest.php.

Constructor & Destructor Documentation

◆ __construct()

TestingNode::__construct ( string  $label,
URI  $link = null 
)

Definition at line 17 of file NodeTest.php.

References ILIAS\UI\Implementation\Component\Tree\Node\Node\$link, and ILIAS\GlobalScreen\Provider\__construct().

18  {
20  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ withLink()

TestingNode::withLink ( URI  $link)

Create a new node object with an URI that will be added to the UI.

Parameters
URI$link
Returns
Node

Implements ILIAS\UI\Component\Tree\Node\Node.

Definition at line 27 of file NodeTest.php.

28  {
29  return new TestingNode(
30  $this->label,
31  $link
32  );
33  }
This describes a Tree Node.
Definition: Node.php:15
Dummy-implementation for testing.
Definition: NodeTest.php:15

The documentation for this class was generated from the following file: