ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Bylined.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9
10use ILIAS\UI\Component\Tree\Node\Bylined as BylinedInterface;
12
13class Bylined extends \ILIAS\UI\Implementation\Component\Tree\Node\Simple implements BylinedInterface
14{
18 private $byline;
19
20 public function __construct(string $label, string $byline, \ILIAS\UI\Component\Symbol\Icon\Icon $icon = null)
21 {
22 parent::__construct($label, $icon);
23
24 $this->byline = $byline;
25 }
26
27 public function getByline() : string
28 {
29 return $this->byline;
30 }
31}
An exception for terminatinating execution or to throw for unit testing.
getByline()
The byline string that will be displayed as additional information to the current node.
Definition: Bylined.php:27
__construct(string $label, string $byline, \ILIAS\UI\Component\Symbol\Icon\Icon $icon=null)
Definition: Bylined.php:20
A component is the most general form of an entity in the UI.
Definition: Component.php:14
This describes how a icon could be modified during construction of UI.
Definition: Icon.php:10
This describes a tree node with an byline providing additional information about this node.
Definition: Bylined.php:13
This describes a very basic Tree Node.
Definition: Simple.php:12
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.
Class Factory.