ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
AbstractBaseItem.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\Footer\Factory
;
22
23
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
24
use
ILIAS\GlobalScreen\Scope\ComponentDecoratorTrait
;
25
use
ILIAS\GlobalScreen\Scope\VisibilityAvailabilityTrait
;
26
30
abstract
class
AbstractBaseItem
implements
isItem
31
{
32
use
ComponentDecoratorTrait
;
33
use
VisibilityAvailabilityTrait
;
34
35
private
int
$position
= 0;
36
private
bool
$is_core
=
false
;
37
38
public
function
__construct
(
private
IdentificationInterface
$provider_identification)
39
{
40
}
41
42
public
function
getPosition
():
int
43
{
44
return
$this->position
;
45
}
46
47
public
function
withPosition
(
int
$position):
isItem
48
{
49
$clone = clone $this;
50
$clone->position =
$position
;
51
return
$clone;
52
}
53
54
public
function
getProviderIdentification
():
IdentificationInterface
55
{
56
return
$this->provider_identification;
57
}
58
59
public
function
isCore
(): bool
60
{
61
return
$this->is_core
;
62
}
63
64
public
function
withIsCore
():
isItem
65
{
66
$clone = clone $this;
67
$clone->is_core =
true
;
68
return
$clone;
69
}
70
71
}
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Scope\Footer\Factory\isItem
Definition:
isItem.php:28
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem\__construct
__construct(private IdentificationInterface $provider_identification)
Definition:
AbstractBaseItem.php:38
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem\getPosition
getPosition()
Return the default position for installation, this will be overridden by the configuration later...
Definition:
AbstractBaseItem.php:42
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem\$position
int $position
Definition:
AbstractBaseItem.php:35
IdentificationInterface
ILIAS\GlobalScreen\Scope\VisibilityAvailabilityTrait
trait VisibilityAvailabilityTrait
Definition:
VisibilityAvailabilityTrait.php:29
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem
Definition:
AbstractBaseItem.php:30
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem\getProviderIdentification
getProviderIdentification()
Definition:
AbstractBaseItem.php:54
ILIAS\GlobalScreen\Scope\Footer\Factory
Definition:
AbstractBaseItem.php:21
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem\withPosition
withPosition(int $position)
Definition:
AbstractBaseItem.php:47
ILIAS\GlobalScreen\Scope\ComponentDecoratorTrait
trait ComponentDecoratorTrait
Definition:
ComponentDecoratorTrait.php:32
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem\isCore
isCore()
Definition:
AbstractBaseItem.php:59
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem\$is_core
bool $is_core
Definition:
AbstractBaseItem.php:36
ILIAS\GlobalScreen\Scope\Footer\Factory\AbstractBaseItem\withIsCore
withIsCore()
Core Items are handled differently, they are not translatable via GUI and use their translations from...
Definition:
AbstractBaseItem.php:64
components
ILIAS
GlobalScreen
src
Scope
Footer
Factory
AbstractBaseItem.php
Generated on Sun Aug 31 2025 23:03:02 for ILIAS by
1.8.13 (using
Doxyfile
)