ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilMMItemFacade.php
Go to the documentation of this file.
1<?php
2
5
12{
13
17 public function __construct(\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, Main $collector)
18 {
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->raw_item instanceof Lost);
44 }
45
46
50 public function isDeletable() : bool
51 {
52 return ($this->raw_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}
An exception for terminatinating execution or to throw for unit testing.
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Class ilMMAbstractItemFacade.
Class ilMMItemFacade.
isEditable()
@inheritDoc
setAction(string $action)
@inheritDoc
isDeletable()
@inheritDoc
setType(string $type)
@inheritDoc
__construct(\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, Main $collector)
@inheritDoc
Interface ilMMItemFacadeInterface.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Class ChatMainBarProvider \MainMenu\Provider.