Function CMS_Topic->render_posts

Definitions

sources/topics.php

  • Render a topic's posts.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$num_to_show_limit ?integer required parameter N/A N/A Number of posts to show initially (null: no limit)
$max_thread_depth integer required parameter N/A N/A Maximum thread depth
$may_reply boolean required parameter N/A N/A Whether the current user may reply to the topic (influences what buttons show)
$highlight_by_member ?MEMBER required parameter N/A N/A Member to highlight the posts of (null: none)
$all_individual_review_ratings array required parameter N/A N/A Review ratings rows
$forum_id AUTO_LINK required parameter N/A N/A ID of forum this topic in in
$topic_info ?array required parameter N/A N/A The topic row (null: not running Conversr)
$parent_post_id ?AUTO_LINK Null N/A N/A Only show posts under here (null: show posts from root)
$maybe_missing_links boolean False N/A N/A Whether to just render everything as flat (used when doing AJAX post loading). NOT actually used since we wrote better post-orphaning-fixing code.

Return

  • Tuple: Rendered topic, serialized options to render more posts, secure hash of serialized options to prevent tampering
  • Type: array
  • Set: N/A
  • Range: N/A