ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
class.ilMMItemFacade.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\MainMenuMainCollector
as Main;
6
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost
;
7
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
8
9
/******************************************************************************
10
*
11
* This file is part of ILIAS, a powerful learning management system.
12
*
13
* ILIAS is licensed with the GPL-3.0, you should have received a copy
14
* of said license along with the source code.
15
*
16
* If this is not the case or you just want to try ILIAS, you'll find
17
* us at:
18
* https://www.ilias.de
19
* https://github.com/ILIAS-eLearning
20
*
21
*****************************************************************************/
27
class
ilMMItemFacade
extends
ilMMAbstractItemFacade
implements
ilMMItemFacadeInterface
28
{
32
public
function
__construct
(
IdentificationInterface
$identification
, Main $collector)
33
{
34
parent::__construct
(
$identification
, $collector);
35
}
36
37
41
protected
$type
;
42
43
47
public
function
isCustom
(): bool
48
{
49
return
false
;
50
}
51
52
56
public
function
isEditable
(): bool
57
{
58
return
(!$this->raw_item instanceof
Lost
);
59
}
60
61
65
public
function
isDeletable
(): bool
66
{
67
return
($this->raw_item instanceof
Lost
);
68
}
69
70
71
72
73
// Setter
74
75
79
public
function
setType
(
string
$type
): void
80
{
81
$this->type =
$type
;
82
}
83
84
88
public
function
setAction
(
string
$action): void
89
{
90
// Setting action not possible for non custom items
91
}
92
}
ILIAS\GlobalScreen\Scope\MainMenu\Collector\MainMenuMainCollector
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Definition:
MainMenuMainCollector.php:54
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost
Class Lost.
Definition:
Lost.php:45
ilMMAbstractItemFacade
Class ilMMAbstractItemFacade.
Definition:
class.ilMMAbstractItemFacade.php:30
ilMMAbstractItemFacade\$identification
IdentificationInterface $identification
Definition:
class.ilMMAbstractItemFacade.php:41
ilMMItemFacade
Class ilMMItemFacade.
Definition:
class.ilMMItemFacade.php:28
ilMMItemFacade\isEditable
isEditable()
@inheritDoc
Definition:
class.ilMMItemFacade.php:56
ilMMItemFacade\setAction
setAction(string $action)
@inheritDoc
Definition:
class.ilMMItemFacade.php:88
ilMMItemFacade\__construct
__construct(IdentificationInterface $identification, Main $collector)
@inheritDoc
Definition:
class.ilMMItemFacade.php:32
ilMMItemFacade\isDeletable
isDeletable()
@inheritDoc
Definition:
class.ilMMItemFacade.php:65
ilMMItemFacade\isCustom
isCustom()
Definition:
class.ilMMItemFacade.php:47
ilMMItemFacade\$type
$type
Definition:
class.ilMMItemFacade.php:41
ilMMItemFacade\setType
setType(string $type)
@inheritDoc
Definition:
class.ilMMItemFacade.php:79
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:30
ilMMItemFacadeInterface
Interface ilMMItemFacadeInterface.
Definition:
interface.ilMMItemFacadeInterface.php:27
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:37
Services
MainMenu
classes
Items
Facade
class.ilMMItemFacade.php
Generated on Sun Nov 2 2025 22:01:40 for ILIAS by
1.9.4 (using
Doxyfile
)