|
ILIAS
Release_3_10_x_branch Revision 61812
|
Class Forum core functions for forum. More...
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 | |
| setOrderField ($orderField) | |
| set database field for sorting results | |
| getOrderField () | |
| get name of orderField | |
| setDbTable ($dbTable) | |
| set database table | |
| getDbTable () | |
| get name of database table | |
| setWhereCondition ($whereCondition="1") | |
| set content of WHERE condition | |
| getWhereCondition () | |
| get content of whereCondition | |
| 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=false) | |
| 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 ($tread_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 | |
| $dbTable | |
| $className = "ilForum" | |
| $orderField | |
| $whereCondition = "1" | |
| $txtQuote1 = "[quote]" | |
| $txtQuote2 = "[/quote]" | |
| $replQuote1 = '<blockquote class="ilForumQuote">' | |
| $replQuote2 = '</blockquote>' | |
| $pageHits = 30 | |
| $id | |
Private Attributes | |
| $threads = array() | |
Class Forum core functions for forum.
Definition at line 38 of file class.ilForum.php.
| ilForum::__deletePostFiles | ( | $a_ids | ) |
Definition at line 1828 of file class.ilForum.php.
References $file, $files, and getForumId().
Referenced by deletePost().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::__formatMessage | ( | $thread_data, | |
$post_data = array() |
|||
| ) |
Definition at line 1886 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 caller graph for this function:| ilForum::__formatSubject | ( | $thread_data | ) |
Definition at line 1881 of file class.ilForum.php.
Referenced by __sendMessage().
Here is the caller graph for this function:| ilForum::__sendMessage | ( | $a_parent_pos, | |
$post_data = array() |
|||
| ) |
Definition at line 1851 of file class.ilForum.php.
References __formatMessage(), __formatSubject(), getOnePost(), getOneThread(), and setWhereCondition().
Referenced by generatePost().
Here is the call 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 116 of file class.ilForum.php.
References ilObjUser\_lookupLanguage().
Referenced by ilCronForumNotification\sendMails().
Here is the call 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 1224 of file class.ilForum.php.
References $title, and ilObject\_lookupTitle().
Referenced by _isModerator(), getModerators(), and ilObjForumListGUI\getProperties().
Here is the call 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 2367 of file class.ilForum.php.
References $res, $threads, and DB_FETCHMODE_OBJECT.
Referenced by ilObjForumGUI\cloneWizardPageObject().
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 1253 of file class.ilForum.php.
References _getModerators().
Referenced by ilForumExplorer\setOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::_lookupForumData | ( | $a_obj_id | ) |
lookup forum data
Definition at line 358 of file class.ilForum.php.
References $result, and DB_FETCHMODE_ASSOC.
| ilForum::_lookupObjIdForForumId | ( | $a_for_id | ) |
Definition at line 2414 of file class.ilForum.php.
References DB_FETCHMODE_ASSOC.
Referenced by ilForumTopic\movePosts(), sendForumNotifications(), and sendThreadNotifications().
Here is the caller graph for this function:| ilForum::_lookupPostMessage | ( | $a_id | ) |
Definition at line 424 of file class.ilForum.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by ilObjForum\cloneObject().
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 1343 of file class.ilForum.php.
Referenced by generatePost().
Here is the caller graph for this function:| ilForum::convertDate | ( | $date | ) |
converts the date format
| string | $date |
Definition at line 1329 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 caller graph for this function:| ilForum::countActiveUserArticles | ( | $a_user_id | ) |
Definition at line 1280 of file class.ilForum.php.
References $res, and getForumId().
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 1265 of file class.ilForum.php.
References $res, and getForumId().
Here is the call graph for this function:| ilForum::deletePost | ( | $post | ) |
delete post and sub-posts
| integer | $post,: | ID public |
Definition at line 865 of file class.ilForum.php.
References __deletePostFiles(), ilObjForum\_deleteAccessEntries(), ilObjForum\_deleteReadEntries(), DB_FETCHMODE_ASSOC, deletePostTree(), ilNewsItem\getFirstNewsIdForContext(), and getPostNode().
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 1635 of file class.ilForum.php.
References $res, $result, DB_FETCHMODE_ASSOC, and DB_FETCHMODE_OBJECT.
Referenced by deletePost().
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 1996 of file class.ilForum.php.
| 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 1949 of file class.ilForum.php.
References $res, DB_FETCHMODE_ASSOC, and isForumNotificationEnabled().
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 2036 of file class.ilForum.php.
References isThreadNotificationEnabled().
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 1562 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 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 341 of file class.ilForum.php.
| ilForum::formatNotification | ( | $post_data, | |
$cron = 0 |
|||
| ) |
Definition at line 2315 of file class.ilForum.php.
References $ilIliasIniFile.
Referenced by sendForumNotifications(), and sendThreadNotifications().
Here is the caller graph for this function:| ilForum::formatNotificationSubject | ( | $post_data | ) |
Definition at line 2310 of file class.ilForum.php.
Referenced by sendForumNotifications(), and sendThreadNotifications().
Here is the caller graph for this function:| ilForum::formatPostActivationNotification | ( | $post_data | ) |
Definition at line 2238 of file class.ilForum.php.
Referenced by sendPostActivationNotification().
Here is the caller graph for this function:| ilForum::formatPostActivationNotificationSubject | ( | ) |
Definition at line 2233 of file class.ilForum.php.
Referenced by sendPostActivationNotification().
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 = false |
|||
| ) |
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 452 of file class.ilForum.php.
References $result, $user, __sendMessage(), 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 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 569 of file class.ilForum.php.
References $user, generatePost(), and getImportName().
Here is the call graph for this function:| ilForum::getAllForums | ( | ) |
Definition at line 677 of file class.ilForum.php.
References $res, $whereCondition, and DB_FETCHMODE_ASSOC.
| ilForum::getAllThreads | ( | $a_topic_id, | |
$is_moderator = false |
|||
| ) |
Get all threads of given thread.
| integer | topic: Forum-ID |
Definition at line 1041 of file class.ilForum.php.
References $res, $threads, and DB_FETCHMODE_OBJECT.
| ilForum::getDbTable | ( | ) |
get name of database table
Definition at line 237 of file class.ilForum.php.
References $dbTable.
| ilForum::getFirstPostByThread | ( | $a_thread_id | ) |
Get first post of thread.
public
| int | thread id |
Definition at line 1135 of file class.ilForum.php.
References $res, and DB_FETCHMODE_OBJECT.
Referenced by updatePost().
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 1520 of file class.ilForum.php.
References $res, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
Here is the call graph for this function:| ilForum::getForumId | ( | ) |
get forum id public
Definition at line 169 of file class.ilForum.php.
References $id.
Referenced by __deletePostFiles(), countActiveUserArticles(), countUserArticles(), and getUserStatistic().
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 1302 of file class.ilForum.php.
| ilForum::getForumRefId | ( | ) |
get forum ref_id public
Definition at line 179 of file class.ilForum.php.
References $ref_id.
Referenced by __formatMessage(), generatePost(), and getModerators().
Here is the caller graph for this function:| ilForum::getImportName | ( | ) |
Definition at line 1934 of file class.ilForum.php.
Referenced by generatePost(), and generateThread().
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 1154 of file class.ilForum.php.
References $data, $result, convertDate(), and prepareText().
Here is the call graph for this function:| ilForum::getModeratorFromPost | ( | $pos_pk | ) |
get one post-dataset
| integer | post id |
Definition at line 1815 of file class.ilForum.php.
References $result, and DB_FETCHMODE_ASSOC.
| ilForum::getModerators | ( | ) |
get all users assigned to local role il_frm_moderator_<frm_ref_id>
Definition at line 1210 of file class.ilForum.php.
References _getModerators(), and getForumRefId().
Referenced by sendPostActivationNotification().
Here is the call 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 302 of file class.ilForum.php.
References $res, DB_FETCHMODE_ASSOC, and setWhereCondition().
Here is the call graph for this function:| ilForum::getOnePost | ( | $post | ) |
get one post-dataset
| integer | post id |
Definition at line 395 of file class.ilForum.php.
References $result, convertDate(), and DB_FETCHMODE_ASSOC.
Referenced by __sendMessage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::getOneThread | ( | ) |
get one thread-dataset by WhereCondition
Definition at line 376 of file class.ilForum.php.
References $result, DB_FETCHMODE_ASSOC, and setWhereCondition().
Referenced by __sendMessage().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::getOneTopic | ( | ) |
get one topic-dataset by WhereCondition
Definition at line 322 of file class.ilForum.php.
References $result, DB_FETCHMODE_ASSOC, and setWhereCondition().
Referenced by moveThreads().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::getOrderField | ( | ) |
get name of orderField
Definition at line 208 of file class.ilForum.php.
References $orderField.
| ilForum::getPageHits | ( | ) |
get number of max.
visible datasets
Definition at line 290 of file class.ilForum.php.
References $pageHits.
| ilForum::getPostById | ( | $a_id | ) |
Definition at line 411 of file class.ilForum.php.
References $res, and DB_FETCHMODE_ASSOC.
| 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 1478 of file class.ilForum.php.
References DB_FETCHMODE_OBJECT, and fetchPostNodeData().
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 1418 of file class.ilForum.php.
References $res.
Referenced by insertPostNode().
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 1073 of file class.ilForum.php.
References $res.
| ilForum::getPostMaximumDepth | ( | $a_thr_id | ) |
Return the maximum depth in tree public.
Definition at line 1615 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 1542 of file class.ilForum.php.
References $res, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
Referenced by deletePost().
Here is the call 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 1445 of file class.ilForum.php.
References $res, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
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 1189 of file class.ilForum.php.
References $lng, ilObject\_exists(), and ilObjectFactory\getInstanceByObjId().
Here is the call graph for this function:| ilForum::getUserData | ( | $a_id, | |
$a_import_name = 0 |
|||
| ) |
Definition at line 1906 of file class.ilForum.php.
References $lng, $res, ilObject\_exists(), ilObjUser\_lookupPref(), DB_FETCHMODE_OBJECT, and ilObjectFactory\getInstanceByObjId().
Here is the call graph for this function:| ilForum::getUserStatistic | ( | $is_moderator = false | ) |
Definition at line 1092 of file class.ilForum.php.
References $res, DB_FETCHMODE_ASSOC, and getForumId().
Here is the call graph for this function:| ilForum::getWhereCondition | ( | ) |
get content of whereCondition
Definition at line 260 of file class.ilForum.php.
References $whereCondition.
| 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 1369 of file class.ilForum.php.
References $res, and getPostDepth().
Referenced by generatePost().
Here is the call 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 2014 of file class.ilForum.php.
References $result.
Referenced by enableForumNotification().
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 2058 of file class.ilForum.php.
References $result.
Referenced by enableThreadNotification().
Here is the caller graph for this function:| ilForum::limitMsgString | ( | $message | ) |
Definition at line 2394 of file class.ilForum.php.
References prepareText().
Here is the call graph for this function:| ilForum::moveThreads | ( | $tread_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 704 of file class.ilForum.php.
References $id, $res, ilObject\_lookupObjectId(), DB_FETCHMODE_OBJECT, getOneTopic(), and setWhereCondition().
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 815 of file class.ilForum.php.
References $_SESSION, DB_FETCHMODE_ASSOC, ilNewsItem\getFirstNewsIdForContext(), and prepareText().
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 1721 of file class.ilForum.php.
References $lng, $txtQuote1, $txtQuote2, and ilUtil\insertLatexImages().
Referenced by generatePost(), getLastPost(), limitMsgString(), postCensorship(), and updatePost().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::sendForumNotifications | ( | $post_data | ) |
Definition at line 2152 of file class.ilForum.php.
References $_SESSION, $lng, $ref_id, $res, $result, ilObject\_getAllReferences(), ilObjUser\_lookupLogin(), _lookupObjIdForForumId(), DB_FETCHMODE_ASSOC, formatNotification(), formatNotificationSubject(), ilForumProperties\getInstance(), and setLanguage().
Referenced by generatePost().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::sendPostActivationNotification | ( | $post_data | ) |
Definition at line 2266 of file class.ilForum.php.
References $lng, $result, ilObjUser\_lookupLogin(), formatPostActivationNotification(), formatPostActivationNotificationSubject(), getModerators(), and setLanguage().
Referenced by generatePost().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::sendThreadNotifications | ( | $post_data | ) |
Definition at line 2073 of file class.ilForum.php.
References $_SESSION, $lng, $ref_id, $res, $result, ilObject\_getAllReferences(), ilObjUser\_lookupLogin(), _lookupObjIdForForumId(), DB_FETCHMODE_ASSOC, formatNotification(), formatNotificationSubject(), ilForumProperties\getInstance(), and setLanguage().
Referenced by generatePost().
Here is the call graph for this function:
Here is the caller graph for this function:| ilForum::setDbTable | ( | $dbTable | ) |
| ilForum::setForumId | ( | $a_obj_id | ) |
set object id which refers to ILIAS obj_id
| integer | object id public |
Definition at line 137 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 153 of file class.ilForum.php.
| ilForum::setImportName | ( | $a_import_name | ) |
Definition at line 1938 of file class.ilForum.php.
| ilForum::setLanguage | ( | $lng | ) |
Definition at line 101 of file class.ilForum.php.
References $lng.
Referenced by sendForumNotifications(), sendPostActivationNotification(), and sendThreadNotifications().
Here is the caller graph for this function:| ilForum::setOrderField | ( | $orderField | ) |
set database field for sorting results
| string | $orderField | database field for sorting |
Definition at line 190 of file class.ilForum.php.
References $orderField.
| ilForum::setPageHits | ( | $pageHits | ) |
set number of max.
visible datasets
| integer | $pageHits |
Definition at line 271 of file class.ilForum.php.
References $pageHits.
| ilForum::setWhereCondition | ( | $whereCondition = "1" | ) |
set content of WHERE condition
| string | $whereCondition |
Definition at line 248 of file class.ilForum.php.
References $whereCondition.
Referenced by __sendMessage(), getOneDataset(), getOneThread(), getOneTopic(), moveThreads(), and updateVisits().
Here is the caller graph for this function:| ilForum::updatePost | ( | $message, | |
| $pos_pk, | |||
| $notify, | |||
| $subject, | |||
$thr_pk = 0 |
|||
| ) |
update dataset in frm_posts
| string | message |
| integer | pos_pk |
Definition at line 621 of file class.ilForum.php.
References $_SESSION, ilNewsItem\getFirstNewsIdForContext(), getFirstPostByThread(), prepareText(), and updateThread().
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 664 of file class.ilForum.php.
Referenced by updatePost().
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 1696 of file class.ilForum.php.
References $_SESSION, and setWhereCondition().
Here is the call graph for this function:| ilForum::$className = "ilForum" |
Definition at line 64 of file class.ilForum.php.
| ilForum::$dbTable |
Definition at line 57 of file class.ilForum.php.
Referenced by getDbTable(), and setDbTable().
| ilForum::$id |
Definition at line 85 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().
| ilForum::$orderField |
Definition at line 72 of file class.ilForum.php.
Referenced by getOrderField(), and setOrderField().
| ilForum::$pageHits = 30 |
Definition at line 82 of file class.ilForum.php.
Referenced by getPageHits(), and setPageHits().
| ilForum::$replQuote1 = '<blockquote class="ilForumQuote">' |
Definition at line 78 of file class.ilForum.php.
| ilForum::$replQuote2 = '</blockquote>' |
Definition at line 79 of file class.ilForum.php.
|
private |
Definition at line 87 of file class.ilForum.php.
Referenced by _getThreads(), and getAllThreads().
| ilForum::$txtQuote1 = "[quote]" |
Definition at line 76 of file class.ilForum.php.
Referenced by prepareText().
| ilForum::$txtQuote2 = "[/quote]" |
Definition at line 77 of file class.ilForum.php.
Referenced by prepareText().
| ilForum::$whereCondition = "1" |
Definition at line 74 of file class.ilForum.php.
Referenced by getAllForums(), getWhereCondition(), and setWhereCondition().
| 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().