GetByID
array CSaleStatus::GetByID( string ID, string strLang = LANGUAGE_ID );
The method GetByID returns specified status parameters.
Parameters
Parameter | Description |
---|---|
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. |
Returned 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>"; } ?>
© «Bitrix24», 2001-2024