Function __global->get_translated_tempcode__and_simplify

Definitions

sources/lang.php

  • Wrapper for get_translated_tempcode, which then converts complex Tempcode back to very simple flat Tempcode, as an optimisation.We won't normally call this as it breaks our architecture, but webmaster may request it if they are okay with it.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$table ID_TEXT required parameter N/A N/A The table name
$row array required parameter N/A N/A The table row. Must not have aspects of other tables in it (i.e. joins). Pre-filter using 'db_map_restrict' if required
$field_name ID_TEXT required parameter N/A N/A The field name
$db ?object Null N/A N/A The database connector to use (null: standard site connector)
$lang ?LANGUAGE_NAME Null N/A N/A The language (null: uses the current language)
$force boolean False N/A N/A Whether to force it to the specified language
$as_admin boolean False N/A N/A Whether to force as_admin, even if the content language string isn't stored against an admin (designed for Comcode page caching)
$clear_away_from_cache boolean False N/A N/A Whether to remove from the Tempcode cache when we're done, for performance reasons (normally don't bother with this, but some code knows it won't be needed again -- esp Comcode cache layer -- and saves RAM by removing it)

Return

  • The parsed Comcode (null: the text couldn't be looked up)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A