ILIAS  release_8 Revision v8.24
class.ilMMItemFacade.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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 *****************************************************************************/
28{
32 public function __construct(IdentificationInterface $identification, Main $collector)
33 {
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}
Class MainMenuMainCollector This Collector will collect and then provide all available slates from th...
Class ilMMAbstractItemFacade.
IdentificationInterface $identification
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