Documentation

Update

bool
CLanguage::Update(
 int id,
 array fields
)

The method modifies language settings. In case of an error the method will return false, and the LAST_ERROR property will contain the error description. Non-static method.

Parameters

ParameterDescription
id Double-character language ID.
fields An array of the [link=89857#flds]field[/link] values in the ("field"=>"value" [, ...]) format.

See Also

Examples of use

<?
$arFields = Array(
  "ACTIVE"           => "Y",
  "SORT"             => 100,
  "DEF"              => "N",
  "NAME"             => "English",
  "FORMAT_DATE"      => "MM/DD/YYYY",
  "FORMAT_DATETIME"  => "MM/DD/YYYY HH:MI:SS",
  "CHARSET"          => "iso-8859-1"
  );
$obLang = new CLanguage;
$obLang->Update("en", $arFields);
if (strlen($obLang->LAST_ERROR)>0) $strError .= $obLang->LAST_ERROR;
?>


© «Bitrix24», 2001-2024
Up