ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
KeyValue.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 
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 }
__construct(string $label, string $value, Icon $icon=null)
Definition: KeyValue.php:31
This describes how an icon could be modified during construction of UI.
Definition: Icon.php:28
__construct(VocabulariesInterface $vocabularies)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Bylined.php:21
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
This describes a tree node in which the label is complemented by an additional string, forming a key-value pair.
Definition: KeyValue.php:25