| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
Class Forum core functions for forum. More...
 Collaboration diagram for ilForum:
 Collaboration diagram for ilForum:| Public Member Functions | |
| ilForum () | |
| Constructor  public. | |
| setLanguage ($lng) | |
| setForumId ($a_obj_id) | |
| set object id which refers to ILIAS obj_id | |
| setForumRefId ($a_ref_id) | |
| set reference id which refers to ILIAS obj_id | |
| getForumId () | |
| get forum id  public | |
| getForumRefId () | |
| get forum ref_id  public | |
| getOrderField () | |
| get name of orderField | |
| setDbTable ($dbTable) | |
| set database table | |
| getDbTable () | |
| get name of database table | |
| setMDB2WhereCondition ($query_string, $data_type, $data_value) | |
| set content for additional condition | |
| getMDB2Query () | |
| get content of additional condition | |
| getMDB2DataValue () | |
| /* get content of additional condition | |
| getMDB2DataType () | |
| get content of additional condition | |
| setPageHits ($pageHits) | |
| set number of max. | |
| getPageHits () | |
| get number of max. | |
| getOneDataset () | |
| get one dataset from set Table and set WhereCondition | |
| getOneTopic () | |
| get one topic-dataset by WhereCondition | |
| fixThreadNumber ($a_top_pk, $a_num_threads) | |
| In some rare cases the thread number in frm_data is incorrect. | |
| _lookupForumData ($a_obj_id) | |
| lookup forum data | |
| getOneThread () | |
| get one thread-dataset by WhereCondition | |
| getOnePost ($post) | |
| get one post-dataset | |
| getPostById ($a_id) | |
| _lookupPostMessage ($a_id) | |
| generatePost ($forum_id, $thread_id, $user, $message, $parent_pos, $notify, $subject= '', $alias= '', $date= '', $status=1, $send_activation_mail=0) | |
| generate new dataset in frm_posts | |
| generateThread ($forum_id, $user, $subject, $message, $notify, $notify_posts, $alias= '', $date= '') | |
| generate new dataset in frm_threads | |
| updatePost ($message, $pos_pk, $notify, $subject, $thr_pk=0) | |
| update dataset in frm_posts | |
| updateThread ($thr_pk, $subject) | |
| update dataset in frm_threads | |
| getAllForums () | |
| moveThreads ($thread_ids=array(), $src_ref_id=0, $dest_top_frm_fk=0) | |
| Moves all chosen threads and their posts to a new forum. | |
| postCensorship ($message, $pos_pk, $cens=0) | |
| update dataset in frm_posts with censorship info | |
| deletePost ($post) | |
| delete post and sub-posts | |
| getAllThreads ($a_topic_id, $is_moderator=false) | |
| Get all threads of given thread. | |
| getPostList ($topic, $thread) | |
| get all posts of given thread | |
| getUserStatistic ($is_moderator=false) | |
| getFirstPostByThread ($a_thread_id) | |
| Get first post of thread. | |
| getLastPost ($lastPost) | |
| get content of given ID's | |
| getUser ($a_user_id) | |
| get content of given user-ID | |
| getModerators () | |
| get all users assigned to local role il_frm_moderator_<frm_ref_id> | |
| _getModerators ($a_ref_id) | |
| get all users assigned to local role il_frm_moderator_<frm_ref_id> (static) | |
| _isModerator ($a_ref_id, $a_usr_id) | |
| checks whether a user is moderator of a given forum object | |
| countUserArticles ($a_user_id) | |
| get number of articles from given user-ID | |
| countActiveUserArticles ($a_user_id) | |
| getForumPath ($a_ref_id) | |
| builds a string to show the forum-context | |
| convertDate ($date) | |
| converts the date format | |
| addPostTree ($a_tree_id, $a_node_id=-1, $a_date= '') | |
| create a new post-tree | |
| insertPostNode ($a_node_id, $a_parent_id, $tree_id, $a_date= '') | |
| insert node under parent node  public | |
| getPostDepth ($a_node_id, $tree_id) | |
| Return depth of an object  private. | |
| getPostTree ($a_node) | |
| get all nodes in the subtree under specified node | |
| getPostChilds ($a_node_id, $a_thr_id) | |
| get child nodes of given node  public | |
| getFirstPostNode ($tree_id) | |
| get data of the first node from frm_posts_tree and frm_posts  public | |
| getPostNode ($post_id) | |
| get data of given node from frm_posts_tree and frm_posts  public | |
| fetchPostNodeData ($a_row) | |
| get data of parent node from frm_posts_tree and frm_posts  private | |
| getPostMaximumDepth ($a_thr_id) | |
| Return the maximum depth in tree  public. | |
| deletePostTree ($a_node) | |
| delete node and the whole subtree under this node  public | |
| updateVisits ($ID) | |
| update page hits of given forum- or thread-ID  public | |
| prepareText ($text, $edit=0, $quote_user= '', $type= '') | |
| prepares given string  public | |
| getModeratorFromPost ($pos_pk) | |
| get one post-dataset | |
| __deletePostFiles ($a_ids) | |
| __sendMessage ($a_parent_pos, $post_data=array()) | |
| __formatSubject ($thread_data) | |
| __formatMessage ($thread_data, $post_data=array()) | |
| getUserData ($a_id, $a_import_name=0) | |
| getImportName () | |
| setImportName ($a_import_name) | |
| enableForumNotification ($user_id) | |
| Enable a user's notification about new posts in this forum. | |
| disableForumNotification ($user_id) | |
| Disable a user's notification about new posts in this forum. | |
| isForumNotificationEnabled ($user_id) | |
| Check whether a user's notification about new posts in this forum is enabled (result > 0) or not (result == 0) | |
| enableThreadNotification ($user_id, $thread_id) | |
| Enable a user's notification about new posts in a thread. | |
| isThreadNotificationEnabled ($user_id, $thread_id) | |
| Check whether a user's notification about new posts in a thread is enabled (result > 0) or not (result == 0) | |
| sendThreadNotifications ($post_data) | |
| sendForumNotifications ($post_data) | |
| formatPostActivationNotificationSubject () | |
| formatPostActivationNotification ($post_data) | |
| sendPostActivationNotification ($post_data) | |
| formatNotificationSubject ($post_data) | |
| formatNotification ($post_data, $cron=0) | |
| limitMsgString ($message) | |
| _lookupObjIdForForumId ($a_for_id) | |
| Static Public Member Functions | |
| static | _getLanguageInstanceByUsrId ($usr_id) | 
| Get the ilLanguage instance for the passed user id. | |
| static | _getThreads ($a_obj_id, $a_sort_mode=self::SORT_DATE) | 
| Get thread infos of object. | |
| Data Fields | |
| const | SORT_TITLE = 1 | 
| const | SORT_DATE = 2 | 
| $ilias | |
| $lng | |
| Private Member Functions | |
| setOrderField ($orderField) | |
| set database field for sorting results | |
| Private Attributes | |
| $dbTable | |
| $className = "ilForum" | |
| $orderField | |
| $mdb2Query | |
| $mdb2DataValue | |
| $mdb2DataType | |
| $txtQuote1 = "[quote]" | |
| $txtQuote2 = "[/quote]" | |
| $replQuote1 = '<blockquote class="ilForumQuote">' | |
| $replQuote2 = '</blockquote>' | |
| $pageHits = 30 | |
| $id | |
| $threads = array() | |
Class Forum core functions for forum.
Definition at line 38 of file class.ilForum.php.
| ilForum::__deletePostFiles | ( | $a_ids | ) | 
Definition at line 2172 of file class.ilForum.php.
References $file, $files, and getForumId().
Referenced by deletePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::__formatMessage | ( | $thread_data, | |
| $post_data = array() | |||
| ) | 
Definition at line 2231 of file class.ilForum.php.
References $title, getForumRefId(), and ilObjectFactory\getInstanceByRefId().
Referenced by __sendMessage().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::__formatSubject | ( | $thread_data | ) | 
Definition at line 2226 of file class.ilForum.php.
Referenced by __sendMessage().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::__sendMessage | ( | $a_parent_pos, | |
| $post_data = array() | |||
| ) | 
Definition at line 2195 of file class.ilForum.php.
References $ilDB, __formatMessage(), __formatSubject(), getOnePost(), getOneThread(), and setMDB2WhereCondition().
Referenced by generatePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get the ilLanguage instance for the passed user id.
| integer | $usr_id | a user id | 
Definition at line 118 of file class.ilForum.php.
References $usr_id, and ilObjUser\_lookupLanguage().
Referenced by ilCronForumNotification\sendMails().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::_getModerators | ( | $a_ref_id | ) | 
get all users assigned to local role il_frm_moderator_<frm_ref_id> (static)
| int | $a_ref_id | reference id | 
Definition at line 1489 of file class.ilForum.php.
References $title, and ilObject\_lookupTitle().
Referenced by _isModerator(), and getModerators().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Get thread infos of object.
public
| int | obj_id of forum | 
| int | sort mode SORT_TITLE or SORT_DATE | 
Definition at line 2796 of file class.ilForum.php.
References $ilDB, $res, $row, $threads, and DB_FETCHMODE_OBJECT.
Referenced by ilObjForumGUI\cloneWizardPageObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::_isModerator | ( | $a_ref_id, | |
| $a_usr_id | |||
| ) | 
checks whether a user is moderator of a given forum object
| int | $a_ref_id | reference id | 
| int | $a_usr_id | user id | 
Definition at line 1518 of file class.ilForum.php.
References _getModerators().
Referenced by ilForumExplorer\setOutput(), and ilObjForumGUI\viewThreadObject().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::_lookupForumData | ( | $a_obj_id | ) | 
lookup forum data
Definition at line 454 of file class.ilForum.php.
References $ilDB, $res, $result, and DB_FETCHMODE_ASSOC.
| ilForum::_lookupObjIdForForumId | ( | $a_for_id | ) | 
Definition at line 2846 of file class.ilForum.php.
References $ilDB, $res, and DB_FETCHMODE_ASSOC.
Referenced by ilObjMediaObject\getParentObjectIdForUsage(), ilForumTopic\movePosts(), sendForumNotifications(), and sendThreadNotifications().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::_lookupPostMessage | ( | $a_id | ) | 
Definition at line 539 of file class.ilForum.php.
References $ilDB, $res, and $row.
Referenced by ilObjForum\cloneObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::addPostTree | ( | $a_tree_id, | |
| $a_node_id = -1, | |||
| $a_date = '' | |||
| ) | 
create a new post-tree
| integer | a_tree_id: id where tree belongs to | 
| integer | a_node_id: root node of tree (optional; default is tree_id itself) | 
Definition at line 1612 of file class.ilForum.php.
References $ilDB.
Referenced by generatePost().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::convertDate | ( | $date | ) | 
converts the date format
| string | $date | 
Definition at line 1598 of file class.ilForum.php.
References $lng, ilDatePresentation\formatDate(), and IL_CAL_DATETIME.
Referenced by getLastPost(), and getOnePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::countActiveUserArticles | ( | $a_user_id | ) | 
Definition at line 1545 of file class.ilForum.php.
References $ilDB, $res, and getForumId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::countUserArticles | ( | $a_user_id | ) | 
get number of articles from given user-ID
| integer | $user,: | user-ID | 
Definition at line 1530 of file class.ilForum.php.
References $ilDB, $res, and getForumId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::deletePost | ( | $post | ) | 
delete post and sub-posts
| integer | $post,: | ID public | 
Definition at line 1031 of file class.ilForum.php.
References $ilDB, $mobs, __deletePostFiles(), ilObjForum\_deleteAccessEntries(), ilObjForum\_deleteReadEntries(), ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), DB_FETCHMODE_ASSOC, deletePostTree(), ilNewsItem\getFirstNewsIdForContext(), and getPostNode().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::deletePostTree | ( | $a_node | ) | 
delete node and the whole subtree under this node public
| array | node_data of a node | 
Definition at line 1962 of file class.ilForum.php.
References $ilDB, $res, $result, $row, DB_FETCHMODE_ASSOC, and DB_FETCHMODE_OBJECT.
Referenced by deletePost().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::disableForumNotification | ( | $user_id | ) | 
Disable a user's notification about new posts in this forum.
| integer | user_id A user's ID | 
Definition at line 2374 of file class.ilForum.php.
References $ilDB.
| ilForum::enableForumNotification | ( | $user_id | ) | 
Enable a user's notification about new posts in this forum.
| integer | user_id A user's ID | 
Definition at line 2295 of file class.ilForum.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_ASSOC, and isForumNotificationEnabled().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::enableThreadNotification | ( | $user_id, | |
| $thread_id | |||
| ) | 
Enable a user's notification about new posts in a thread.
| integer | user_id A user's ID | 
| integer | thread_id ID of the thread | 
Definition at line 2416 of file class.ilForum.php.
References $ilDB, and isThreadNotificationEnabled().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::fetchPostNodeData | ( | $a_row | ) | 
get data of parent node from frm_posts_tree and frm_posts private
| object | db db result object containing node_data | 
Definition at line 1887 of file class.ilForum.php.
References $data, $lng, and ilObject\_exists().
Referenced by getFirstPostNode(), getPostChilds(), getPostNode(), and getPostTree().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::fixThreadNumber | ( | $a_top_pk, | |
| $a_num_threads | |||
| ) | 
In some rare cases the thread number in frm_data is incorrect.
This function fixes this. (called in ilObjForumGUI->showThreadsObject())
Definition at line 435 of file class.ilForum.php.
References $ilDB.
| ilForum::formatNotification | ( | $post_data, | |
| $cron = 0 | |||
| ) | 
Definition at line 2744 of file class.ilForum.php.
References $ilIliasIniFile.
Referenced by sendForumNotifications(), and sendThreadNotifications().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::formatNotificationSubject | ( | $post_data | ) | 
Definition at line 2739 of file class.ilForum.php.
Referenced by sendForumNotifications(), and sendThreadNotifications().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::formatPostActivationNotification | ( | $post_data | ) | 
Definition at line 2651 of file class.ilForum.php.
Referenced by sendPostActivationNotification().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::formatPostActivationNotificationSubject | ( | ) | 
Definition at line 2646 of file class.ilForum.php.
Referenced by sendPostActivationNotification().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::generatePost | ( | $forum_id, | |
| $thread_id, | |||
| $user, | |||
| $message, | |||
| $parent_pos, | |||
| $notify, | |||
| $subject = '', | |||
| $alias = '', | |||
| $date = '', | |||
| $status = 1, | |||
| $send_activation_mail = 0 | |||
| ) | 
generate new dataset in frm_posts
| integer | $topic | |
| integer | $thread | |
| integer | $user | |
| string | $message | |
| integer | $parent_pos | |
| integer | $notify | |
| integer | $anonymize | |
| string | $subject | |
| datetime | $date | 
Definition at line 569 of file class.ilForum.php.
References $GLOBALS, $ilDB, $result, $user, __sendMessage(), ilRTE\_replaceMediaObjectImageSrc(), addPostTree(), getForumRefId(), getImportName(), ilObjectFactory\getInstanceByRefId(), insertPostNode(), NEWS_NOTICE, NEWS_USERS, prepareText(), sendForumNotifications(), sendPostActivationNotification(), and sendThreadNotifications().
Referenced by generateThread().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::generateThread | ( | $forum_id, | |
| $user, | |||
| $subject, | |||
| $message, | |||
| $notify, | |||
| $notify_posts, | |||
| $alias = '', | |||
| $date = '' | |||
| ) | 
generate new dataset in frm_threads
| integer | $topic | |
| integer | $user | |
| string | $subject | |
| string | $message | |
| integer | $notify | |
| integer | $notify_posts | |
| integer | $anonymize | |
| datetime | $date | 
Definition at line 692 of file class.ilForum.php.
References $ilDB, $user, generatePost(), and getImportName().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getAllForums | ( | ) | 
Definition at line 810 of file class.ilForum.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_ASSOC, getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getAllThreads | ( | $a_topic_id, | |
| $is_moderator = false | |||
| ) | 
Get all threads of given thread.
| integer | topic: Forum-ID | 
Definition at line 1256 of file class.ilForum.php.
References $data, $ilDB, $query, $res, $row, and $threads.
| ilForum::getDbTable | ( | ) | 
get name of database table
Definition at line 240 of file class.ilForum.php.
References $dbTable.
| ilForum::getFirstPostByThread | ( | $a_thread_id | ) | 
Get first post of thread.
public
| int | thread id | 
Definition at line 1398 of file class.ilForum.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by updatePost().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getFirstPostNode | ( | $tree_id | ) | 
get data of the first node from frm_posts_tree and frm_posts public
| integer | tree id | 
Definition at line 1842 of file class.ilForum.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getForumId | ( | ) | 
get forum id public
Definition at line 172 of file class.ilForum.php.
References $id.
Referenced by __deletePostFiles(), countActiveUserArticles(), countUserArticles(), and getUserStatistic().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getForumPath | ( | $a_ref_id | ) | 
builds a string to show the forum-context
| integer | ref_id | 
Definition at line 1571 of file class.ilForum.php.
References $path.
| ilForum::getForumRefId | ( | ) | 
get forum ref_id public
Definition at line 182 of file class.ilForum.php.
References $ref_id.
Referenced by __formatMessage(), generatePost(), and getModerators().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getImportName | ( | ) | 
Definition at line 2280 of file class.ilForum.php.
Referenced by generatePost(), and generateThread().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getLastPost | ( | $lastPost | ) | 
get content of given ID's
| string | $lastPost,: | ID's, separated with # | 
Definition at line 1419 of file class.ilForum.php.
References $data, $result, convertDate(), and prepareText().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getMDB2DataType | ( | ) | 
get content of additional condition
Definition at line 299 of file class.ilForum.php.
References $mdb2DataType.
Referenced by getAllForums(), getOneDataset(), getOneThread(), getOneTopic(), and updateVisits().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getMDB2DataValue | ( | ) | 
/* get content of additional condition
Definition at line 286 of file class.ilForum.php.
References $mdb2DataValue.
Referenced by getAllForums(), getOneDataset(), getOneThread(), getOneTopic(), and updateVisits().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getMDB2Query | ( | ) | 
get content of additional condition
Definition at line 272 of file class.ilForum.php.
References $mdb2Query.
Referenced by getAllForums(), getOneDataset(), getOneThread(), getOneTopic(), and updateVisits().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getModeratorFromPost | ( | $pos_pk | ) | 
get one post-dataset
| integer | post id | 
Definition at line 2156 of file class.ilForum.php.
References $ilDB, $res, $row, and DB_FETCHMODE_ASSOC.
| ilForum::getModerators | ( | ) | 
get all users assigned to local role il_frm_moderator_<frm_ref_id>
Definition at line 1475 of file class.ilForum.php.
References _getModerators(), and getForumRefId().
Referenced by sendPostActivationNotification().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getOneDataset | ( | ) | 
get one dataset from set Table and set WhereCondition
Definition at line 344 of file class.ilForum.php.
References $ilDB, $query, $res, $row, getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getOnePost | ( | $post | ) | 
get one post-dataset
| integer | post id | 
Definition at line 504 of file class.ilForum.php.
References $ilDB, $res, $row, convertDate(), and DB_FETCHMODE_ASSOC.
Referenced by __sendMessage().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getOneThread | ( | ) | 
get one thread-dataset by WhereCondition
Definition at line 475 of file class.ilForum.php.
References $ilDB, $query, $result, DB_FETCHMODE_ASSOC, getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
Referenced by __sendMessage().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getOneTopic | ( | ) | 
get one topic-dataset by WhereCondition
Definition at line 389 of file class.ilForum.php.
References $ilDB, $query, $res, $row, getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
Referenced by moveThreads().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getOrderField | ( | ) | 
get name of orderField
Definition at line 211 of file class.ilForum.php.
References $orderField.
| ilForum::getPageHits | ( | ) | 
get number of max.
visible datasets
Definition at line 332 of file class.ilForum.php.
References $pageHits.
| ilForum::getPostById | ( | $a_id | ) | 
| ilForum::getPostChilds | ( | $a_node_id, | |
| $a_thr_id | |||
| ) | 
get child nodes of given node public
| integer | node_id | 
| string | sort order of returned childs, optional (possible values: 'title','desc','last_update' or 'type') | 
| string | sort direction, optional (possible values: 'DESC' or 'ASC'; defalut is 'ASC') | 
Definition at line 1798 of file class.ilForum.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getPostDepth | ( | $a_node_id, | |
| $tree_id | |||
| ) | 
Return depth of an object private.
| integer | node_id of parent's node_id | 
| integer | node_id of parent's node parent_id | 
Definition at line 1724 of file class.ilForum.php.
References $ilDB, $res, and DB_FETCHMODE_OBJECT.
Referenced by insertPostNode().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getPostList | ( | $topic, | |
| $thread | |||
| ) | 
get all posts of given thread
| integer | topic: forum-ID | 
| integer | thread: thread-ID | 
Definition at line 1307 of file class.ilForum.php.
References $data, $ilDB, $query, and $result.
| ilForum::getPostMaximumDepth | ( | $a_thr_id | ) | 
Return the maximum depth in tree public.
Definition at line 1941 of file class.ilForum.php.
| ilForum::getPostNode | ( | $post_id | ) | 
get data of given node from frm_posts_tree and frm_posts public
| integer | post_id | 
Definition at line 1865 of file class.ilForum.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
Referenced by deletePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::getPostTree | ( | $a_node | ) | 
get all nodes in the subtree under specified node
public
| array | node_data | 
Definition at line 1754 of file class.ilForum.php.
References $data, $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getUser | ( | $a_user_id | ) | 
get content of given user-ID
| integer | $a_user_id,: | user-ID | 
Definition at line 1454 of file class.ilForum.php.
References $lng, ilObject\_exists(), and ilObjectFactory\getInstanceByObjId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getUserData | ( | $a_id, | |
| $a_import_name = 0 | |||
| ) | 
Definition at line 2250 of file class.ilForum.php.
References $ilDB, $lng, $res, $row, ilObject\_exists(), ilObjUser\_lookupPref(), DB_FETCHMODE_OBJECT, and ilObjectFactory\getInstanceByObjId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::getUserStatistic | ( | $is_moderator = false | ) | 
Definition at line 1332 of file class.ilForum.php.
References $data, $ilDB, $query, $res, $row, DB_FETCHMODE_ASSOC, and getForumId().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::ilForum | ( | ) | 
| ilForum::insertPostNode | ( | $a_node_id, | |
| $a_parent_id, | |||
| $tree_id, | |||
| $a_date = '' | |||
| ) | 
insert node under parent node public
| integer | node_id | 
| integer | tree_id | 
| integer | parent_id (optional) | 
Definition at line 1650 of file class.ilForum.php.
References $ilDB, $res, DB_FETCHMODE_OBJECT, and getPostDepth().
Referenced by generatePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::isForumNotificationEnabled | ( | $user_id | ) | 
Check whether a user's notification about new posts in this forum is enabled (result > 0) or not (result == 0)
| integer | user_id A user's ID | 
Definition at line 2394 of file class.ilForum.php.
References $ilDB, and $result.
Referenced by enableForumNotification().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::isThreadNotificationEnabled | ( | $user_id, | |
| $thread_id | |||
| ) | 
Check whether a user's notification about new posts in a thread is enabled (result > 0) or not (result == 0)
| integer | user_id A user's ID | 
| integer | thread_id ID of the thread | 
Definition at line 2444 of file class.ilForum.php.
References $ilDB, and $result.
Referenced by enableThreadNotification().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::limitMsgString | ( | $message | ) | 
Definition at line 2826 of file class.ilForum.php.
References prepareText().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::moveThreads | ( | $thread_ids = array(), | |
| $src_ref_id = 0, | |||
| $dest_top_frm_fk = 0 | |||
| ) | 
Moves all chosen threads and their posts to a new forum.
| array | chosen thread pks | 
| integer | object id of src forum | 
| integer | object id of dest forum public | 
Definition at line 855 of file class.ilForum.php.
References $id, $ilDB, $res, $row, ilObject\_lookupObjectId(), DB_FETCHMODE_OBJECT, getOneTopic(), and setMDB2WhereCondition().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::postCensorship | ( | $message, | |
| $pos_pk, | |||
| $cens = 0 | |||
| ) | 
update dataset in frm_posts with censorship info
| string | message | 
| integer | pos_pk | 
Definition at line 978 of file class.ilForum.php.
References $_SESSION, $ilDB, $res, DB_FETCHMODE_ASSOC, ilNewsItem\getFirstNewsIdForContext(), and prepareText().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::prepareText | ( | $text, | |
| $edit = 0, | |||
| $quote_user = '', | |||
| $type = '' | |||
| ) | 
prepares given string public
| string | |
| integer | 
Definition at line 2067 of file class.ilForum.php.
References $lng, $txtQuote2, and ilUtil\insertLatexImages().
Referenced by generatePost(), getLastPost(), limitMsgString(), postCensorship(), and updatePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::sendForumNotifications | ( | $post_data | ) | 
Definition at line 2553 of file class.ilForum.php.
References $_SESSION, $GLOBALS, $ilDB, $lng, $ref_id, $res, $result, $row, ilObject\_getAllReferences(), ilObjUser\_lookupLogin(), _lookupObjIdForForumId(), DB_FETCHMODE_ASSOC, formatNotification(), formatNotificationSubject(), and setLanguage().
Referenced by generatePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::sendPostActivationNotification | ( | $post_data | ) | 
Definition at line 2681 of file class.ilForum.php.
References $ilDB, $lng, $result, ilObjUser\_lookupLogin(), formatPostActivationNotification(), formatPostActivationNotificationSubject(), getModerators(), and setLanguage().
Referenced by generatePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::sendThreadNotifications | ( | $post_data | ) | 
Definition at line 2464 of file class.ilForum.php.
References $_SESSION, $GLOBALS, $ilDB, $lng, $ref_id, $res, $result, $row, ilObject\_getAllReferences(), ilObjUser\_lookupLogin(), _lookupObjIdForForumId(), DB_FETCHMODE_ASSOC, formatNotification(), formatNotificationSubject(), and setLanguage().
Referenced by generatePost().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::setDbTable | ( | $dbTable | ) | 
set database table
| string | $dbTable | database table | 
Definition at line 222 of file class.ilForum.php.
References $dbTable.
| ilForum::setForumId | ( | $a_obj_id | ) | 
set object id which refers to ILIAS obj_id
| integer | object id public | 
Definition at line 139 of file class.ilForum.php.
| ilForum::setForumRefId | ( | $a_ref_id | ) | 
set reference id which refers to ILIAS obj_id
| integer | object id public | 
Definition at line 156 of file class.ilForum.php.
| ilForum::setImportName | ( | $a_import_name | ) | 
Definition at line 2284 of file class.ilForum.php.
| ilForum::setLanguage | ( | $lng | ) | 
Definition at line 103 of file class.ilForum.php.
References $lng.
Referenced by sendForumNotifications(), sendPostActivationNotification(), and sendThreadNotifications().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::setMDB2WhereCondition | ( | $query_string, | |
| $data_type, | |||
| $data_value | |||
| ) | 
set content for additional condition
| string | $query_string | |
| array | $data_type | |
| array | $data_value | 
Definition at line 255 of file class.ilForum.php.
Referenced by __sendMessage(), and moveThreads().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
set database field for sorting results
| string | $orderField | database field for sorting | 
Definition at line 193 of file class.ilForum.php.
References $orderField.
| ilForum::setPageHits | ( | $pageHits | ) | 
set number of max.
visible datasets
| integer | $pageHits | 
Definition at line 313 of file class.ilForum.php.
References $pageHits.
| ilForum::updatePost | ( | $message, | |
| $pos_pk, | |||
| $notify, | |||
| $subject, | |||
| $thr_pk = 0 | |||
| ) | 
update dataset in frm_posts
| string | message | 
| integer | pos_pk | 
Definition at line 741 of file class.ilForum.php.
References $_SESSION, $ilDB, ilNewsItem\getFirstNewsIdForContext(), getFirstPostByThread(), prepareText(), and updateThread().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilForum::updateThread | ( | $thr_pk, | |
| $subject | |||
| ) | 
update dataset in frm_threads
| integer | thr_pk | 
| string | subject | 
Definition at line 796 of file class.ilForum.php.
References $ilDB.
Referenced by updatePost().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilForum::updateVisits | ( | $ID | ) | 
update page hits of given forum- or thread-ID public
| integer | 
Definition at line 2033 of file class.ilForum.php.
References $_SESSION, $ilDB, $query, $res, getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 64 of file class.ilForum.php.
| 
 | private | 
Definition at line 57 of file class.ilForum.php.
Referenced by getDbTable(), and setDbTable().
| 
 | private | 
Definition at line 87 of file class.ilForum.php.
Referenced by getForumId(), and moveThreads().
| ilForum::$ilias | 
Definition at line 48 of file class.ilForum.php.
Referenced by ilForum().
| ilForum::$lng | 
Definition at line 49 of file class.ilForum.php.
Referenced by convertDate(), fetchPostNodeData(), getUser(), getUserData(), ilForum(), prepareText(), sendForumNotifications(), sendPostActivationNotification(), sendThreadNotifications(), and setLanguage().
| 
 | private | 
Definition at line 76 of file class.ilForum.php.
Referenced by getMDB2DataType().
| 
 | private | 
Definition at line 75 of file class.ilForum.php.
Referenced by getMDB2DataValue().
| 
 | private | 
Definition at line 74 of file class.ilForum.php.
Referenced by getMDB2Query().
| 
 | private | 
Definition at line 72 of file class.ilForum.php.
Referenced by getOrderField(), and setOrderField().
| 
 | private | 
Definition at line 84 of file class.ilForum.php.
Referenced by getPageHits(), and setPageHits().
| 
 | private | 
Definition at line 80 of file class.ilForum.php.
| 
 | private | 
Definition at line 81 of file class.ilForum.php.
| 
 | private | 
Definition at line 89 of file class.ilForum.php.
Referenced by _getThreads(), and getAllThreads().
| 
 | private | 
Definition at line 78 of file class.ilForum.php.
| 
 | private | 
Definition at line 79 of file class.ilForum.php.
Referenced by prepareText().
| const ilForum::SORT_DATE = 2 | 
Definition at line 41 of file class.ilForum.php.
| const ilForum::SORT_TITLE = 1 | 
Definition at line 40 of file class.ilForum.php.
Referenced by ilObjForumGUI\cloneWizardPageObject().