Function __global->content_get_row

Definitions

sources/content.php

  • Get the content row of a content item.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$content_id ID_TEXT No No required parameter N/A N/A The content ID
$cma_info array No No required parameter N/A N/A The info array for the content type

Returns

  • The row (null: not found)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the content row of a content item.
 *
 * @param  ID_TEXT $content_id The content ID
 * @param  array $cma_info The info array for the content type
 * @return ?array The row (null: not found)
 */

function content_get_row(string $content_id, array $cma_info) : ?array