ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
KeyValue.php
Go to the documentation of this file.
1 <?php
17 declare(strict_types=1);
18 
20 
21 use ILIAS\UI\Component\Tree\Node\KeyValue as KeyValueInterface;
23 
27 class KeyValue extends Simple implements KeyValueInterface
28 {
29  private string $value;
30 
31  public function __construct(string $label, string $value, ?Icon $icon = null)
32  {
33  parent::__construct($label, $icon);
34 
35  $this->value = $value;
36  }
37 
38  public function getValue() : string
39  {
40  return $this->value;
41  }
42 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(string $label, string $value, ?Icon $icon=null)
Definition: KeyValue.php:31
This describes a very basic Tree Node.
Definition: Simple.php:28
getValue()
The value string that will be displayed behind the label of the node.
Definition: KeyValue.php:38
__construct(Container $dic, ilPlugin $plugin)
This describes a tree node in which the label is complemented by an additional string, forming a key-value pair.
Definition: KeyValue.php:25