Function __global->find_lang_fields

Definitions

sources/database.php

  • Find lang fields to load within a query. Usually used when JOINs are involved in a query and hence the software cannot automatically determine what the fields will be.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$table string No No required parameter N/A N/A Table name
$alias ?string No No Null N/A N/A Table alias (null: none)

Returns

  • Map of fields
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find lang fields to load within a query. Usually used when JOINs are involved in a query and hence the software cannot automatically determine what the fields will be.
 *
 * @param  string $table Table name
 * @param  ?string $alias Table alias (null: none)
 * @return array Map of fields
 */

function find_lang_fields(string $table, ?string $alias = null) : array