ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilForumProperties Class Reference
+ Collaboration diagram for ilForumProperties:

Public Member Functions

 insert ()
 
 update ()
 
 copy ($a_new_obj_id)
 
 isIsThreadRatingEnabled ()
 
 setIsThreadRatingEnabled ($is_thread_rating_enabled)
 
 setDefaultView ($a_default_view)
 
 getDefaultView ()
 
 setStatisticsStatus ($a_statistic_status)
 
 isStatisticEnabled ()
 
 setAnonymisation ($a_anonymized)
 
 isAnonymized ()
 
 setPostActivation ($a_post_activation)
 
 isPostActivationEnabled ()
 
 setObjId ($a_obj_id=0)
 
 getObjId ()
 
 setAdminForceNoti ($a_admin_force)
 
 isAdminForceNoti ()
 
 setUserToggleNoti ($a_user_toggle)
 
 isUserToggleNoti ()
 
 setPresetSubject ($a_preset_subject)
 
 getPresetSubject ()
 
 setAddReSubject ($a_add_re_subject)
 
 getAddReSubject ()
 
 setNotificationType ($a_notification_type)
 
 getNotificationType ()
 
 getSubjectSetting ()
 
 setSubjectSetting ($a_subject_setting)
 
 setMarkModeratorPosts ($a_mod_post)
 
 getMarkModeratorPosts ()
 
 setThreadSorting ($a_thread_sorting)
 
 getThreadSorting ()
 
 getUserToggleNoti ()
 
 getAdminForceNoti ()
 
 setFileUploadAllowed ($allowed)
 
 getFileUploadAllowed ()
 
 isFileUploadAllowed ()
 

Static Public Member Functions

static getInstance ($a_obj_id=0)
 
static _isAnonymized ($a_obj_id)
 
static _isAdminForceNoti ($a_obj_id)
 
static _isUserToggleNoti ($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
 

Protected Member Functions

 __construct ($a_obj_id=0)
 

Private Member Functions

 __clone ()
 
 read ()
 

Private Attributes

 $obj_id
 Object id of current forum private. More...
 
 $default_view = self::VIEW_DATE_ASC
 Default view ( 1 => 'order by answers', 2 => 'order by date ascending', 3 => 'order by date descending') private. More...
 
 $anonymized = 0
 Defines if a forum is anonymized or not private. More...
 
 $statistics_enabled = 0
 Defines if a forum can show ranking statistics private. More...
 
 $post_activation_enabled = 0
 Activation of new posts private. More...
 
 $notification_type = null
 Global notification-type setting (CRS/GRP) possible values: 'all_users', 'per_user', null (default) More...
 
 $admin_force_noti = false
 Activation of (CRS/GRP) forum notification by mod/admin private. More...
 
 $user_toggle_noti = false
 Activation of allowing members to deactivate (CRS/GRP)forum notification private. More...
 
 $preset_subject = 1
 Preset subject on reply. More...
 
 $add_re_subject = 0
 Add 'Re: ' to subject on reply. More...
 
 $mark_mod_posts = 0
 
 $thread_sorting = 0
 sorting type for threads (manual sorting) 0 = default 1 = manual More...
 
 $is_thread_rating_enabled = false
 
 $db = null
 DB Object private. More...
 
 $file_upload_allowed = 0
 
 $exists = false
 

Static Private Attributes

static $instances = array()
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilForumProperties::__construct (   $a_obj_id = 0)
protected

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

References $DIC, and read().

125  {
126  global $DIC;
127 
128  $this->db = $DIC->database();
129  $this->obj_id = $a_obj_id;
130  $this->read();
131  }
global $DIC
Definition: goto.php:24
+ Here is the call graph for this function:

Member Function Documentation

◆ __clone()

ilForumProperties::__clone ( )
private

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

134  {
135  }

◆ _isAdminForceNoti()

static ilForumProperties::_isAdminForceNoti (   $a_obj_id)
static

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

References $DIC, $ilDB, and $res.

Referenced by ilForumNotification\checkForumsExistsInsert().

388  {
389  global $DIC;
390  $ilDB = $DIC->database();
391 
392  $res = $ilDB->queryF(
393  "SELECT admin_force_noti FROM frm_settings WHERE obj_id = %s",
394  array('integer'),
395  array($a_obj_id)
396  );
397  while ($record = $ilDB->fetchAssoc($res)) {
398  return $record['admin_force_noti'];
399  }
400 
401  return 0;
402  }
foreach($_POST as $key=> $value) $res
global $DIC
Definition: goto.php:24
global $ilDB
+ Here is the caller graph for this function:

◆ _isAnonymized()

static ilForumProperties::_isAnonymized (   $a_obj_id)
static

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

References $DIC, $ilDB, and $result.

Referenced by ilPDNewsTableGUI\fillRow().

329  {
330  global $DIC;
331  $ilDB = $DIC->database();
332 
333  $result = $ilDB->queryf(
334  "SELECT anonymized FROM frm_settings WHERE obj_id = %s",
335  array('integer'),
336  array($a_obj_id)
337  );
338 
339  while ($record = $ilDB->fetchAssoc($result)) {
340  return $record['anonymized'];
341  }
342 
343  return 0;
344  }
$result
global $DIC
Definition: goto.php:24
global $ilDB
+ Here is the caller graph for this function:

◆ _isUserToggleNoti()

static ilForumProperties::_isUserToggleNoti (   $a_obj_id)
static

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

References $DIC, $ilDB, and $res.

Referenced by ilForumNotification\checkForumsExistsInsert().

405  {
406  global $DIC;
407  $ilDB = $DIC->database();
408 
409  $res = $ilDB->queryF(
410  "SELECT user_toggle_noti FROM frm_settings WHERE obj_id = %s",
411  array('integer'),
412  array($a_obj_id)
413  );
414  while ($record = $ilDB->fetchAssoc($res)) {
415  return $record['user_toggle_noti'];
416  }
417  return 0;
418  }
foreach($_POST as $key=> $value) $res
global $DIC
Definition: goto.php:24
global $ilDB
+ Here is the caller graph for this function:

◆ copy()

ilForumProperties::copy (   $a_new_obj_id)

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

References isIsThreadRatingEnabled().

253  {
254  if ($a_new_obj_id) {
255  $this->db->update(
256  'frm_settings',
257  array(
258  'default_view' => array('integer', $this->default_view),
259  'anonymized' => array('integer', $this->anonymized),
260  'statistics_enabled' => array('integer', $this->statistics_enabled),
261  'post_activation' => array('integer', $this->post_activation_enabled),
262  'admin_force_noti' => array('integer', $this->admin_force_noti),
263  'user_toggle_noti' => array('integer', $this->user_toggle_noti),
264  'preset_subject' => array('integer', $this->preset_subject),
265  'add_re_subject' => array('integer', $this->add_re_subject),
266  'notification_type' => array('text', $this->notification_type),
267  'mark_mod_posts' => array('integer', $this->mark_mod_posts),
268  'thread_sorting' => array('integer', $this->thread_sorting),
269  'thread_rating' => array('integer', $this->isIsThreadRatingEnabled()),
270  'file_upload_allowed' => array('integer', $this->file_upload_allowed)
271  ),
272  array(
273  'obj_id' => array('integer', $a_new_obj_id)
274  )
275  );
276  return true;
277  }
278 
279  return false;
280  }
+ Here is the call graph for this function:

◆ getAddReSubject()

ilForumProperties::getAddReSubject ( )

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

References $add_re_subject.

Referenced by getSubjectSetting().

436  {
437  return $this->add_re_subject;
438  }
$add_re_subject
Add 'Re: ' to subject on reply.
+ Here is the caller graph for this function:

◆ getAdminForceNoti()

ilForumProperties::getAdminForceNoti ( )
Returns
mixed

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

References $admin_force_noti.

522  {
524  }
$admin_force_noti
Activation of (CRS/GRP) forum notification by mod/admin private.

◆ getDefaultView()

ilForumProperties::getDefaultView ( )

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

References $default_view.

304  {
305  return (int) $this->default_view;
306  }
$default_view
Default view ( 1 => 'order by answers', 2 => 'order by date ascending', 3 => 'order by date descendin...

◆ getFileUploadAllowed()

ilForumProperties::getFileUploadAllowed ( )
Returns
int

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

References $file_upload_allowed.

Referenced by isFileUploadAllowed().

539  {
541  }
+ Here is the caller graph for this function:

◆ getInstance()

static ilForumProperties::getInstance (   $a_obj_id = 0)
static
Parameters
int$a_obj_id
Returns
static

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

Referenced by ilForumExportGUI\__construct(), ilObjForumGUI\__construct(), ilForumModeratorsGUI\addModerator(), ilObjForum\create(), ilForumModeratorsGUI\detachModeratorRole(), ilForum\generatePost(), ilForum\getAllThreads(), ilForumTopic\getNestedSetPostChildren(), ilObjForumListGUI\getProperties(), ilForumXMLParser\handlerEndTag(), ilObjForum\lookupStatisticsByRefId(), ilForumExportGUI\renderPostHtml(), and ilObjForum\update().

141  : self
142  {
143  if (!isset(self::$instances[$a_obj_id]) || !(self::$instances[$a_obj_id] instanceof self)) {
144  self::$instances[$a_obj_id] = new ilForumProperties($a_obj_id);
145  }
146 
147  return self::$instances[$a_obj_id];
148  }
+ Here is the caller graph for this function:

◆ getMarkModeratorPosts()

ilForumProperties::getMarkModeratorPosts ( )

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

References $mark_mod_posts.

496  {
497  return $this->mark_mod_posts;
498  }

◆ getNotificationType()

ilForumProperties::getNotificationType ( )

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

References $notification_type.

450  {
452  }
$notification_type
Global notification-type setting (CRS/GRP) possible values: 'all_users', 'per_user', null (default)

◆ getObjId()

ilForumProperties::getObjId ( )

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

References $obj_id.

363  {
364  return $this->obj_id;
365  }
$obj_id
Object id of current forum private.

◆ getPresetSubject()

ilForumProperties::getPresetSubject ( )

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

References $preset_subject.

Referenced by getSubjectSetting().

426  {
427  return $this->preset_subject;
428  }
$preset_subject
Preset subject on reply.
+ Here is the caller graph for this function:

◆ getSubjectSetting()

ilForumProperties::getSubjectSetting ( )

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

References getAddReSubject(), and getPresetSubject().

455  {
456  if ($this->getPresetSubject() == 0
457  && $this->getAddReSubject() == 0) {
458  return "empty_subject";
459  } else {
460  if ($this->getPresetSubject() == 1) {
461  return "preset_subject";
462  } else {
463  if ($this->getAddReSubject() == 1) {
464  return "add_re_to_subject";
465  } else {
466  return "preset_subject";
467  }
468  }
469  }
470  }
+ Here is the call graph for this function:

◆ getThreadSorting()

ilForumProperties::getThreadSorting ( )

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

References $thread_sorting.

506  {
507  return $this->thread_sorting;
508  }
$thread_sorting
sorting type for threads (manual sorting) 0 = default 1 = manual

◆ getUserToggleNoti()

ilForumProperties::getUserToggleNoti ( )
Returns
mixed

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

References $user_toggle_noti.

514  {
516  }
$user_toggle_noti
Activation of allowing members to deactivate (CRS/GRP)forum notification private.

◆ insert()

ilForumProperties::insert ( )

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

References isIsThreadRatingEnabled().

Referenced by update().

190  {
191  if ($this->obj_id && !$this->exists) {
192  $this->db->insert(
193  'frm_settings',
194  array(
195  'obj_id' => array('integer', $this->obj_id),
196  'default_view' => array('integer', $this->default_view),
197  'anonymized' => array('integer', $this->anonymized),
198  'statistics_enabled' => array('integer', $this->statistics_enabled),
199  'post_activation' => array('integer', $this->post_activation_enabled),
200  'admin_force_noti' => array('integer', $this->admin_force_noti),
201  'user_toggle_noti' => array('integer', $this->user_toggle_noti),
202  'preset_subject' => array('integer', $this->preset_subject),
203  'add_re_subject' => array('integer', $this->add_re_subject),
204  'notification_type' => array('text', $this->notification_type),
205  'mark_mod_posts' => array('integer', $this->mark_mod_posts),
206  'thread_sorting' => array('integer', $this->thread_sorting),
207  'thread_rating' => array('integer', $this->isIsThreadRatingEnabled()),
208  'file_upload_allowed' => array('integer', $this->file_upload_allowed)
209  )
210  );
211 
212  $this->exists = true;
213  return true;
214  }
215 
216  return false;
217  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isAdminForceNoti()

ilForumProperties::isAdminForceNoti ( )

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

References $admin_force_noti.

373  {
375  }
$admin_force_noti
Activation of (CRS/GRP) forum notification by mod/admin private.

◆ isAnonymized()

ilForumProperties::isAnonymized ( )

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

References $anonymized.

324  {
325  return $this->anonymized;
326  }
$anonymized
Defines if a forum is anonymized or not private.

◆ isFileUploadAllowed()

ilForumProperties::isFileUploadAllowed ( )
Returns
bool

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

References getFileUploadAllowed().

547  {
548  if (self::isFileUploadGloballyAllowed()) {
549  return true;
550  }
551 
552  if ((bool) $this->getFileUploadAllowed()) {
553  return true;
554  }
555 
556  return false;
557  }
+ Here is the call graph for this function:

◆ isFileUploadGloballyAllowed()

static ilForumProperties::isFileUploadGloballyAllowed ( )
static
Returns
bool

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

References $DIC.

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

563  {
564  global $DIC;
565  return $DIC->settings()->get(
566  'file_upload_allowed_fora',
567  self::FILE_UPLOAD_GLOBALLY_ALLOWED
568  ) == self::FILE_UPLOAD_GLOBALLY_ALLOWED;
569  }
global $DIC
Definition: goto.php:24
+ Here is the caller graph for this function:

◆ isIsThreadRatingEnabled()

ilForumProperties::isIsThreadRatingEnabled ( )
Returns
boolean

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

References $is_thread_rating_enabled.

Referenced by copy(), insert(), and update().

286  {
287  return (bool) $this->is_thread_rating_enabled;
288  }
+ Here is the caller graph for this function:

◆ isPostActivationEnabled()

ilForumProperties::isPostActivationEnabled ( )

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

References $post_activation_enabled.

352  {
354  }
$post_activation_enabled
Activation of new posts private.

◆ isSendAttachmentsByMailEnabled()

static ilForumProperties::isSendAttachmentsByMailEnabled ( )
static
Returns
bool

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

References $DIC.

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

575  {
576  global $DIC;
577  return $DIC->settings()->get('send_attachments_by_mail') == true ? true : false;
578  }
global $DIC
Definition: goto.php:24
+ Here is the caller graph for this function:

◆ isStatisticEnabled()

ilForumProperties::isStatisticEnabled ( )

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

References $statistics_enabled.

314  {
316  }
$statistics_enabled
Defines if a forum can show ranking statistics private.

◆ isUserToggleNoti()

ilForumProperties::isUserToggleNoti ( )

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

References $user_toggle_noti.

383  {
385  }
$user_toggle_noti
Activation of allowing members to deactivate (CRS/GRP)forum notification private.

◆ read()

ilForumProperties::read ( )
private

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

References $res, and setIsThreadRatingEnabled().

Referenced by __construct(), and setObjId().

151  {
152  if ($this->obj_id) {
153  $res = $this->db->queryf(
154  '
155  SELECT * FROM frm_settings
156  WHERE obj_id = %s',
157  array('integer'),
158  array($this->obj_id)
159  );
160 
161  $row = $this->db->fetchObject($res);
162 
163  if (is_object($row)) {
164  $this->default_view = $row->default_view;
165  $this->anonymized = $row->anonymized;// == 1 ? true : false;
166  $this->statistics_enabled = $row->statistics_enabled;// == 1 ? true : false;
167  $this->post_activation_enabled = $row->post_activation;// == 1 ? true : false;
168  $this->admin_force_noti = $row->admin_force_noti == 1 ? true : false;
169  $this->user_toggle_noti = $row->user_toggle_noti == 1 ? true : false;
170  $this->preset_subject = $row->preset_subject;
171  $this->add_re_subject = $row->add_re_subject;
172 
173  $this->notification_type = $row->notification_type == null ? 'default' : $row->notification_type;
174  $this->mark_mod_posts = $row->mark_mod_posts == 1 ? true : false;
175  $this->thread_sorting = $row->thread_sorting == 1 ? true : false;
176  $this->setIsThreadRatingEnabled((bool) $row->thread_rating);
177  $this->file_upload_allowed = $row->file_upload_allowed == 1 ? true : false;
178 
179  $this->exists = true;
180  return true;
181  }
182 
183  return false;
184  }
185 
186  return false;
187  }
setIsThreadRatingEnabled($is_thread_rating_enabled)
foreach($_POST as $key=> $value) $res
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAddReSubject()

ilForumProperties::setAddReSubject (   $a_add_re_subject)

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

Referenced by setSubjectSetting().

431  {
432  $this->add_re_subject = $a_add_re_subject;
433  }
+ Here is the caller graph for this function:

◆ setAdminForceNoti()

ilForumProperties::setAdminForceNoti (   $a_admin_force)

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

368  {
369  $this->admin_force_noti = $a_admin_force;
370  }

◆ setAnonymisation()

ilForumProperties::setAnonymisation (   $a_anonymized)

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

319  {
320  $this->anonymized = $a_anonymized;
321  }

◆ setDefaultView()

ilForumProperties::setDefaultView (   $a_default_view)

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

299  {
300  $this->default_view = $a_default_view;
301  }

◆ setFileUploadAllowed()

ilForumProperties::setFileUploadAllowed (   $allowed)
Parameters
int$allowed
Exceptions
InvalidArgumentException

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

531  {
532  $this->file_upload_allowed = $allowed;
533  }

◆ setIsThreadRatingEnabled()

ilForumProperties::setIsThreadRatingEnabled (   $is_thread_rating_enabled)
Parameters
boolean$is_thread_rating_enabled

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

References $is_thread_rating_enabled.

Referenced by read().

294  {
295  $this->is_thread_rating_enabled = (bool) $is_thread_rating_enabled;
296  }
+ Here is the caller graph for this function:

◆ setMarkModeratorPosts()

ilForumProperties::setMarkModeratorPosts (   $a_mod_post)

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

491  {
492  $this->mark_mod_posts = $a_mod_post;
493  }

◆ setNotificationType()

ilForumProperties::setNotificationType (   $a_notification_type)

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

441  {
442  if ($a_notification_type == null) {
443  $this->notification_type = 'default';
444  } else {
445  $this->notification_type = $a_notification_type;
446  }
447  }

◆ setObjId()

ilForumProperties::setObjId (   $a_obj_id = 0)

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

References read().

357  {
358  $this->obj_id = $a_obj_id;
359  $this->read();
360  }
+ Here is the call graph for this function:

◆ setPostActivation()

ilForumProperties::setPostActivation (   $a_post_activation)

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

347  {
348  $this->post_activation_enabled = $a_post_activation;
349  }

◆ setPresetSubject()

ilForumProperties::setPresetSubject (   $a_preset_subject)

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

Referenced by setSubjectSetting().

421  {
422  $this->preset_subject = $a_preset_subject;
423  }
+ Here is the caller graph for this function:

◆ setStatisticsStatus()

ilForumProperties::setStatisticsStatus (   $a_statistic_status)

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

309  {
310  $this->statistics_enabled = $a_statistic_status;
311  }

◆ setSubjectSetting()

ilForumProperties::setSubjectSetting (   $a_subject_setting)

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

References setAddReSubject(), and setPresetSubject().

473  {
474  if ($a_subject_setting == 'empty_subject') {
475  $this->setPresetSubject(0);
476  $this->setAddReSubject(0);
477  } else {
478  if ($a_subject_setting == 'preset_subject') {
479  $this->setPresetSubject(1);
480  $this->setAddReSubject(0);
481  } else {
482  if ($a_subject_setting == 'add_re_to_subject') {
483  $this->setPresetSubject(0);
484  $this->setAddReSubject(1);
485  }
486  }
487  }
488  }
setPresetSubject($a_preset_subject)
setAddReSubject($a_add_re_subject)
+ Here is the call graph for this function:

◆ setThreadSorting()

ilForumProperties::setThreadSorting (   $a_thread_sorting)

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

501  {
502  $this->thread_sorting = $a_thread_sorting;
503  }

◆ setUserToggleNoti()

ilForumProperties::setUserToggleNoti (   $a_user_toggle)

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

378  {
379  $this->user_toggle_noti = $a_user_toggle;
380  }

◆ update()

ilForumProperties::update ( )

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

References insert(), and isIsThreadRatingEnabled().

220  {
221  if ($this->obj_id) {
222  if (!$this->exists) {
223  return $this->insert();
224  }
225 
226  $this->db->update(
227  'frm_settings',
228  array(
229  'default_view' => array('integer', $this->default_view),
230  'anonymized' => array('integer', $this->anonymized),
231  'statistics_enabled' => array('integer', $this->statistics_enabled),
232  'post_activation' => array('integer', $this->post_activation_enabled),
233  'admin_force_noti' => array('integer', $this->admin_force_noti),
234  'user_toggle_noti' => array('integer', $this->user_toggle_noti),
235  'preset_subject' => array('integer', $this->preset_subject),
236  'add_re_subject' => array('integer', $this->add_re_subject),
237  'notification_type' => array('text', $this->notification_type),
238  'mark_mod_posts' => array('integer', $this->mark_mod_posts),
239  'thread_sorting' => array('integer', $this->thread_sorting),
240  'thread_rating' => array('integer', $this->isIsThreadRatingEnabled()),
241  'file_upload_allowed' => array('integer', $this->file_upload_allowed)
242  ),
243  array(
244  'obj_id' => array('integer', $this->obj_id)
245  )
246  );
247  return true;
248  }
249  return false;
250  }
+ Here is the call graph for this function:

Field Documentation

◆ $add_re_subject

ilForumProperties::$add_re_subject = 0
private

Add 'Re: ' to subject on reply.

private

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

Referenced by getAddReSubject().

◆ $admin_force_noti

ilForumProperties::$admin_force_noti = false
private

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

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

Referenced by getAdminForceNoti(), and isAdminForceNoti().

◆ $anonymized

ilForumProperties::$anonymized = 0
private

Defines if a forum is anonymized or not private.

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

Referenced by isAnonymized().

◆ $db

ilForumProperties::$db = null
private

DB Object private.

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

◆ $default_view

ilForumProperties::$default_view = self::VIEW_DATE_ASC
private

Default view ( 1 => 'order by answers', 2 => 'order by date ascending', 3 => 'order by date descending') private.

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

Referenced by getDefaultView().

◆ $exists

ilForumProperties::$exists = false
private

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

◆ $file_upload_allowed

ilForumProperties::$file_upload_allowed = 0
private

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

Referenced by getFileUploadAllowed().

◆ $instances

ilForumProperties::$instances = array()
staticprivate

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

◆ $is_thread_rating_enabled

ilForumProperties::$is_thread_rating_enabled = false
private

◆ $mark_mod_posts

ilForumProperties::$mark_mod_posts = 0
private

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

Referenced by getMarkModeratorPosts().

◆ $notification_type

ilForumProperties::$notification_type = null
private

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

private

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

Referenced by getNotificationType().

◆ $obj_id

ilForumProperties::$obj_id
private

Object id of current forum private.

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

Referenced by getObjId().

◆ $post_activation_enabled

ilForumProperties::$post_activation_enabled = 0
private

Activation of new posts private.

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

Referenced by isPostActivationEnabled().

◆ $preset_subject

ilForumProperties::$preset_subject = 1
private

Preset subject on reply.

If deactivated, user is forced to enter a new subject

private

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

Referenced by getPresetSubject().

◆ $statistics_enabled

ilForumProperties::$statistics_enabled = 0
private

Defines if a forum can show ranking statistics private.

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

Referenced by isStatisticEnabled().

◆ $thread_sorting

ilForumProperties::$thread_sorting = 0
private

sorting type for threads (manual sorting) 0 = default 1 = manual

private

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

Referenced by getThreadSorting().

◆ $user_toggle_noti

ilForumProperties::$user_toggle_noti = false
private

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

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

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

◆ FORUM_OVERVIEW_WITH_NEW_POSTS

const ilForumProperties::FORUM_OVERVIEW_WITH_NEW_POSTS = 0

◆ VIEW_DATE

const ilForumProperties::VIEW_DATE = 2

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

◆ VIEW_DATE_ASC

◆ VIEW_DATE_DESC

◆ VIEW_TREE


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