ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilMMCustomItemStorage.php
Go to the documentation of this file.
1 <?php
2 
9 {
10 
20  protected $identifier = '';
28  protected $type = '';
36  protected $action = "";
44  protected $role_based_visibility = false;
52  protected $global_role_ids = "";
60  protected $default_title = "";
68  protected $top_item = false;
72  protected $connector_container_name = "il_mm_custom_items";
73 
74 
78  public function getIdentifier() : string
79  {
80  return $this->identifier;
81  }
82 
83 
90  {
91  $this->identifier = $identifier;
92 
93  return $this;
94  }
95 
96 
100  public function getType() : string
101  {
102  return $this->type;
103  }
104 
105 
111  public function setType(string $type) : ilMMCustomItemStorage
112  {
113  $this->type = $type;
114 
115  return $this;
116  }
117 
118 
122  public function isTopItem() : bool
123  {
124  return $this->top_item;
125  }
126 
127 
134  {
135  $this->top_item = $top_item;
136 
137  return $this;
138  }
139 
140 
144  public function getAction() : string
145  {
146  return $this->action;
147  }
148 
149 
155  public function setAction(string $action) : ilMMCustomItemStorage
156  {
157  $this->action = $action;
158 
159  return $this;
160  }
161 
162 
166  public function hasRoleBasedVisibility() : bool
167  {
168  return false;
169  }
170 
171 
178  {
179  $this->role_based_visibility = $role_based_visibility;
180 
181  return $this;
182  }
183 
184 
188  public function getGlobalRoleIDs() : array
189  {
190  return explode(",", $this->global_role_ids);
191  }
192 
193 
200  {
201  $this->global_role_ids = implode(",", $global_role_ids);
202 
203  return $this;
204  }
205 
206 
210  public function getDefaultTitle() : string
211  {
212  return $this->default_title;
213  }
214 
215 
222  {
223  $this->default_title = $default_title;
224 
225  return $this;
226  }
227 
228 
232  public function getCache() : ilGlobalCache
233  {
235  }
236 }
Class CachedActiveRecord.
static getInstance($component)
setRoleBasedVisibility(bool $role_based_visibility)
Class ilGlobalCache.
setDefaultTitle(string $default_title)
setGlobalRoleIDs(array $global_role_ids)