ILIAS  release_7 Revision v7.30-3-g800a261c036
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;
11
12class Bylined extends \ILIAS\UI\Implementation\Component\Tree\Node\Simple implements BylinedInterface
13{
17 private $byline;
18
19 public function __construct(string $label, string $byline, \ILIAS\UI\Component\Symbol\Icon\Icon $icon = null)
20 {
21 parent::__construct($label, $icon);
22
23 $this->byline = $byline;
24 }
25
26 public function getByline() : string
27 {
28 return $this->byline;
29 }
30}
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:26
__construct(string $label, string $byline, \ILIAS\UI\Component\Symbol\Icon\Icon $icon=null)
Definition: Bylined.php:19
A component is the most general form of an entity in the UI.
Definition: Component.php:14
This describes how an 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.