Function __global->_insert_lang

Definitions

sources/lang3.php

  • Insert a content language string into the translation table, and returns the ID.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: array

Parameters

Name Type Default Set Range Description
$field_name ID_TEXT required parameter N/A N/A The field name
$text string required parameter N/A N/A The text
$level integer required parameter N/A N/A The level of importance this content language string holds
$db ?object Null N/A N/A The database connector to use (null: standard site connector)
$comcode boolean False N/A N/A Whether it is to be parsed as Comcode
$lang_id ?integer Null N/A N/A The ID to use for the content language string (null: work out next available)
$lang ?LANGUAGE_NAME Null N/A N/A The language (null: uses the current language)
$insert_as_admin boolean False N/A N/A Whether to insert it as an admin (any Comcode parsing will be carried out with admin privileges)
$pass_id ?string Null N/A N/A The special identifier for this content language string on the page it will be displayed on; this is used to provide an explicit binding between languaged elements and greater templated areas (null: none)
$text_parsed ?string Null N/A N/A Assembled Tempcode portion (null: work it out)
$preparse_mode boolean True N/A N/A Whether to generate a fatal error if there is invalid Comcode
$save_as_volatile boolean False N/A N/A Whether we are saving as a 'volatile' file extension (used in the XML DB driver, to mark things as being non-syndicated to Git)

Return

  • The content language string save fields
  • Type: array
  • Set: N/A
  • Range: N/A