ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilForumProperties Class Reference
+ Collaboration diagram for ilForumProperties:

Public Member Functions

 insert ()
 
 update ()
 
 copy (int $a_new_obj_id)
 
 isIsThreadRatingEnabled ()
 
 setIsThreadRatingEnabled (bool $is_thread_rating_enabled)
 
 setDefaultView (int $a_default_view)
 
 getDefaultView ()
 
 setStatisticsStatus (bool $a_statistic_status)
 
 isStatisticEnabled ()
 
 setAnonymisation (bool $a_anonymized)
 
 isAnonymized ()
 
 setPostActivation (bool $a_post_activation)
 
 isPostActivationEnabled ()
 
 setObjId (int $a_obj_id)
 
 getObjId ()
 
 setAdminForceNoti (bool $a_admin_force)
 
 isAdminForceNoti ()
 
 setUserToggleNoti (bool $a_user_toggle)
 
 isUserToggleNoti ()
 
 setPresetSubject (bool $a_preset_subject)
 
 isSubjectPreset ()
 
 setAddReSubject (bool $a_add_re_subject)
 
 isSubjectAdded ()
 
 setNotificationType (NotificationType $a_notification_type)
 
 getNotificationType ()
 
 getSubjectSetting ()
 
 setSubjectSetting ($a_subject_setting)
 
 setMarkModeratorPosts (bool $a_mod_post)
 
 getMarkModeratorPosts ()
 
 getUserToggleNoti ()
 
 getAdminForceNoti ()
 
 setFileUploadAllowed (bool $allowed)
 
 getFileUploadAllowed ()
 
 isFileUploadAllowed ()
 
 getInterestedEvents ()
 
 setInterestedEvents (int $interested_events)
 
 getLpReqNumPostings ()
 
 setLpReqNumPostings (?int $lp_req_num_postings)
 

Static Public Member Functions

static getInstance (int $a_obj_id=0)
 
static _isAnonymized (int $a_obj_id)
 
static _isAdminForceNoti (int $a_obj_id)
 
static _isUserToggleNoti (int $a_obj_id)
 
static isFileUploadGloballyAllowed ()
 
static isSendAttachmentsByMailEnabled ()
 

Data Fields

const VIEW_TREE = 1
 
const VIEW_DATE = 2
 
const VIEW_DATE_ASC = 2
 
const VIEW_DATE_DESC = 3
 
const FILE_UPLOAD_GLOBALLY_ALLOWED = 0
 
const FILE_UPLOAD_INDIVIDUAL = 1
 
const PAGE_SIZE_THREAD_OVERVIEW = 10
 
const PAGE_NAME_THREAD_OVERVIEW = 'page'
 

Protected Member Functions

 __construct (private int $obj_id=0)
 

Protected Attributes

int $styleId = 0
 

Private Member Functions

 contentStyle ()
 
 read ()
 

Private Attributes

readonly ilDBInterface $db
 
int $default_view = self::VIEW_DATE_ASC
 
bool $anonymized = false
 
bool $statistics_enabled = false
 
bool $post_activation_enabled = false
 
NotificationType $notification_type = NotificationType::DEFAULT
 
bool $admin_force_noti = false
 Activation of (CRS/GRP) forum notification by mod/admin. More...
 
bool $user_toggle_noti = false
 Activation of allowing members to deactivate (CRS/GRP)forum notification. More...
 
bool $preset_subject = true
 If deactivated, user is forced to enter a new subject on repliees. More...
 
int $interested_events = ilForumNotificationEvents::DEACTIVATED
 Preset notification events for forced notification. More...
 
bool $add_re_subject = false
 Add 'Re: ' to subject on reply. More...
 
bool $mark_mod_posts = false
 
bool $is_thread_rating_enabled = false
 
bool $file_upload_allowed = false
 
bool $exists = false
 
int $lp_req_num_postings = null
 
ILIAS Style Content Object ObjectFacade $content_style_service = null
 

Static Private Attributes

static array $instances = []
 

Detailed Description

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de \

Definition at line 27 of file class.ilForumProperties.php.

Constructor & Destructor Documentation

◆ __construct()

ilForumProperties::__construct ( private int  $obj_id = 0)
protected

Definition at line 65 of file class.ilForumProperties.php.

66 {
67 global $DIC;
68
69 $this->db = $DIC->database();
70 $this->read();
71 }
global $DIC
Definition: shib_login.php:26

References $DIC, and read().

+ Here is the call graph for this function:

Member Function Documentation

◆ _isAdminForceNoti()

static ilForumProperties::_isAdminForceNoti ( int  $a_obj_id)
static

Definition at line 322 of file class.ilForumProperties.php.

322 : bool
323 {
324 global $DIC;
325
326 $ilDB = $DIC->database();
327
328 $res = $ilDB->queryF(
329 'SELECT admin_force_noti FROM frm_settings WHERE obj_id = %s',
330 ['integer'],
331 [$a_obj_id]
332 );
333 if ($record = $ilDB->fetchAssoc($res)) {
334 return (bool) $record['admin_force_noti'];
335 }
336
337 return false;
338 }
$res
Definition: ltiservices.php:69

References $DIC, $ilDB, and $res.

◆ _isAnonymized()

static ilForumProperties::_isAnonymized ( int  $a_obj_id)
static

Definition at line 263 of file class.ilForumProperties.php.

263 : bool
264 {
265 global $DIC;
266 $ilDB = $DIC->database();
267
268 $result = $ilDB->queryF(
269 'SELECT anonymized FROM frm_settings WHERE obj_id = %s',
270 ['integer'],
271 [$a_obj_id]
272 );
273
274 while ($record = $ilDB->fetchAssoc($result)) {
275 return (bool) $record['anonymized'];
276 }
277
278 return false;
279 }

References $DIC, and $ilDB.

Referenced by ilPDNewsTableGUI\fillRow().

+ Here is the caller graph for this function:

◆ _isUserToggleNoti()

static ilForumProperties::_isUserToggleNoti ( int  $a_obj_id)
static

Definition at line 340 of file class.ilForumProperties.php.

340 : bool
341 {
342 global $DIC;
343
344 $ilDB = $DIC->database();
345
346 $res = $ilDB->queryF(
347 'SELECT user_toggle_noti FROM frm_settings WHERE obj_id = %s',
348 ['integer'],
349 [$a_obj_id]
350 );
351 while ($record = $ilDB->fetchAssoc($res)) {
352 return (bool) $record['user_toggle_noti'];
353 }
354
355 return false;
356 }

References $DIC, $ilDB, and $res.

◆ contentStyle()

ilForumProperties::contentStyle ( )
private

Definition at line 73 of file class.ilForumProperties.php.

74 {
75 global $DIC;
76
77 if ($this->content_style_service === null) {
78 $this->content_style_service = $DIC->contentStyle()->domain()->styleForObjId($this->obj_id);
79 }
80
82 }
External facade for object content styles.
ILIAS Style Content Object ObjectFacade $content_style_service

References $content_style_service, and $DIC.

Referenced by copy().

+ Here is the caller graph for this function:

◆ copy()

ilForumProperties::copy ( int  $a_new_obj_id)

Definition at line 189 of file class.ilForumProperties.php.

189 : bool
190 {
191 if ($a_new_obj_id !== 0) {
192 $this->contentStyle()->cloneTo($a_new_obj_id);
193
194 $this->db->update(
195 'frm_settings',
196 [
197 'default_view' => ['integer', $this->default_view],
198 'anonymized' => ['integer', (int) $this->anonymized],
199 'statistics_enabled' => ['integer', (int) $this->statistics_enabled],
200 'post_activation' => ['integer', (int) $this->post_activation_enabled],
201 'admin_force_noti' => ['integer', (int) $this->admin_force_noti],
202 'user_toggle_noti' => ['integer', (int) $this->user_toggle_noti],
203 'preset_subject' => ['integer', (int) $this->preset_subject],
204 'add_re_subject' => ['integer', (int) $this->add_re_subject],
205 'notification_type' => ['text', $this->notification_type->value],
206 'mark_mod_posts' => ['integer', (int) $this->mark_mod_posts],
207 'thread_rating' => ['integer', (int) $this->is_thread_rating_enabled],
208 'file_upload_allowed' => ['integer', (int) $this->file_upload_allowed],
209 'lp_req_num_postings' => ['integer', $this->lp_req_num_postings],
210 'interested_events' => ['integer', $this->interested_events]
211 ],
212 [
213 'obj_id' => ['integer', $a_new_obj_id]
214 ]
215 );
216
217 return true;
218 }
219
220 return false;
221 }

References contentStyle().

+ Here is the call graph for this function:

◆ getAdminForceNoti()

ilForumProperties::getAdminForceNoti ( )

Definition at line 434 of file class.ilForumProperties.php.

434 : bool
435 {
437 }
bool $admin_force_noti
Activation of (CRS/GRP) forum notification by mod/admin.

References $admin_force_noti.

◆ getDefaultView()

ilForumProperties::getDefaultView ( )

Definition at line 238 of file class.ilForumProperties.php.

238 : int
239 {
240 return $this->default_view;
241 }

References $default_view.

◆ getFileUploadAllowed()

ilForumProperties::getFileUploadAllowed ( )

Definition at line 444 of file class.ilForumProperties.php.

444 : bool
445 {
447 }

References $file_upload_allowed.

Referenced by isFileUploadAllowed().

+ Here is the caller graph for this function:

◆ getInstance()

◆ getInterestedEvents()

ilForumProperties::getInterestedEvents ( )

Definition at line 474 of file class.ilForumProperties.php.

474 : int
475 {
477 }
int $interested_events
Preset notification events for forced notification.

References $interested_events.

Referenced by ilForumNotification\updateUserNotifications().

+ Here is the caller graph for this function:

◆ getLpReqNumPostings()

ilForumProperties::getLpReqNumPostings ( )

Definition at line 484 of file class.ilForumProperties.php.

484 : ?int
485 {
487 }

References $lp_req_num_postings.

◆ getMarkModeratorPosts()

ilForumProperties::getMarkModeratorPosts ( )

Definition at line 424 of file class.ilForumProperties.php.

424 : bool
425 {
427 }

References $mark_mod_posts.

◆ getNotificationType()

ilForumProperties::getNotificationType ( )

Definition at line 383 of file class.ilForumProperties.php.

References $notification_type.

Referenced by ilForumNotification\updateUserNotifications().

+ Here is the caller graph for this function:

◆ getObjId()

ilForumProperties::getObjId ( )

Definition at line 297 of file class.ilForumProperties.php.

297 : int
298 {
299 return $this->obj_id;
300 }

◆ getSubjectSetting()

ilForumProperties::getSubjectSetting ( )

Definition at line 388 of file class.ilForumProperties.php.

388 : string
389 {
390 if (!$this->isSubjectPreset() && !$this->isSubjectAdded()) {
391 return "empty_subject";
392 }
393
394 if ($this->isSubjectPreset()) {
395 return "preset_subject";
396 }
397
398 if ($this->isSubjectAdded()) {
399 return "add_re_to_subject";
400 }
401
402 return "preset_subject";
403 }

References isSubjectAdded(), and isSubjectPreset().

+ Here is the call graph for this function:

◆ getUserToggleNoti()

ilForumProperties::getUserToggleNoti ( )

Definition at line 429 of file class.ilForumProperties.php.

429 : bool
430 {
432 }
bool $user_toggle_noti
Activation of allowing members to deactivate (CRS/GRP)forum notification.

References $user_toggle_noti.

◆ insert()

ilForumProperties::insert ( )

Definition at line 129 of file class.ilForumProperties.php.

129 : void
130 {
131 if ($this->obj_id && !$this->exists) {
132 $this->db->insert(
133 'frm_settings',
134 [
135 'obj_id' => ['integer', $this->obj_id],
136 'default_view' => ['integer', $this->default_view],
137 'anonymized' => ['integer', (int) $this->anonymized],
138 'statistics_enabled' => ['integer', (int) $this->statistics_enabled],
139 'post_activation' => ['integer', (int) $this->post_activation_enabled],
140 'admin_force_noti' => ['integer', (int) $this->admin_force_noti],
141 'user_toggle_noti' => ['integer', (int) $this->user_toggle_noti],
142 'preset_subject' => ['integer', (int) $this->preset_subject],
143 'add_re_subject' => ['integer', (int) $this->add_re_subject],
144 'notification_type' => ['text', $this->notification_type->value],
145 'mark_mod_posts' => ['integer', (int) $this->mark_mod_posts],
146 'thread_rating' => ['integer', (int) $this->is_thread_rating_enabled],
147 'file_upload_allowed' => ['integer', (int) $this->file_upload_allowed],
148 'lp_req_num_postings' => ['integer', $this->lp_req_num_postings],
149 'interested_events' => ['integer', $this->interested_events]
150 ]
151 );
152 $this->exists = true;
153 }
154 }

Referenced by update().

+ Here is the caller graph for this function:

◆ isAdminForceNoti()

ilForumProperties::isAdminForceNoti ( )

Definition at line 307 of file class.ilForumProperties.php.

307 : bool
308 {
310 }

References $admin_force_noti.

◆ isAnonymized()

ilForumProperties::isAnonymized ( )

Definition at line 258 of file class.ilForumProperties.php.

258 : bool
259 {
260 return $this->anonymized;
261 }

References $anonymized.

◆ isFileUploadAllowed()

ilForumProperties::isFileUploadAllowed ( )

Definition at line 449 of file class.ilForumProperties.php.

449 : bool
450 {
451 if (self::isFileUploadGloballyAllowed()) {
452 return true;
453 }
454
455 return $this->getFileUploadAllowed();
456 }

References getFileUploadAllowed().

+ Here is the call graph for this function:

◆ isFileUploadGloballyAllowed()

static ilForumProperties::isFileUploadGloballyAllowed ( )
static

Definition at line 458 of file class.ilForumProperties.php.

458 : bool
459 {
460 global $DIC;
461
462 return (
463 (int) $DIC->settings()->get('file_upload_allowed_fora') === self::FILE_UPLOAD_GLOBALLY_ALLOWED
464 );
465 }

References $DIC.

Referenced by ilForumSettingsGUI\getCustomForm(), and ilForumSettingsGUI\updateCustomValues().

+ Here is the caller graph for this function:

◆ isIsThreadRatingEnabled()

ilForumProperties::isIsThreadRatingEnabled ( )

Definition at line 223 of file class.ilForumProperties.php.

223 : bool
224 {
226 }

References $is_thread_rating_enabled.

◆ isPostActivationEnabled()

ilForumProperties::isPostActivationEnabled ( )

Definition at line 286 of file class.ilForumProperties.php.

286 : bool
287 {
289 }

References $post_activation_enabled.

◆ isSendAttachmentsByMailEnabled()

static ilForumProperties::isSendAttachmentsByMailEnabled ( )
static

Definition at line 467 of file class.ilForumProperties.php.

467 : bool
468 {
469 global $DIC;
470
471 return (bool) $DIC->settings()->get('send_attachments_by_mail');
472 }

References $DIC.

Referenced by ilForumCronNotificationDataProvider\readAttachments(), and ilForumNotificationDataProvider\readAttachments().

+ Here is the caller graph for this function:

◆ isStatisticEnabled()

ilForumProperties::isStatisticEnabled ( )

Definition at line 248 of file class.ilForumProperties.php.

248 : bool
249 {
251 }

References $statistics_enabled.

◆ isSubjectAdded()

ilForumProperties::isSubjectAdded ( )

Definition at line 373 of file class.ilForumProperties.php.

373 : bool
374 {
376 }
bool $add_re_subject
Add 'Re: ' to subject on reply.

References $add_re_subject.

Referenced by getSubjectSetting().

+ Here is the caller graph for this function:

◆ isSubjectPreset()

ilForumProperties::isSubjectPreset ( )

Definition at line 363 of file class.ilForumProperties.php.

363 : bool
364 {
366 }
bool $preset_subject
If deactivated, user is forced to enter a new subject on repliees.

References $preset_subject.

Referenced by getSubjectSetting().

+ Here is the caller graph for this function:

◆ isUserToggleNoti()

ilForumProperties::isUserToggleNoti ( )

Definition at line 317 of file class.ilForumProperties.php.

317 : bool
318 {
320 }

References $user_toggle_noti.

Referenced by ilForumNotification\updateUserNotifications().

+ Here is the caller graph for this function:

◆ read()

ilForumProperties::read ( )
private

Definition at line 93 of file class.ilForumProperties.php.

93 : void
94 {
95 if ($this->obj_id !== 0) {
96 $res = $this->db->queryF(
97 'SELECT * FROM frm_settings WHERE obj_id = %s',
98 ['integer'],
99 [$this->obj_id]
100 );
101
102 $row = $this->db->fetchObject($res);
103 if (is_object($row)) {
104 $this->exists = true;
105
106 $this->default_view = (int) $row->default_view;
107 $this->anonymized = (bool) $row->anonymized;
108 $this->statistics_enabled = (bool) $row->statistics_enabled;
109 $this->post_activation_enabled = (bool) $row->post_activation;
110 $this->admin_force_noti = (bool) $row->admin_force_noti;
111 $this->user_toggle_noti = (bool) $row->user_toggle_noti;
112 $this->preset_subject = (bool) $row->preset_subject;
113 $this->add_re_subject = (bool) $row->add_re_subject;
114 $this->interested_events = (int) $row->interested_events;
115
116 $this->notification_type =
117 NotificationType::tryFrom($row->notification_type ?? NotificationType::DEFAULT->value) ??
119 $this->mark_mod_posts = (bool) $row->mark_mod_posts;
120 $this->is_thread_rating_enabled = (bool) $row->thread_rating;
121 $this->file_upload_allowed = (bool) $row->file_upload_allowed;
122 if (is_numeric($row->lp_req_num_postings)) {
123 $this->lp_req_num_postings = (int) $row->lp_req_num_postings;
124 }
125 }
126 }
127 }
if(!file_exists('../ilias.ini.php'))

References $res, ILIAS\Forum\Notification\DEFAULT, if, and ILIAS\Repository\int().

Referenced by __construct(), and setObjId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAddReSubject()

ilForumProperties::setAddReSubject ( bool  $a_add_re_subject)

Definition at line 368 of file class.ilForumProperties.php.

368 : void
369 {
370 $this->add_re_subject = $a_add_re_subject;
371 }

Referenced by setSubjectSetting().

+ Here is the caller graph for this function:

◆ setAdminForceNoti()

ilForumProperties::setAdminForceNoti ( bool  $a_admin_force)

Definition at line 302 of file class.ilForumProperties.php.

302 : void
303 {
304 $this->admin_force_noti = $a_admin_force;
305 }

◆ setAnonymisation()

ilForumProperties::setAnonymisation ( bool  $a_anonymized)

Definition at line 253 of file class.ilForumProperties.php.

253 : void
254 {
255 $this->anonymized = $a_anonymized;
256 }

◆ setDefaultView()

ilForumProperties::setDefaultView ( int  $a_default_view)

Definition at line 233 of file class.ilForumProperties.php.

233 : void
234 {
235 $this->default_view = $a_default_view;
236 }

◆ setFileUploadAllowed()

ilForumProperties::setFileUploadAllowed ( bool  $allowed)

Definition at line 439 of file class.ilForumProperties.php.

439 : void
440 {
441 $this->file_upload_allowed = $allowed;
442 }

◆ setInterestedEvents()

ilForumProperties::setInterestedEvents ( int  $interested_events)

Definition at line 479 of file class.ilForumProperties.php.

479 : void
480 {
481 $this->interested_events = $interested_events;
482 }

References $interested_events.

◆ setIsThreadRatingEnabled()

ilForumProperties::setIsThreadRatingEnabled ( bool  $is_thread_rating_enabled)

Definition at line 228 of file class.ilForumProperties.php.

228 : void
229 {
230 $this->is_thread_rating_enabled = $is_thread_rating_enabled;
231 }

References $is_thread_rating_enabled.

◆ setLpReqNumPostings()

ilForumProperties::setLpReqNumPostings ( ?int  $lp_req_num_postings)

Definition at line 489 of file class.ilForumProperties.php.

489 : void
490 {
491 $this->lp_req_num_postings = $lp_req_num_postings;
492 }

References $lp_req_num_postings.

◆ setMarkModeratorPosts()

ilForumProperties::setMarkModeratorPosts ( bool  $a_mod_post)

Definition at line 419 of file class.ilForumProperties.php.

419 : void
420 {
421 $this->mark_mod_posts = $a_mod_post;
422 }

◆ setNotificationType()

ilForumProperties::setNotificationType ( NotificationType  $a_notification_type)

Definition at line 378 of file class.ilForumProperties.php.

378 : void
379 {
380 $this->notification_type = $a_notification_type;
381 }

◆ setObjId()

ilForumProperties::setObjId ( int  $a_obj_id)

Definition at line 291 of file class.ilForumProperties.php.

291 : void
292 {
293 $this->obj_id = $a_obj_id;
294 $this->read();
295 }

References read().

+ Here is the call graph for this function:

◆ setPostActivation()

ilForumProperties::setPostActivation ( bool  $a_post_activation)

Definition at line 281 of file class.ilForumProperties.php.

281 : void
282 {
283 $this->post_activation_enabled = $a_post_activation;
284 }

◆ setPresetSubject()

ilForumProperties::setPresetSubject ( bool  $a_preset_subject)

Definition at line 358 of file class.ilForumProperties.php.

358 : void
359 {
360 $this->preset_subject = $a_preset_subject;
361 }

Referenced by setSubjectSetting().

+ Here is the caller graph for this function:

◆ setStatisticsStatus()

ilForumProperties::setStatisticsStatus ( bool  $a_statistic_status)

Definition at line 243 of file class.ilForumProperties.php.

243 : void
244 {
245 $this->statistics_enabled = $a_statistic_status;
246 }

◆ setSubjectSetting()

ilForumProperties::setSubjectSetting (   $a_subject_setting)

Definition at line 405 of file class.ilForumProperties.php.

405 : void
406 {
407 if ($a_subject_setting === 'empty_subject') {
408 $this->setPresetSubject(false);
409 $this->setAddReSubject(false);
410 } elseif ($a_subject_setting === 'preset_subject') {
411 $this->setPresetSubject(true);
412 $this->setAddReSubject(false);
413 } elseif ($a_subject_setting === 'add_re_to_subject') {
414 $this->setPresetSubject(false);
415 $this->setAddReSubject(true);
416 }
417 }
setPresetSubject(bool $a_preset_subject)
setAddReSubject(bool $a_add_re_subject)

References setAddReSubject(), and setPresetSubject().

+ Here is the call graph for this function:

◆ setUserToggleNoti()

ilForumProperties::setUserToggleNoti ( bool  $a_user_toggle)

Definition at line 312 of file class.ilForumProperties.php.

312 : void
313 {
314 $this->user_toggle_noti = $a_user_toggle;
315 }

◆ update()

ilForumProperties::update ( )

Definition at line 156 of file class.ilForumProperties.php.

156 : void
157 {
158 if ($this->obj_id !== 0) {
159 if (!$this->exists) {
160 $this->insert();
161 return;
162 }
163
164 $this->db->update(
165 'frm_settings',
166 [
167 'default_view' => ['integer', $this->default_view],
168 'anonymized' => ['integer', (int) $this->anonymized],
169 'statistics_enabled' => ['integer', (int) $this->statistics_enabled],
170 'post_activation' => ['integer', (int) $this->post_activation_enabled],
171 'admin_force_noti' => ['integer', (int) $this->admin_force_noti],
172 'user_toggle_noti' => ['integer', (int) $this->user_toggle_noti],
173 'preset_subject' => ['integer', (int) $this->preset_subject],
174 'add_re_subject' => ['integer', (int) $this->add_re_subject],
175 'notification_type' => ['text', $this->notification_type->value],
176 'mark_mod_posts' => ['integer', (int) $this->mark_mod_posts],
177 'thread_rating' => ['integer', (int) $this->is_thread_rating_enabled],
178 'file_upload_allowed' => ['integer', (int) $this->file_upload_allowed],
179 'lp_req_num_postings' => ['integer', (int) $this->lp_req_num_postings],
180 'interested_events' => ['integer', $this->interested_events]
181 ],
182 [
183 'obj_id' => ['integer', $this->obj_id]
184 ]
185 );
186 }
187 }

References insert().

+ Here is the call graph for this function:

Field Documentation

◆ $add_re_subject

bool ilForumProperties::$add_re_subject = false
private

Add 'Re: ' to subject on reply.

Definition at line 56 of file class.ilForumProperties.php.

Referenced by isSubjectAdded().

◆ $admin_force_noti

bool ilForumProperties::$admin_force_noti = false
private

Activation of (CRS/GRP) forum notification by mod/admin.

Definition at line 48 of file class.ilForumProperties.php.

Referenced by getAdminForceNoti(), and isAdminForceNoti().

◆ $anonymized

bool ilForumProperties::$anonymized = false
private

Definition at line 43 of file class.ilForumProperties.php.

Referenced by isAnonymized().

◆ $content_style_service

ILIAS Style Content Object ObjectFacade ilForumProperties::$content_style_service = null
private

Definition at line 63 of file class.ilForumProperties.php.

Referenced by contentStyle().

◆ $db

readonly ilDBInterface ilForumProperties::$db
private

Definition at line 41 of file class.ilForumProperties.php.

◆ $default_view

int ilForumProperties::$default_view = self::VIEW_DATE_ASC
private

Definition at line 42 of file class.ilForumProperties.php.

Referenced by getDefaultView().

◆ $exists

bool ilForumProperties::$exists = false
private

Definition at line 61 of file class.ilForumProperties.php.

◆ $file_upload_allowed

bool ilForumProperties::$file_upload_allowed = false
private

Definition at line 59 of file class.ilForumProperties.php.

Referenced by getFileUploadAllowed().

◆ $instances

array ilForumProperties::$instances = []
staticprivate

Definition at line 39 of file class.ilForumProperties.php.

◆ $interested_events

int ilForumProperties::$interested_events = ilForumNotificationEvents::DEACTIVATED
private

Preset notification events for forced notification.

Definition at line 54 of file class.ilForumProperties.php.

Referenced by getInterestedEvents(), and setInterestedEvents().

◆ $is_thread_rating_enabled

bool ilForumProperties::$is_thread_rating_enabled = false
private

◆ $lp_req_num_postings

int ilForumProperties::$lp_req_num_postings = null
private

Definition at line 62 of file class.ilForumProperties.php.

Referenced by getLpReqNumPostings(), and setLpReqNumPostings().

◆ $mark_mod_posts

bool ilForumProperties::$mark_mod_posts = false
private

Definition at line 57 of file class.ilForumProperties.php.

Referenced by getMarkModeratorPosts().

◆ $notification_type

NotificationType ilForumProperties::$notification_type = NotificationType::DEFAULT
private

Definition at line 46 of file class.ilForumProperties.php.

Referenced by getNotificationType().

◆ $post_activation_enabled

bool ilForumProperties::$post_activation_enabled = false
private

Definition at line 45 of file class.ilForumProperties.php.

Referenced by isPostActivationEnabled().

◆ $preset_subject

bool ilForumProperties::$preset_subject = true
private

If deactivated, user is forced to enter a new subject on repliees.

Definition at line 52 of file class.ilForumProperties.php.

Referenced by isSubjectPreset().

◆ $statistics_enabled

bool ilForumProperties::$statistics_enabled = false
private

Definition at line 44 of file class.ilForumProperties.php.

Referenced by isStatisticEnabled().

◆ $styleId

int ilForumProperties::$styleId = 0
protected

Definition at line 60 of file class.ilForumProperties.php.

◆ $user_toggle_noti

bool ilForumProperties::$user_toggle_noti = false
private

Activation of allowing members to deactivate (CRS/GRP)forum notification.

Definition at line 50 of file class.ilForumProperties.php.

Referenced by getUserToggleNoti(), and isUserToggleNoti().

◆ FILE_UPLOAD_GLOBALLY_ALLOWED

const ilForumProperties::FILE_UPLOAD_GLOBALLY_ALLOWED = 0

◆ FILE_UPLOAD_INDIVIDUAL

const ilForumProperties::FILE_UPLOAD_INDIVIDUAL = 1

◆ PAGE_NAME_THREAD_OVERVIEW

const ilForumProperties::PAGE_NAME_THREAD_OVERVIEW = 'page'

Definition at line 36 of file class.ilForumProperties.php.

Referenced by ilObjForumGUI\renderThreadOverview().

◆ PAGE_SIZE_THREAD_OVERVIEW

const ilForumProperties::PAGE_SIZE_THREAD_OVERVIEW = 10

Definition at line 35 of file class.ilForumProperties.php.

Referenced by ilObjForumGUI\renderThreadOverview().

◆ VIEW_DATE

const ilForumProperties::VIEW_DATE = 2

◆ VIEW_DATE_ASC

◆ VIEW_DATE_DESC

◆ VIEW_TREE


The documentation for this class was generated from the following file: