CForumPoints::GetByIDEx
array CForumPoints::GetByIDEx( int ID, string strLang );
The method GetByIDEx returns an array of all parameters of the specified rating. The method returns parameters specific for the passed language ID.
Parameters
Parameter | Description |
---|---|
ID | The ID of rating whose parameters are required. |
strLang | The ID of the language. |
Return Values
Returns the associated array with the following keys.
Key | Value |
---|---|
ID | The rating ID |
MIN_POINTS | Number of points required to obtain this rating. |
CODE | Mnemonic code. |
VOTES | Number of votes that a user with this rating can give. |
LID | The language ID. |
NAME | Name of the rating in the language LID. |
Example
<? $ar_res = CForumPoints::GetByIDEx(3, "ru"); echo "Users with rating ".$ar_res["NAME"]." can give ".$ar_res["VOTES"]." votes"; ?>
© «Bitrix24», 2001-2024