ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilMMItemFacade.php
Go to the documentation of this file.
1
<?
php
2
3
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\MainMenuMainCollector
as Main;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost
;
5
11
class
ilMMItemFacade
extends
ilMMAbstractItemFacade
implements
ilMMItemFacadeInterface
12
{
13
17
public
function
__construct
(\
ILIAS
\GlobalScreen\Identification\IdentificationInterface
$identification
, Main $collector)
18
{
19
parent::__construct(
$identification
, $collector);
20
}
21
22
26
protected
$type
;
27
28
32
public
function
isCustom
() : bool
33
{
34
return
false
;
35
}
36
37
41
public
function
isEditable
() : bool
42
{
43
return
(!$this->gs_item instanceof
Lost
);
44
}
45
46
50
public
function
isDeletable
() : bool
51
{
52
return
($this->gs_item instanceof
Lost
);
53
}
54
55
56
57
58
// Setter
59
60
64
public
function
setType
(
string
$type
)
65
{
66
$this->type =
$type
;
67
}
68
69
73
public
function
setAction
(
string
$action
)
74
{
75
// Setting action not possible for non custom items
76
return
;
77
}
78
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\GlobalScreen\Scope\MainMenu\Collector\MainMenuMainCollector
Class MainMenuMainCollector.
Definition:
MainMenuMainCollector.php:29
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost
Class Lost.
Definition:
Lost.php:22
ilMMAbstractItemFacade
Class ilMMAbstractItemFacade.
Definition:
class.ilMMAbstractItemFacade.php:23
ilMMAbstractItemFacade\$identification
$identification
Definition:
class.ilMMAbstractItemFacade.php:40
ilMMItemFacade
Class ilMMItemFacade.
Definition:
class.ilMMItemFacade.php:12
ilMMItemFacade\isEditable
isEditable()
@inheritDoc
Definition:
class.ilMMItemFacade.php:41
ilMMItemFacade\setAction
setAction(string $action)
@inheritDoc
Definition:
class.ilMMItemFacade.php:73
ilMMItemFacade\isDeletable
isDeletable()
@inheritDoc
Definition:
class.ilMMItemFacade.php:50
ilMMItemFacade\isCustom
isCustom()
Definition:
class.ilMMItemFacade.php:32
ilMMItemFacade\$type
$type
Definition:
class.ilMMItemFacade.php:26
ilMMItemFacade\setType
setType(string $type)
@inheritDoc
Definition:
class.ilMMItemFacade.php:64
ilMMItemFacade\__construct
__construct(\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, Main $collector)
@inheritDoc
Definition:
class.ilMMItemFacade.php:17
$action
$action
Definition:
consentAdmin.php:140
ilMMItemFacadeInterface
Interface ilMMItemFacadeInterface.
Definition:
interface.ilMMItemFacadeInterface.php:9
ILIAS
Class BaseForm.
Services
MainMenu
classes
Items
Facade
class.ilMMItemFacade.php
Generated on Thu Oct 2 2025 19:01:51 for ILIAS by
1.9.4 (using
Doxyfile
)