ILIAS  release_8 Revision v8.24
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 ($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 (?string $a_notification_type)
 
 getNotificationType ()
 
 getSubjectSetting ()
 
 setSubjectSetting ($a_subject_setting)
 
 setMarkModeratorPosts (bool $a_mod_post)
 
 getMarkModeratorPosts ()
 
 setThreadSorting (int $a_thread_sorting)
 
 getThreadSorting ()
 
 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 FORUM_OVERVIEW_WITH_NEW_POSTS = 0
 
const FORUM_OVERVIEW_NO_NEW_POSTS = 1
 
const FILE_UPLOAD_GLOBALLY_ALLOWED = 0
 
const FILE_UPLOAD_INDIVIDUAL = 1
 
const THREAD_SORTING_DEFAULT = 0
 
const THREAD_SORTING_MANUAL = 1
 

Protected Member Functions

 __construct (int $a_obj_id=0)
 

Protected Attributes

int $styleId = 0
 
ILIAS Style Content Object ObjectFacade $content_style_service
 

Private Member Functions

 __clone ()
 
 read ()
 

Private Attributes

ilDBInterface $db
 
int $obj_id
 
int $default_view = self::VIEW_DATE_ASC
 
bool $anonymized = false
 
bool $statistics_enabled = false
 
bool $post_activation_enabled = false
 
string $notification_type = 'default'
 Global notification-type setting (CRS/GRP) possible values: 'all_users', 'per_user', null (default) More...
 
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
 
int $thread_sorting = self::THREAD_SORTING_DEFAULT
 
bool $is_thread_rating_enabled = false
 
bool $file_upload_allowed = false
 
bool $exists = false
 
int $lp_req_num_postings = 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 25 of file class.ilForumProperties.php.

Constructor & Destructor Documentation

◆ __construct()

ilForumProperties::__construct ( int  $a_obj_id = 0)
protected

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

72 {
73 global $DIC;
74
75 $this->db = $DIC->database();
76 $this->obj_id = $a_obj_id;
77 $this->read();
78 $this->content_style_service = $DIC
79 ->contentStyle()
80 ->domain()
81 ->styleForObjId($a_obj_id);
82 }
global $DIC
Definition: feed.php:28

References $DIC, and read().

+ Here is the call graph for this function:

Member Function Documentation

◆ __clone()

ilForumProperties::__clone ( )
private

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

85 {
86 }

◆ _isAdminForceNoti()

static ilForumProperties::_isAdminForceNoti ( int  $a_obj_id)
static

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

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

References $DIC, $ilDB, and $res.

Referenced by ilForumNotification\checkForumsExistsInsert().

+ Here is the caller graph for this function:

◆ _isAnonymized()

static ilForumProperties::_isAnonymized ( int  $a_obj_id)
static

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

269 : bool
270 {
271 global $DIC;
272 $ilDB = $DIC->database();
273
274 $result = $ilDB->queryF(
275 'SELECT anonymized FROM frm_settings WHERE obj_id = %s',
276 ['integer'],
277 [$a_obj_id]
278 );
279
280 while ($record = $ilDB->fetchAssoc($result)) {
281 return (bool) $record['anonymized'];
282 }
283
284 return false;
285 }

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 346 of file class.ilForumProperties.php.

346 : bool
347 {
348 global $DIC;
349
350 $ilDB = $DIC->database();
351
352 $res = $ilDB->queryF(
353 'SELECT user_toggle_noti FROM frm_settings WHERE obj_id = %s',
354 ['integer'],
355 [$a_obj_id]
356 );
357 while ($record = $ilDB->fetchAssoc($res)) {
358 return (bool) $record['user_toggle_noti'];
359 }
360
361 return false;
362 }

References $DIC, $ilDB, and $res.

Referenced by ilForumNotification\checkForumsExistsInsert().

+ Here is the caller graph for this function:

◆ copy()

ilForumProperties::copy ( int  $a_new_obj_id)

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

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

◆ getAdminForceNoti()

ilForumProperties::getAdminForceNoti ( )

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

454 : bool
455 {
457 }
bool $admin_force_noti
Activation of (CRS/GRP) forum notification by mod/admin.

References $admin_force_noti.

◆ getDefaultView()

ilForumProperties::getDefaultView ( )

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

244 : int
245 {
246 return $this->default_view;
247 }

References $default_view.

◆ getFileUploadAllowed()

ilForumProperties::getFileUploadAllowed ( )

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

464 : bool
465 {
467 }

References $file_upload_allowed.

Referenced by isFileUploadAllowed().

+ Here is the caller graph for this function:

◆ getInstance()

◆ getInterestedEvents()

ilForumProperties::getInterestedEvents ( )

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

498 : int
499 {
501 }
int $interested_events
Preset notification events for forced notification.

References $interested_events.

◆ getLpReqNumPostings()

ilForumProperties::getLpReqNumPostings ( )

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

508 : ?int
509 {
511 }

References $lp_req_num_postings.

◆ getMarkModeratorPosts()

ilForumProperties::getMarkModeratorPosts ( )

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

434 : bool
435 {
437 }

References $mark_mod_posts.

◆ getNotificationType()

ilForumProperties::getNotificationType ( )

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

393 : string
394 {
396 }
string $notification_type
Global notification-type setting (CRS/GRP) possible values: 'all_users', 'per_user',...

References $notification_type.

◆ getObjId()

ilForumProperties::getObjId ( )

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

303 : int
304 {
305 return $this->obj_id;
306 }

References $obj_id.

◆ getSubjectSetting()

ilForumProperties::getSubjectSetting ( )

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

398 : string
399 {
400 if (!$this->isSubjectPreset() && !$this->isSubjectAdded()) {
401 return "empty_subject";
402 }
403
404 if ($this->isSubjectPreset()) {
405 return "preset_subject";
406 }
407
408 if ($this->isSubjectAdded()) {
409 return "add_re_to_subject";
410 }
411
412 return "preset_subject";
413 }

References isSubjectAdded(), and isSubjectPreset().

+ Here is the call graph for this function:

◆ getThreadSorting()

ilForumProperties::getThreadSorting ( )

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

444 : int
445 {
447 }

References $thread_sorting.

◆ getUserToggleNoti()

ilForumProperties::getUserToggleNoti ( )

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

449 : bool
450 {
452 }
bool $user_toggle_noti
Activation of allowing members to deactivate (CRS/GRP)forum notification.

References $user_toggle_noti.

◆ insert()

ilForumProperties::insert ( )

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

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

Referenced by update().

+ Here is the caller graph for this function:

◆ isAdminForceNoti()

ilForumProperties::isAdminForceNoti ( )

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

313 : bool
314 {
316 }

References $admin_force_noti.

◆ isAnonymized()

ilForumProperties::isAnonymized ( )

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

264 : bool
265 {
266 return $this->anonymized;
267 }

References $anonymized.

◆ isFileUploadAllowed()

ilForumProperties::isFileUploadAllowed ( )

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

469 : bool
470 {
471 if (self::isFileUploadGloballyAllowed()) {
472 return true;
473 }
474
475 if ($this->getFileUploadAllowed()) {
476 return true;
477 }
478
479 return false;
480 }

References getFileUploadAllowed().

+ Here is the call graph for this function:

◆ isFileUploadGloballyAllowed()

static ilForumProperties::isFileUploadGloballyAllowed ( )
static

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

482 : bool
483 {
484 global $DIC;
485
486 return (
487 (int) $DIC->settings()->get('file_upload_allowed_fora') === self::FILE_UPLOAD_GLOBALLY_ALLOWED
488 );
489 }

References $DIC.

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

+ Here is the caller graph for this function:

◆ isIsThreadRatingEnabled()

ilForumProperties::isIsThreadRatingEnabled ( )

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

229 : bool
230 {
232 }

References $is_thread_rating_enabled.

◆ isPostActivationEnabled()

ilForumProperties::isPostActivationEnabled ( )

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

292 : bool
293 {
295 }

References $post_activation_enabled.

◆ isSendAttachmentsByMailEnabled()

static ilForumProperties::isSendAttachmentsByMailEnabled ( )
static

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

491 : bool
492 {
493 global $DIC;
494
495 return (bool) $DIC->settings()->get('send_attachments_by_mail');
496 }

References $DIC.

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

+ Here is the caller graph for this function:

◆ isStatisticEnabled()

ilForumProperties::isStatisticEnabled ( )

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

254 : bool
255 {
257 }

References $statistics_enabled.

◆ isSubjectAdded()

ilForumProperties::isSubjectAdded ( )

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

379 : bool
380 {
382 }
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 369 of file class.ilForumProperties.php.

369 : bool
370 {
372 }
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 323 of file class.ilForumProperties.php.

323 : bool
324 {
326 }

References $user_toggle_noti.

◆ read()

ilForumProperties::read ( )
private

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

97 : void
98 {
99 if ($this->obj_id) {
100 $res = $this->db->queryF(
101 'SELECT * FROM frm_settings WHERE obj_id = %s',
102 ['integer'],
103 [$this->obj_id]
104 );
105
106 $row = $this->db->fetchObject($res);
107 if (is_object($row)) {
108 $this->exists = true;
109
110 $this->default_view = (int) $row->default_view;
111 $this->anonymized = (bool) $row->anonymized;
112 $this->statistics_enabled = (bool) $row->statistics_enabled;
113 $this->post_activation_enabled = (bool) $row->post_activation;
114 $this->admin_force_noti = (bool) $row->admin_force_noti;
115 $this->user_toggle_noti = (bool) $row->user_toggle_noti;
116 $this->preset_subject = (bool) $row->preset_subject;
117 $this->add_re_subject = (bool) $row->add_re_subject;
118 $this->interested_events = (int) $row->interested_events;
119
120 $this->notification_type = $row->notification_type ?? 'default';
121 $this->mark_mod_posts = (bool) $row->mark_mod_posts;
122 $this->thread_sorting = (int) $row->thread_sorting;
123 $this->is_thread_rating_enabled = (bool) $row->thread_rating;
124 $this->file_upload_allowed = (bool) $row->file_upload_allowed;
125 if (is_numeric($row->lp_req_num_postings)) {
126 $this->lp_req_num_postings = (int) $row->lp_req_num_postings;
127 }
128 }
129 }
130 }
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20

References $res, 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 374 of file class.ilForumProperties.php.

374 : void
375 {
376 $this->add_re_subject = $a_add_re_subject;
377 }

Referenced by setSubjectSetting().

+ Here is the caller graph for this function:

◆ setAdminForceNoti()

ilForumProperties::setAdminForceNoti ( bool  $a_admin_force)

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

308 : void
309 {
310 $this->admin_force_noti = $a_admin_force;
311 }

◆ setAnonymisation()

ilForumProperties::setAnonymisation ( bool  $a_anonymized)

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

259 : void
260 {
261 $this->anonymized = $a_anonymized;
262 }

◆ setDefaultView()

ilForumProperties::setDefaultView (   $a_default_view)

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

239 : void
240 {
241 $this->default_view = $a_default_view;
242 }

◆ setFileUploadAllowed()

ilForumProperties::setFileUploadAllowed ( bool  $allowed)

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

459 : void
460 {
461 $this->file_upload_allowed = $allowed;
462 }

◆ setInterestedEvents()

ilForumProperties::setInterestedEvents ( int  $interested_events)

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

503 : void
504 {
505 $this->interested_events = $interested_events;
506 }

References $interested_events.

◆ setIsThreadRatingEnabled()

ilForumProperties::setIsThreadRatingEnabled ( bool  $is_thread_rating_enabled)

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

234 : void
235 {
236 $this->is_thread_rating_enabled = $is_thread_rating_enabled;
237 }

References $is_thread_rating_enabled.

◆ setLpReqNumPostings()

ilForumProperties::setLpReqNumPostings ( ?int  $lp_req_num_postings)

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

513 : void
514 {
515 $this->lp_req_num_postings = $lp_req_num_postings;
516 }

References $lp_req_num_postings.

◆ setMarkModeratorPosts()

ilForumProperties::setMarkModeratorPosts ( bool  $a_mod_post)

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

429 : void
430 {
431 $this->mark_mod_posts = $a_mod_post;
432 }

◆ setNotificationType()

ilForumProperties::setNotificationType ( ?string  $a_notification_type)

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

384 : void
385 {
386 if ($a_notification_type === null) {
387 $this->notification_type = 'default';
388 } else {
389 $this->notification_type = $a_notification_type;
390 }
391 }

◆ setObjId()

ilForumProperties::setObjId ( int  $a_obj_id)

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

297 : void
298 {
299 $this->obj_id = $a_obj_id;
300 $this->read();
301 }

References read().

+ Here is the call graph for this function:

◆ setPostActivation()

ilForumProperties::setPostActivation ( bool  $a_post_activation)

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

287 : void
288 {
289 $this->post_activation_enabled = $a_post_activation;
290 }

◆ setPresetSubject()

ilForumProperties::setPresetSubject ( bool  $a_preset_subject)

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

364 : void
365 {
366 $this->preset_subject = $a_preset_subject;
367 }

Referenced by setSubjectSetting().

+ Here is the caller graph for this function:

◆ setStatisticsStatus()

ilForumProperties::setStatisticsStatus ( bool  $a_statistic_status)

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

249 : void
250 {
251 $this->statistics_enabled = $a_statistic_status;
252 }

◆ setSubjectSetting()

ilForumProperties::setSubjectSetting (   $a_subject_setting)

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

415 : void
416 {
417 if ($a_subject_setting === 'empty_subject') {
418 $this->setPresetSubject(false);
419 $this->setAddReSubject(false);
420 } elseif ($a_subject_setting === 'preset_subject') {
421 $this->setPresetSubject(true);
422 $this->setAddReSubject(false);
423 } elseif ($a_subject_setting === 'add_re_to_subject') {
424 $this->setPresetSubject(false);
425 $this->setAddReSubject(true);
426 }
427 }
setPresetSubject(bool $a_preset_subject)
setAddReSubject(bool $a_add_re_subject)

References setAddReSubject(), and setPresetSubject().

+ Here is the call graph for this function:

◆ setThreadSorting()

ilForumProperties::setThreadSorting ( int  $a_thread_sorting)

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

439 : void
440 {
441 $this->thread_sorting = $a_thread_sorting;
442 }

◆ setUserToggleNoti()

ilForumProperties::setUserToggleNoti ( bool  $a_user_toggle)

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

318 : void
319 {
320 $this->user_toggle_noti = $a_user_toggle;
321 }

◆ update()

ilForumProperties::update ( )

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

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

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 61 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 53 of file class.ilForumProperties.php.

Referenced by getAdminForceNoti(), and isAdminForceNoti().

◆ $anonymized

bool ilForumProperties::$anonymized = false
private

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

Referenced by isAnonymized().

◆ $content_style_service

ILIAS Style Content Object ObjectFacade ilForumProperties::$content_style_service
protected

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

◆ $db

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 43 of file class.ilForumProperties.php.

Referenced by getDefaultView().

◆ $exists

bool ilForumProperties::$exists = false
private

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

◆ $file_upload_allowed

bool ilForumProperties::$file_upload_allowed = false
private

Definition at line 65 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 59 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 68 of file class.ilForumProperties.php.

Referenced by getLpReqNumPostings(), and setLpReqNumPostings().

◆ $mark_mod_posts

bool ilForumProperties::$mark_mod_posts = false
private

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

Referenced by getMarkModeratorPosts().

◆ $notification_type

string ilForumProperties::$notification_type = 'default'
private

Global notification-type setting (CRS/GRP) possible values: 'all_users', 'per_user', null (default)

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

Referenced by getNotificationType().

◆ $obj_id

int ilForumProperties::$obj_id
private

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

Referenced by getObjId().

◆ $post_activation_enabled

bool ilForumProperties::$post_activation_enabled = false
private

Definition at line 46 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 57 of file class.ilForumProperties.php.

Referenced by isSubjectPreset().

◆ $statistics_enabled

bool ilForumProperties::$statistics_enabled = false
private

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

Referenced by isStatisticEnabled().

◆ $styleId

int ilForumProperties::$styleId = 0
protected

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

◆ $thread_sorting

int ilForumProperties::$thread_sorting = self::THREAD_SORTING_DEFAULT
private

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

Referenced by getThreadSorting().

◆ $user_toggle_noti

bool ilForumProperties::$user_toggle_noti = false
private

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

Definition at line 55 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

◆ FORUM_OVERVIEW_NO_NEW_POSTS

const ilForumProperties::FORUM_OVERVIEW_NO_NEW_POSTS = 1

◆ FORUM_OVERVIEW_WITH_NEW_POSTS

◆ THREAD_SORTING_DEFAULT

const ilForumProperties::THREAD_SORTING_DEFAULT = 0

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

Referenced by ilForumXMLParser\handlerEndTag().

◆ THREAD_SORTING_MANUAL

const ilForumProperties::THREAD_SORTING_MANUAL = 1

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

◆ 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: