ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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)
 

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_TREE
 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
 

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

References $ilDB, and read().

122  {
123  global $ilDB;
124 
125  $this->db = $ilDB;
126  $this->obj_id = $a_obj_id;
127  $this->read();
128  }
global $ilDB
+ Here is the call graph for this function:

Member Function Documentation

◆ __clone()

ilForumProperties::__clone ( )
private

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

131  {
132  }

◆ _isAdminForceNoti()

static ilForumProperties::_isAdminForceNoti (   $a_obj_id)
static

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

References $ilDB, $res, and array.

Referenced by ilForumNotification\checkForumsExistsInsert().

367  {
368  global $ilDB;
369 
370  $res = $ilDB->queryF("SELECT admin_force_noti FROM frm_settings WHERE obj_id = %s",
371  array('integer'),
372  array($a_obj_id));
373  while($record = $ilDB->fetchAssoc($res))
374  {
375  return $record['admin_force_noti'];
376  }
377 
378  return 0;
379  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ _isAnonymized()

static ilForumProperties::_isAnonymized (   $a_obj_id)
static

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

References $ilDB, $result, and array.

Referenced by ilPDNewsTableGUI\fillRow().

314  {
315  global $ilDB;
316 
317  $result = $ilDB->queryf("SELECT anonymized FROM frm_settings WHERE obj_id = %s",
318  array('integer'),array($a_obj_id));
319 
320  while($record = $ilDB->fetchAssoc($result))
321  {
322  return $record['anonymized'];
323  }
324 
325  return 0;
326  }
$result
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ _isUserToggleNoti()

static ilForumProperties::_isUserToggleNoti (   $a_obj_id)
static

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

References $ilDB, $res, and array.

Referenced by ilForumNotification\checkForumsExistsInsert().

382  {
383  global $ilDB;
384 
385  $res = $ilDB->queryF("SELECT user_toggle_noti FROM frm_settings WHERE obj_id = %s",
386  array('integer'),
387  array($a_obj_id));
388  while($record = $ilDB->fetchAssoc($res))
389  {
390  return $record['user_toggle_noti'];
391  }
392  return 0;
393  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ copy()

ilForumProperties::copy (   $a_new_obj_id)

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

References array, and isIsThreadRatingEnabled().

244  {
245  if ($a_new_obj_id)
246  {
247  $this->db->update('frm_settings',
248  array(
249  'default_view' => array('integer', $this->default_view),
250  'anonymized' => array('integer', $this->anonymized),
251  'statistics_enabled' => array('integer', $this->statistics_enabled),
252  'post_activation' => array('integer', $this->post_activation_enabled),
253  'admin_force_noti' => array('integer', $this->admin_force_noti),
254  'user_toggle_noti' => array('integer', $this->user_toggle_noti),
255  'preset_subject' => array('integer', $this->preset_subject),
256  'add_re_subject' => array('integer', $this->add_re_subject),
257  'notification_type' => array('text', $this->notification_type),
258  'mark_mod_posts' => array('integer', $this->mark_mod_posts),
259  'thread_sorting' => array('integer', $this->thread_sorting),
260  'thread_rating' => array('integer', $this->isIsThreadRatingEnabled()),
261  'file_upload_allowed' => array('integer', $this->file_upload_allowed)
262  ),
263  array(
264  'obj_id' => array('integer', $a_new_obj_id)
265  )
266  );
267  return true;
268  }
269 
270  return false;
271  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ getAddReSubject()

ilForumProperties::getAddReSubject ( )

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

References $add_re_subject.

Referenced by getSubjectSetting().

408  {
409  return $this->add_re_subject;
410  }
$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 490 of file class.ilForumProperties.php.

References $admin_force_noti.

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

◆ getDefaultView()

ilForumProperties::getDefaultView ( )

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

References $default_view.

294  {
295  return $this->default_view;
296  }
$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 507 of file class.ilForumProperties.php.

References $file_upload_allowed.

Referenced by isFileUploadAllowed().

508  {
510  }
+ Here is the caller graph for this function:

◆ getInstance()

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

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

Referenced by ilForumExportGUI\__construct(), ilForumModeratorsGUI\addModerator(), ilObjForum\create(), ilForum\deletePost(), ilForumModeratorsGUI\detachModeratorRole(), ilForumExportGUI\executeCommand(), ilForum\generatePost(), ilObjForum\getDiskUsage(), ilForumTopic\getNestedSetPostChildren(), ilForumXMLParser\handlerEndTag(), ilObjForumListGUI\init(), and ilObjForum\lookupForumIdByRefId().

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

◆ getMarkModeratorPosts()

ilForumProperties::getMarkModeratorPosts ( )

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

References $mark_mod_posts.

466  {
467  return $this->mark_mod_posts;
468  }

◆ getNotificationType()

ilForumProperties::getNotificationType ( )

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

References $notification_type.

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

◆ getObjId()

ilForumProperties::getObjId ( )

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

References $obj_id.

342  {
343  return $this->obj_id;
344  }
$obj_id
Object id of current forum private.

◆ getPresetSubject()

ilForumProperties::getPresetSubject ( )

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

References $preset_subject.

Referenced by getSubjectSetting().

400  {
401  return $this->preset_subject;
402  }
$preset_subject
Preset subject on reply.
+ Here is the caller graph for this function:

◆ getSubjectSetting()

ilForumProperties::getSubjectSetting ( )

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

References getAddReSubject(), and getPresetSubject().

425  {
426  if($this->getPresetSubject() == 0
427  && $this->getAddReSubject() == 0)
428  {
429  return "empty_subject";
430  }
431  else if($this->getPresetSubject() == 1)
432  {
433  return "preset_subject";
434  }
435  else if($this->getAddReSubject() == 1)
436  {
437  return "add_re_to_subject";
438  }
439  else return "preset_subject";
440  }
+ Here is the call graph for this function:

◆ getThreadSorting()

ilForumProperties::getThreadSorting ( )

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

References $thread_sorting.

475  {
476  return $this->thread_sorting;
477  }
$thread_sorting
sorting type for threads (manual sorting) 0 = default 1 = manual

◆ getUserToggleNoti()

ilForumProperties::getUserToggleNoti ( )
Returns
mixed

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

References $user_toggle_noti.

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

◆ insert()

ilForumProperties::insert ( )

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

References array, and isIsThreadRatingEnabled().

186  {
187  if ($this->obj_id)
188  {
189  $this->db->insert('frm_settings',
190  array(
191  'obj_id' => array('integer', $this->obj_id),
192  'default_view' => array('integer', $this->default_view),
193  'anonymized' => array('integer', $this->anonymized),
194  'statistics_enabled' => array('integer', $this->statistics_enabled),
195  'post_activation' => array('integer', $this->post_activation_enabled),
196  'admin_force_noti' => array('integer', $this->admin_force_noti),
197  'user_toggle_noti' => array('integer', $this->user_toggle_noti),
198  'preset_subject' => array('integer', $this->preset_subject),
199  'add_re_subject' => array('integer', $this->add_re_subject),
200  'notification_type' => array('text', $this->notification_type),
201  'mark_mod_posts' => array('integer', $this->mark_mod_posts),
202  'thread_sorting' => array('integer', $this->thread_sorting),
203  'thread_rating' => array('integer', $this->isIsThreadRatingEnabled()),
204  'file_upload_allowed' => array('integer', $this->file_upload_allowed)
205  )
206  );
207 
208  return true;
209  }
210 
211  return false;
212  }
Create styles array
The data for the language used.
+ Here is the call graph for this function:

◆ isAdminForceNoti()

ilForumProperties::isAdminForceNoti ( )

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

References $admin_force_noti.

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

◆ isAnonymized()

ilForumProperties::isAnonymized ( )

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

References $anonymized.

310  {
311  return $this->anonymized;
312  }
$anonymized
Defines if a forum is anonymized or not private.

◆ isFileUploadAllowed()

ilForumProperties::isFileUploadAllowed ( )
Returns
bool

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

References $ilSetting, and getFileUploadAllowed().

516  {
517  if(self::isFileUploadGloballyAllowed())
518  {
519  return true;
520  }
521 
522  if((bool)$this->getFileUploadAllowed())
523  {
524  return true;
525  }
526 
527  return false;
528  }
+ Here is the call graph for this function:

◆ isIsThreadRatingEnabled()

ilForumProperties::isIsThreadRatingEnabled ( )
Returns
boolean

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

References $is_thread_rating_enabled.

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

277  {
278  return (bool)$this->is_thread_rating_enabled;
279  }
+ Here is the caller graph for this function:

◆ isPostActivationEnabled()

ilForumProperties::isPostActivationEnabled ( )

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

References $post_activation_enabled.

333  {
335  }
$post_activation_enabled
Activation of new posts private.

◆ isStatisticEnabled()

ilForumProperties::isStatisticEnabled ( )

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

References $statistics_enabled.

302  {
304  }
$statistics_enabled
Defines if a forum can show ranking statistics private.

◆ isUserToggleNoti()

ilForumProperties::isUserToggleNoti ( )

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

References $user_toggle_noti.

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

◆ read()

ilForumProperties::read ( )
private

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

References $res, $row, array, and setIsThreadRatingEnabled().

Referenced by __construct(), and setObjId().

149  {
150  if ($this->obj_id)
151  {
152  $res = $this->db->queryf('
153  SELECT * FROM frm_settings
154  WHERE obj_id = %s',
155  array('integer'), array($this->obj_id));
156 
157  $row = $this->db->fetchObject($res);
158 
159  if (is_object($row))
160  {
161  $this->default_view = $row->default_view;
162  $this->anonymized = $row->anonymized ;// == 1 ? true : false;
163  $this->statistics_enabled = $row->statistics_enabled ;// == 1 ? true : false;
164  $this->post_activation_enabled = $row->post_activation ;// == 1 ? true : false;
165  $this->admin_force_noti = $row->admin_force_noti == 1 ? true : false;
166  $this->user_toggle_noti = $row->user_toggle_noti == 1 ? true : false;
167  $this->preset_subject = $row->preset_subject;
168  $this->add_re_subject = $row->add_re_subject;
169 
170  $this->notification_type = $row->notification_type == null ? 'default': $row->notification_type;
171  $this->mark_mod_posts = $row->mark_mod_posts == 1 ? true : false;
172  $this->thread_sorting = $row->thread_sorting == 1? true : false;
173  $this->setIsThreadRatingEnabled((bool)$row->thread_rating);
174  $this->file_upload_allowed = $row->file_upload_allowed == 1 ? true : false;
175 
176  return true;
177  }
178 
179  return false;
180  }
181 
182  return false;
183  }
setIsThreadRatingEnabled($is_thread_rating_enabled)
Create styles array
The data for the language used.
+ 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 403 of file class.ilForumProperties.php.

Referenced by setSubjectSetting().

404  {
405  $this->add_re_subject = $a_add_re_subject;
406  }
+ Here is the caller graph for this function:

◆ setAdminForceNoti()

ilForumProperties::setAdminForceNoti (   $a_admin_force)

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

347  {
348  $this->admin_force_noti = $a_admin_force;
349  }

◆ setAnonymisation()

ilForumProperties::setAnonymisation (   $a_anonymized)

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

306  {
307  $this->anonymized = $a_anonymized;
308  }

◆ setDefaultView()

ilForumProperties::setDefaultView (   $a_default_view)

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

290  {
291  $this->default_view = $a_default_view;
292  }

◆ setFileUploadAllowed()

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

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

500  {
501  $this->file_upload_allowed = $allowed;
502  }

◆ setIsThreadRatingEnabled()

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

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

References $is_thread_rating_enabled.

Referenced by read().

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

◆ setMarkModeratorPosts()

ilForumProperties::setMarkModeratorPosts (   $a_mod_post)

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

461  {
462  $this->mark_mod_posts = $a_mod_post;
463  }

◆ setNotificationType()

ilForumProperties::setNotificationType (   $a_notification_type)

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

413  {
414  if($a_notification_type == null)
415  $this->notification_type = 'default';
416  else
417  $this->notification_type = $a_notification_type;
418  }

◆ setObjId()

ilForumProperties::setObjId (   $a_obj_id = 0)

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

References read().

337  {
338  $this->obj_id = $a_obj_id;
339  $this->read();
340  }
+ Here is the call graph for this function:

◆ setPostActivation()

ilForumProperties::setPostActivation (   $a_post_activation)

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

329  {
330  $this->post_activation_enabled = $a_post_activation;
331  }

◆ setPresetSubject()

ilForumProperties::setPresetSubject (   $a_preset_subject)

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

Referenced by setSubjectSetting().

396  {
397  $this->preset_subject = $a_preset_subject;
398  }
+ Here is the caller graph for this function:

◆ setStatisticsStatus()

ilForumProperties::setStatisticsStatus (   $a_statistic_status)

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

298  {
299  $this->statistics_enabled = $a_statistic_status;
300  }

◆ setSubjectSetting()

ilForumProperties::setSubjectSetting (   $a_subject_setting)

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

References setAddReSubject(), and setPresetSubject().

442  {
443  if($a_subject_setting == 'empty_subject')
444  {
445  $this->setPresetSubject(0);
446  $this->setAddReSubject(0);
447  }
448  else if($a_subject_setting == 'preset_subject')
449  {
450  $this->setPresetSubject(1);
451  $this->setAddReSubject(0);
452  }
453  else if($a_subject_setting == 'add_re_to_subject')
454  {
455  $this->setPresetSubject(0);
456  $this->setAddReSubject(1);
457  }
458  }
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 470 of file class.ilForumProperties.php.

471  {
472  $this->thread_sorting = $a_thread_sorting;
473  }

◆ setUserToggleNoti()

ilForumProperties::setUserToggleNoti (   $a_user_toggle)

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

357  {
358  $this->user_toggle_noti = $a_user_toggle;
359  }

◆ update()

ilForumProperties::update ( )

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

References array, and isIsThreadRatingEnabled().

215  {
216  if ($this->obj_id)
217  {
218  $this->db->update('frm_settings',
219  array(
220  'default_view' => array('integer', $this->default_view),
221  'anonymized' => array('integer', $this->anonymized),
222  'statistics_enabled' => array('integer', $this->statistics_enabled),
223  'post_activation' => array('integer', $this->post_activation_enabled),
224  'admin_force_noti' => array('integer', $this->admin_force_noti),
225  'user_toggle_noti' => array('integer', $this->user_toggle_noti),
226  'preset_subject' => array('integer', $this->preset_subject),
227  'add_re_subject' => array('integer', $this->add_re_subject),
228  'notification_type' => array('text', $this->notification_type),
229  'mark_mod_posts' => array('integer', $this->mark_mod_posts),
230  'thread_sorting' => array('integer', $this->thread_sorting),
231  'thread_rating' => array('integer', $this->isIsThreadRatingEnabled()),
232  'file_upload_allowed' => array('integer', $this->file_upload_allowed)
233  ),
234  array(
235  'obj_id' => array('integer', $this->obj_id)
236  )
237  );
238  return true;
239  }
240  return false;
241  }
Create styles array
The data for the language used.
+ 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_TREE
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().

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

◆ VIEW_DATE_ASC

◆ VIEW_DATE_DESC

const ilForumProperties::VIEW_DATE_DESC = 3

◆ VIEW_TREE


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