Function CMS_Topic->_decide_what_to_render

Definitions

sources/topics.php

  • Filter posts, deciding what to render.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$num_to_show_limit integer No No required parameter N/A N/A Number of posts to show initially
&$queue array Yes No required parameter N/A N/A Posts to choose from, in preference order

Returns

  • Chosen posts
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Filter posts, deciding what to render.
 *
 * @param  integer $num_to_show_limit Number of posts to show initially
 * @param  array $queue Posts to choose from, in preference order
 * @return array Chosen posts
 */

protected function _decide_what_to_render(int $num_to_show_limit, array &$queue) : array