ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Breadcrumbs.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\UI\Implementation\Component\Breadcrumbs
;
5
6
use
ILIAS\UI\Component\Breadcrumbs
as
B
;
7
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
8
9
class
Breadcrumbs
implements
B\Breadcrumbs
10
{
11
use
ComponentHelper
;
12
16
protected
$crumbs
;
17
18
public
function
__construct
(array
$crumbs
)
19
{
20
$types = array(\
ILIAS
\
UI
\
Component
\Link\Standard::class);
21
$this->
checkArgListElements
(
"crumbs"
, $crumbs, $types);
22
$this->crumbs =
$crumbs
;
23
}
24
25
29
public
function
getItems
()
30
{
31
return
$this->crumbs
;
32
}
33
37
public
function
withAppendedItem
($crumb)
38
{
39
$this->
checkArgInstanceOf
(
"crumb"
, $crumb, \
ILIAS
\
UI
\
Component
\Link\Standard::class);
40
$clone = clone $this;
41
$clone->crumbs[] = $crumb;
42
return
$clone;
43
}
44
}
UI
Class Factory.
ILIAS
Class BaseForm.
ILIAS\UI\Implementation\Component\checkArgInstanceOf
checkArgInstanceOf($which, $value, $class)
Throw an InvalidArgumentException if $value is not an instance of $class.
Definition:
ComponentHelper.php:149
ILIAS\UI\Component
ILIAS\UI\Component\Breadcrumbs
Definition:
Breadcrumbs.php:4
ILIAS\UI\Implementation\Component\Breadcrumbs\Breadcrumbs\$crumbs
$crumbs
Definition:
Breadcrumbs.php:16
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Component\Button
Definition:
Bulky.php:4
ILIAS\UI\Implementation\Component\checkArgListElements
checkArgListElements($which, array &$values, &$classes)
Check every element of the list if it is an instance of one of the given classes. ...
Definition:
ComponentHelper.php:217
ILIAS\UI\Implementation\Component\Breadcrumbs\Breadcrumbs
Definition:
Breadcrumbs.php:9
ILIAS\UI\Implementation\Component\Breadcrumbs\Breadcrumbs\__construct
__construct(array $crumbs)
Definition:
Breadcrumbs.php:18
ILIAS\UI\Implementation\Component\Breadcrumbs\Breadcrumbs\withAppendedItem
withAppendedItem($crumb)
Definition:
Breadcrumbs.php:37
php
ILIAS\UI\Implementation\Component\Breadcrumbs
Definition:
Breadcrumbs.php:4
ILIAS\UI\Implementation\Component\Breadcrumbs\Breadcrumbs\getItems
getItems()
Definition:
Breadcrumbs.php:29
src
UI
Implementation
Component
Breadcrumbs
Breadcrumbs.php
Generated on Thu Jan 30 2025 19:02:11 for ILIAS by
1.8.13 (using
Doxyfile
)