ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMMItemFacade.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
24
31{
35 public function __construct(IdentificationInterface $identification, Main $collector)
36 {
37 parent::__construct($identification, $collector);
38 }
39
40
44 protected $type;
45
46
50 public function isCustom(): bool
51 {
52 return false;
53 }
54
55
59 public function isEditable(): bool
60 {
61 return (!$this->raw_item instanceof Lost);
62 }
63
64
68 public function isDeletable(): bool
69 {
70 return ($this->raw_item instanceof Lost);
71 }
72
73
74
75
76 // Setter
77
78
82 public function setType(string $type): void
83 {
84 $this->type = $type;
85 }
86
87
91 public function setAction(string $action): void
92 {
93 // Setting action not possible for non custom items
94 }
95}
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Class ilMMAbstractItemFacade.
Class ilMMItemFacade.
isEditable()
@inheritDoc
setAction(string $action)
@inheritDoc
__construct(IdentificationInterface $identification, Main $collector)
@inheritDoc
isDeletable()
@inheritDoc
setType(string $type)
@inheritDoc
Interface ilMMItemFacadeInterface.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc