ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ScaleBar.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
3
namespace
ILIAS\UI\Implementation\Component\Chart
;
4
5
use
ILIAS\UI\Component
as
C
;
6
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
7
12
class
ScaleBar
implements
C\Chart\ScaleBar
13
{
14
use
ComponentHelper
;
15
19
protected
$items
;
20
24
public
function
__construct
(
$items
)
25
{
26
$this->items =
$items
;
27
}
28
32
public
function
withItems
(array
$items
)
33
{
34
$clone = clone $this;
35
$clone->items =
$items
;
36
return
$clone;
37
}
38
42
public
function
getItems
()
43
{
44
return
$this->items
;
45
}
46
}
ILIAS\UI\Implementation\Component\Chart\ScaleBar
Definition:
ScaleBar.php:12
ILIAS\UI\Implementation\Component\Chart\ScaleBar\withItems
withItems(array $items)
Definition:
ScaleBar.php:32
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\Chart\ScaleBar\$items
$items
Definition:
ScaleBar.php:19
ILIAS\UI\Implementation\Component\Chart\ScaleBar\__construct
__construct($items)
Definition:
ScaleBar.php:24
ILIAS\UI\Implementation\Component\Chart\ScaleBar\getItems
getItems()
Definition:
ScaleBar.php:42
php
ILIAS\UI\Implementation\Component\Chart
Definition:
Factory.php:3
src
UI
Implementation
Component
Chart
ScaleBar.php
Generated on Thu Jan 16 2025 19:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)