ILIAS  release_8 Revision v8.23
class.ilMMItemFacade.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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 {
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 }
Class ilMMAbstractItemFacade.
setType(string $type)
__construct(IdentificationInterface $identification, Main $collector)
Class ilMMItemFacade.
IdentificationInterface $identification
setAction(string $action)
__construct(Container $dic, ilPlugin $plugin)
Interface ilMMItemFacadeInterface.