Function __global->get_content_where_for_str_id

Definitions

sources/content.php

  • Given the string content ID get a mapping we could use as a WHERE map.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$str_id ID_TEXT No No required parameter N/A N/A The ID
$cma_info array No No required parameter N/A N/A The info array for the content type
$table_alias ?string No No Null N/A N/A The table alias (null: none)

Returns

  • The mapping
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Given the string content ID get a mapping we could use as a WHERE map.
 *
 * @param  ID_TEXT $str_id The ID
 * @param  array $cma_info The info array for the content type
 * @param  ?string $table_alias The table alias (null: none)
 * @return array The mapping
 */

function get_content_where_for_str_id(string $str_id, array $cma_info, ?string $table_alias = null) : array