ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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  {
19  parent::__construct($identification, $collector);
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 }
Class ilMMAbstractItemFacade.
setType(string $type)
Class ChatMainBarProvider .
Class ilMMItemFacade.
__construct(\ILIAS\GlobalScreen\Identification\IdentificationInterface $identification, Main $collector)
setAction(string $action)
__construct(Container $dic, ilPlugin $plugin)
Interface ilMMItemFacadeInterface.