ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMMCustomItemStorage.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
35 protected ?string $identifier = '';
41 protected string $type = '';
47 protected string $action = "";
53 protected bool $role_based_visibility = false;
59 protected ?string $global_role_ids = null;
65 protected string $default_title = "";
71 protected bool $top_item = false;
75 protected string $connector_container_name = "il_mm_custom_items";
76
77
81 public function getIdentifier(): string
82 {
83 return $this->identifier;
84 }
85
86
93 {
94 $this->identifier = $identifier;
95
96 return $this;
97 }
98
99
103 public function getType(): string
104 {
105 return $this->type;
106 }
107
108
114 public function setType(string $type): ilMMCustomItemStorage
115 {
116 $this->type = $type;
117
118 return $this;
119 }
120
121
125 public function isTopItem(): bool
126 {
127 return $this->top_item;
128 }
129
130
137 {
138 $this->top_item = $top_item;
139
140 return $this;
141 }
142
143
147 public function getAction(): string
148 {
149 return $this->action;
150 }
151
152
158 public function setAction(string $action): ilMMCustomItemStorage
159 {
160 $this->action = $action;
161
162 return $this;
163 }
164
165
169 public function hasRoleBasedVisibility(): bool
170 {
172 }
173
174
181 {
182 $this->role_based_visibility = $role_based_visibility;
183
184 return $this;
185 }
186
187
191 public function getGlobalRoleIDs(): array
192 {
193 return array_map("intval", explode(",", (string) $this->global_role_ids));
194 }
195
196
203 {
204 $this->global_role_ids = implode(",", $global_role_ids);
205
206 return $this;
207 }
208
209
213 public function getDefaultTitle(): string
214 {
216 }
217
218
225 {
226 $this->default_title = $default_title;
227
228 return $this;
229 }
230}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilMMCustomItemStorage.
string $identifier
@con_is_primary true @con_is_unique true @con_has_field true @con_fieldtype text @con_length 256
string $default_title
@con_has_field true @con_fieldtype text @con_length 4000
setGlobalRoleIDs(array $global_role_ids)
bool $role_based_visibility
@con_has_field true @con_fieldtype integer @con_length 1
string $type
@con_has_field true @con_fieldtype text @con_length 128
setDefaultTitle(string $default_title)
setRoleBasedVisibility(bool $role_based_visibility)
string $action
@con_has_field true @con_fieldtype text @con_length 4000
bool $top_item
@con_has_field true @con_fieldtype integer @con_length 1
string $global_role_ids
@con_has_field true @con_fieldtype text @con_length 4000