Function Forum_driver_cns->get_forum_topic_posts

Definitions

sources/forum/cns.php

  • Get an array of maps for the topic in the given forum.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$topic_id integer required parameter N/A N/A The topic ID
$count ?integer Null N/A N/A The comment count will be returned here by reference (null: do not gather it)
$max ?integer 100 N/A N/A Maximum comments to returned (null: no limit)
$start integer 0 N/A N/A Comment to start at
$mark_read boolean True N/A N/A Whether to mark the topic read
$reverse boolean False N/A N/A Whether to show in reverse
$light_if_threaded boolean False N/A N/A Whether to only load minimal details if it is a threaded topic
$posts ?array Null N/A N/A List of post IDs to load (null: no filter)
$load_spacer_posts_too boolean False N/A N/A Whether to load spacer posts
$sort ID_TEXT date N/A N/A Preferred sort order (appropriate will use rating if threaded, other

Return

  • The array of maps (Each map is: title, message, member, date) (-1 for no such forum, -2 for no such topic)
  • Type: mixed
  • Set: N/A
  • Range: N/A