Function __global->get_news_cat_row

Definitions

sources/news.php

  • Get a news category database row.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$id integer No No required parameter N/A N/A News category ID
$null_ok boolean No No False N/A N/A Whether to return null if not found (as opposed to exiting)

Returns

  • Row (null: could not load)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a news category database row.
 *
 * @param  integer $id News category ID
 * @param  boolean $null_ok Whether to return null if not found (as opposed to exiting)
 * @return ?array Row (null: could not load)
 */

function get_news_cat_row(int $id, bool $null_ok = false) : ?array