ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilMMCustomItemStorage.php
Go to the documentation of this file.
1 <?php
2 
25 {
26 
36  protected $identifier = '';
44  protected $type = '';
52  protected $action = "";
60  protected $role_based_visibility = false;
68  protected $global_role_ids = "";
76  protected $default_title = "";
84  protected $top_item = false;
88  protected $connector_container_name = "il_mm_custom_items";
89 
90 
94  public function getIdentifier() : string
95  {
96  return $this->identifier;
97  }
98 
99 
106  {
107  $this->identifier = $identifier;
108 
109  return $this;
110  }
111 
112 
116  public function getType() : string
117  {
118  return $this->type;
119  }
120 
121 
127  public function setType(string $type) : ilMMCustomItemStorage
128  {
129  $this->type = $type;
130 
131  return $this;
132  }
133 
134 
138  public function isTopItem() : bool
139  {
140  return $this->top_item;
141  }
142 
143 
150  {
151  $this->top_item = $top_item;
152 
153  return $this;
154  }
155 
156 
160  public function getAction() : string
161  {
162  return $this->action;
163  }
164 
165 
171  public function setAction(string $action) : ilMMCustomItemStorage
172  {
173  $this->action = $action;
174 
175  return $this;
176  }
177 
178 
182  public function hasRoleBasedVisibility() : bool
183  {
184  if ($this->role_based_visibility !== null) {
186  } else {
187  return false;
188  }
189  }
190 
191 
198  {
199  $this->role_based_visibility = $role_based_visibility;
200 
201  return $this;
202  }
203 
204 
208  public function getGlobalRoleIDs() : array
209  {
210  return array_map("intval", explode(",", $this->global_role_ids));
211  }
212 
213 
220  {
221  $this->global_role_ids = implode(",", $global_role_ids);
222 
223  return $this;
224  }
225 
226 
230  public function getDefaultTitle() : string
231  {
232  return $this->default_title;
233  }
234 
235 
242  {
243  $this->default_title = $default_title;
244 
245  return $this;
246  }
247 
248 
252  public function getCache() : ilGlobalCache
253  {
255  }
256 }
Class CachedActiveRecord.
static getInstance($component)
setRoleBasedVisibility(bool $role_based_visibility)
Class ilGlobalCache.
setDefaultTitle(string $default_title)
setGlobalRoleIDs(array $global_role_ids)