Bitrix Site Manager

CSaleUserAccount::GetByID

array
CSaleUserAccount::GetByID(
 int ID
);

The method GetByID returns an associated array containing parameters of the specified account.

Parameters

ParameterDescription
ID The account ID.

Return Values

The method returns an associated array containing the account parameters with the following keys:

Notes

The result of the method is cached within a single page. Thus, repeated calls of the method do not cause additional queries to the database.

Example



<? if ($ar = CSaleUserAccount::GetByID(5)) 
{ echo "Current balance ".SaleFormatCurrency($ar["CURRENT_BUDGET"], 
                                             $ar["CURRENCY"]); } ?>