ocf_force_update_forum_cacheing (line 299)
Update a forums cached details.
void
ocf_force_update_forum_cacheing
(AUTO_LINK $forum_id, [?integer $num_topics_increment = NULL], [?integer $num_posts_increment = NULL], [?AUTO_LINK $last_topic_id = NULL], [?string $last_title = NULL], [?TIME $last_time = NULL], [?string $last_username = NULL], [?MEMBER $last_member_id = NULL], [?AUTO_LINK $last_forum_id = NULL])
-
AUTO_LINK
$forum_id: The ID of the forum to update the cached details of.
-
?integer
$num_topics_increment: How much to increment the topic count by (NULL: It has to be completely recalculated).
-
?integer
$num_posts_increment: How much to increment the post count by (NULL: It has to be completely recalculated).
-
?AUTO_LINK
$last_topic_id: The ID of the last topic (NULL: Unknown, it will have to be looked up).
-
?string
$last_title: The title of the last topic (NULL: Unknown, it will have to be looked up).
-
?TIME
$last_time: The last post time of the last topic (NULL: Unknown, it will have to be looked up).
-
?string
$last_username: The last post username of the last topic (NULL: Unknown, it will have to be looked up).
-
?MEMBER
$last_member_id: The last post member of the last topic (NULL: Unknown, it will have to be looked up).
-
?AUTO_LINK
$last_forum_id: The forum the last post was in (note this makes sense, because there may be subforums under this forum that we have to take into account). (NULL: Unknown, it will have to be looked up).
ocf_force_update_topic_cacheing (line 203)
Update a topic's cacheing.
void
ocf_force_update_topic_cacheing
(AUTO_LINK $topic_id, [?integer $post_count_dif = NULL], [boolean $last = true], [boolean $first = false], [?AUTO_LINK $last_post_id = NULL], [?TIME $last_time = NULL], [?string $last_title = NULL], [?AUTO_LINK $last_post = NULL], [?string $last_username = NULL], [?MEMBER $last_member_id = NULL])
-
AUTO_LINK
$topic_id: The ID of the topic to update cacheing of.
-
?integer
$post_count_dif: The post count difference we know the topic has undergone (NULL: we'll need to work out from scratch how many posts are in the topic)
-
boolean
$last: Whether this is the latest post in the topic.
-
boolean
$first: Whether this is the first post in the topic.
-
?AUTO_LINK
$last_post_id: The ID of the last post in the topic (NULL: unknown).
-
?TIME
$last_time: The time of the last post in the topic (NULL: unknown).
-
?string
$last_title: The title of the last post in the topic (NULL: unknown).
-
?AUTO_LINK
$last_post: The ID of the last posts language string for the topic (NULL: unknown).
-
?string
$last_username: The last username to post in the topic (NULL: unknown).
-
?MEMBER
$last_member_id: The ID of the last member to post in the topic (NULL: unknown).
ocf_member_handle_promotion (line 26)
Check to see if a member deserves promotion, and handle it.
void
ocf_member_handle_promotion
([?MEMBER $member_id = NULL])
-
?MEMBER
$member_id: The member (NULL: current member).
ocf_send_tracker_about (line 102)
Send out tracker information, as a topic just got a new post.
void
ocf_send_tracker_about
(URLPATH $url, AUTO_LINK $topic_id, ?AUTO_LINK $forum_id, MEMBER $sender_member_id, boolean $is_starter, LONG_TEXT $post, [?MEMBER $limit_to = NULL], [boolean $is_pt = false])
-
URLPATH
$url: The URL to view the new post.
-
AUTO_LINK
$topic_id: The ID of the topic that got posted in.
-
?AUTO_LINK
$forum_id: The forum that the topic is in (NULL: find out from the DB).
-
MEMBER
$sender_member_id: The member that made the post triggering this tracking notification.
-
boolean
$is_starter: Whether the post started a new topic.
-
LONG_TEXT
$post: The post, in Comcode format.
-
?MEMBER
$limit_to: Only send the notification to this member (NULL: no such limit).
-
boolean
$is_pt: Whether this is for a personal topic.