Function CMS_Topic->_get_sort_order

Definitions

sources/topics.php

  • Get the sort order.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$reverse ?boolean No No required parameter N/A N/A Whether to show in reverse date order (affects default search order only) (null: read config)

Returns

  • Sort order
  • Type: ID_TEXT
  • Set: relevance rating newest oldest
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the sort order.
 *
 * @param  ?boolean $reverse Whether to show in reverse date order (affects default search order only) (null: read config)
 * @return ID_TEXT Sort order
 * @set relevance rating newest oldest
 */

protected function _get_sort_order(?bool $reverse) : string