Bitrix Site Manager

CSaleStatus::GetByID

array
CSaleStatus::GetByID(
 string ID,
 string strLang = LANGUAGE_ID
);

The method GetByID returns parameters of the specified status.

Parameters

ParameterDescription
ID The ID of the order status whose parameters are to be retrieved .
strLang The ID of the language in which the parameters are to be retrieved. By default, the current language is used.

Return Values

Returns an associated array with the following keys.

Key Description
ID The order status ID.
SORT Sort weight.
LID The language ID.
NAME The status name.
DESCRIPTION Status description.

Example



<?
if ($arStatus = CSaleStatus::GetByID($STATUS_ID))
{
   echo "<pre>";
   print_r($arStatus);
   echo "</pre>";
}
?>