/** * Load extra details for a list of posts. Does not need to return anything if forum driver doesn't support partial post loading (which is only useful for threaded topic partial-display). * * @param object Link to the real forum driver * @param AUTO_LINK Topic the posts come from * @param array List of post IDs * @return array Extra details */ function _helper_get_post_remaining_details($this_ref, $topic_id, $post_ids) { $count = 0; $ret = _helper_get_forum_topic_posts($this_ref, $topic_id, $count, NULL, 0, false, false, false, $post_ids, true); if (is_integer($ret)) { return array(); } return $ret; }
/** * Get an array of maps for the topic in the given forum. * * @param integer The topic ID * @param integer The comment count will be returned here by reference * @param integer Maximum comments to returned * @param integer Comment to start at * @param boolean Whether to mark the topic read * @param boolean Whether to show in reverse * @param boolean Whether to only load minimal details if it is a threaded topic * @param ?array List of post IDs to load (NULL: no filter) * @param boolean Whether to load spacer posts * @return mixed The array of maps (Each map is: title, message, member, date) (-1 for no such forum, -2 for no such topic) */ function get_forum_topic_posts($topic_id, &$count, $max = 100, $start = 0, $mark_read = true, $reverse = false, $light_if_threaded = false, $posts = NULL, $load_spacer_posts_too = false) { require_code('ocf_forum_driver_helper'); return _helper_get_forum_topic_posts($this, $topic_id, $count, $max, $start, $mark_read, $reverse, $light_if_threaded, $posts, $load_spacer_posts_too); }