ILIAS
Release_4_2_x_branch Revision 61807
|
Class Forum core functions for forum. More...
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 2183 of file class.ilForum.php.
References $file, $files, and getForumId().
Referenced by deletePost().
ilForum::__formatMessage | ( | $thread_data, | |
$post_data = array() |
|||
) |
Definition at line 2242 of file class.ilForum.php.
References $title, getForumRefId(), and ilObjectFactory\getInstanceByRefId().
Referenced by __sendMessage().
ilForum::__formatSubject | ( | $thread_data | ) |
Definition at line 2237 of file class.ilForum.php.
Referenced by __sendMessage().
ilForum::__sendMessage | ( | $a_parent_pos, | |
$post_data = array() |
|||
) |
Definition at line 2206 of file class.ilForum.php.
References $ilDB, __formatMessage(), __formatSubject(), getOnePost(), getOneThread(), and setMDB2WhereCondition().
Referenced by generatePost().
|
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().
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 1500 of file class.ilForum.php.
References $title, and ilObject\_lookupTitle().
Referenced by _isModerator(), and getModerators().
|
static |
Get thread infos of object.
public
int | obj_id of forum |
int | sort mode SORT_TITLE or SORT_DATE |
Definition at line 2821 of file class.ilForum.php.
References $ilDB, $res, $row, $threads, and DB_FETCHMODE_OBJECT.
Referenced by ilObjForumGUI\cloneWizardPageObject().
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 1529 of file class.ilForum.php.
References _getModerators().
Referenced by ilForumExplorer\setOutput(), and ilObjForumGUI\viewThreadObject().
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 2871 of file class.ilForum.php.
References $ilDB, $res, and DB_FETCHMODE_ASSOC.
Referenced by ilObjMediaObject\getParentObjectIdForUsage(), ilForumTopic\movePosts(), sendForumNotifications(), and sendThreadNotifications().
ilForum::_lookupPostMessage | ( | $a_id | ) |
Definition at line 539 of file class.ilForum.php.
References $ilDB, $res, and $row.
Referenced by ilObjForum\cloneObject().
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 1623 of file class.ilForum.php.
References $ilDB.
Referenced by generatePost().
ilForum::convertDate | ( | $date | ) |
converts the date format
string | $date |
Definition at line 1609 of file class.ilForum.php.
References $lng, ilDatePresentation\formatDate(), and IL_CAL_DATETIME.
Referenced by getLastPost(), and getOnePost().
ilForum::countActiveUserArticles | ( | $a_user_id | ) |
Definition at line 1556 of file class.ilForum.php.
References $ilDB, $res, and getForumId().
ilForum::countUserArticles | ( | $a_user_id | ) |
get number of articles from given user-ID
integer | $user,: | user-ID |
Definition at line 1541 of file class.ilForum.php.
References $ilDB, $res, and getForumId().
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().
ilForum::deletePostTree | ( | $a_node | ) |
delete node and the whole subtree under this node public
array | node_data of a node |
Definition at line 1973 of file class.ilForum.php.
References $ilDB, $res, $result, $row, DB_FETCHMODE_ASSOC, and DB_FETCHMODE_OBJECT.
Referenced by deletePost().
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 2385 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 2306 of file class.ilForum.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_ASSOC, and isForumNotificationEnabled().
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 2427 of file class.ilForum.php.
References $ilDB, and isThreadNotificationEnabled().
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 1898 of file class.ilForum.php.
References $data, $lng, and ilObject\_exists().
Referenced by getFirstPostNode(), getPostChilds(), getPostNode(), and getPostTree().
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 2761 of file class.ilForum.php.
References $ilIliasIniFile.
Referenced by sendForumNotifications(), and sendThreadNotifications().
ilForum::formatNotificationSubject | ( | $post_data | ) |
Definition at line 2756 of file class.ilForum.php.
Referenced by sendForumNotifications(), and sendThreadNotifications().
ilForum::formatPostActivationNotification | ( | $post_data | ) |
Definition at line 2660 of file class.ilForum.php.
Referenced by sendPostActivationNotification().
ilForum::formatPostActivationNotificationSubject | ( | ) |
Definition at line 2655 of file class.ilForum.php.
Referenced by sendPostActivationNotification().
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, __sendMessage(), ilRTE\_replaceMediaObjectImageSrc(), addPostTree(), getForumRefId(), getImportName(), ilObjectFactory\getInstanceByRefId(), insertPostNode(), NEWS_NOTICE, NEWS_USERS, prepareText(), sendForumNotifications(), sendPostActivationNotification(), and sendThreadNotifications().
Referenced by generateThread().
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, generatePost(), and getImportName().
ilForum::getAllForums | ( | ) |
Definition at line 810 of file class.ilForum.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_ASSOC, getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
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 1409 of file class.ilForum.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by updatePost().
ilForum::getFirstPostNode | ( | $tree_id | ) |
get data of the first node from frm_posts_tree and frm_posts public
integer | tree id |
Definition at line 1853 of file class.ilForum.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
ilForum::getForumId | ( | ) |
get forum id public
Definition at line 172 of file class.ilForum.php.
References $id.
Referenced by __deletePostFiles(), countActiveUserArticles(), countUserArticles(), and getUserStatistic().
ilForum::getForumPath | ( | $a_ref_id | ) |
builds a string to show the forum-context
integer | ref_id |
Definition at line 1582 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().
ilForum::getImportName | ( | ) |
Definition at line 2291 of file class.ilForum.php.
Referenced by generatePost(), and generateThread().
ilForum::getLastPost | ( | $lastPost | ) |
get content of given ID's
string | $lastPost,: | ID's, separated with # |
Definition at line 1430 of file class.ilForum.php.
References $data, $result, convertDate(), and prepareText().
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().
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().
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().
ilForum::getModeratorFromPost | ( | $pos_pk | ) |
get one post-dataset
integer | post id |
Definition at line 2167 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 1486 of file class.ilForum.php.
References _getModerators(), and getForumRefId().
Referenced by sendPostActivationNotification().
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().
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().
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().
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().
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 1809 of file class.ilForum.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
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 1735 of file class.ilForum.php.
References $ilDB, $res, and DB_FETCHMODE_OBJECT.
Referenced by insertPostNode().
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 1952 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 1876 of file class.ilForum.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
Referenced by deletePost().
ilForum::getPostTree | ( | $a_node | ) |
get all nodes in the subtree under specified node
public
array | node_data |
Definition at line 1765 of file class.ilForum.php.
References $data, $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and fetchPostNodeData().
ilForum::getUser | ( | $a_user_id | ) |
get content of given user-ID
integer | $a_user_id,: | user-ID |
Definition at line 1465 of file class.ilForum.php.
References $lng, ilObject\_exists(), and ilObjectFactory\getInstanceByObjId().
ilForum::getUserData | ( | $a_id, | |
$a_import_name = 0 |
|||
) |
Definition at line 2261 of file class.ilForum.php.
References $ilDB, $lng, $res, $row, ilObject\_exists(), ilObjUser\_lookupPref(), DB_FETCHMODE_OBJECT, and ilObjectFactory\getInstanceByObjId().
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().
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 1661 of file class.ilForum.php.
References $ilDB, $res, DB_FETCHMODE_OBJECT, and getPostDepth().
Referenced by generatePost().
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 2405 of file class.ilForum.php.
References $ilDB, and $result.
Referenced by enableForumNotification().
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 2455 of file class.ilForum.php.
References $ilDB, and $result.
Referenced by enableThreadNotification().
ilForum::limitMsgString | ( | $message | ) |
Definition at line 2851 of file class.ilForum.php.
References prepareText().
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().
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().
ilForum::prepareText | ( | $text, | |
$edit = 0 , |
|||
$quote_user = '' , |
|||
$type = '' |
|||
) |
prepares given string public
string | |
integer |
Definition at line 2078 of file class.ilForum.php.
References $lng, $txtQuote2, and ilUtil\insertLatexImages().
Referenced by generatePost(), getLastPost(), limitMsgString(), postCensorship(), and updatePost().
ilForum::sendForumNotifications | ( | $post_data | ) |
Definition at line 2563 of file class.ilForum.php.
References $GLOBALS, $ilDB, $lng, $ref_id, $res, $result, $row, ilObject\_getAllReferences(), ilObjUser\_lookupLogin(), _lookupObjIdForForumId(), DB_FETCHMODE_ASSOC, formatNotification(), formatNotificationSubject(), and setLanguage().
Referenced by generatePost().
ilForum::sendPostActivationNotification | ( | $post_data | ) |
Definition at line 2698 of file class.ilForum.php.
References $ilDB, $lng, $result, ilObjUser\_lookupLogin(), formatPostActivationNotification(), formatPostActivationNotificationSubject(), getModerators(), and setLanguage().
Referenced by generatePost().
ilForum::sendThreadNotifications | ( | $post_data | ) |
Definition at line 2475 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().
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 2295 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().
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().
|
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().
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().
ilForum::updateVisits | ( | $ID | ) |
update page hits of given forum- or thread-ID public
integer |
Definition at line 2044 of file class.ilForum.php.
References $_SESSION, $ilDB, $query, $res, getMDB2DataType(), getMDB2DataValue(), and getMDB2Query().
|
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().