/sources/ocf_topicview.php

Description
Functions
find_first_unread_url (line 55)

Find the URL to the latest unread post in a topic.

  • return: The URL.
URLPATH find_first_unread_url (AUTO_LINK $id)
  • AUTO_LINK $id: The topic ID.
find_post_id_url (line 27)

Find the URL to a post.

  • return: The URL.
URLPATH find_post_id_url (AUTO_LINK $post_id)
  • AUTO_LINK $post_id: The post ID.
ocf_get_details_to_show_post (line 103)

Turn a post row, into a detailed map of information that is suitable for use as display parameters for that post.

  • return: The detailed map.
array ocf_get_details_to_show_post (array $_postdetails, [boolean $only_post = false])
  • array $_postdetails: The post row.
  • boolean $only_post: Whether the post is the only post in the topic.
ocf_read_in_topic (line 232)

Read in a great big map of details relating to a topic.

  • return: The map of details.
array ocf_read_in_topic (?AUTO_LINK $topic_id, integer $start, integer $max, [boolean $view_poll_results = false])
  • ?AUTO_LINK $topic_id: The ID of the topic we are getting details of (NULL: whispers).
  • integer $start: The start row for getting details of posts in the topic (i.e. 0 is start of topic, higher is further through).
  • integer $max: The maximum number of posts to get detail of.
  • boolean $view_poll_results: Whether we are viewing poll results for the topic (if there is no poll for the topic, this is irrelevant).

Documentation generated on Sun, 02 Jan 2011 23:20:17 +0000 by phpDocumentor 1.4.3