GetByID
CUserTypeEntity::GetByID( int ID );
Returns an array of parameters for user field with ID. Non-static method.
Parameters
Parameter | Description |
---|---|
ID | User field ID |
Returned value
Returns an array of parameters for user field. Otherwise, returns false if the field not found.
Examples of use
<? $ar_res = CUserTypeEntity::GetByID( $id ); echo $ar_res["NAME"]; // print name echo "<pre>"; print_r($ar_res); echo "</pre>"; // print complete array ?>
To get the list of possible values of "list" type user property:
$rsEnum = CUserFieldEnum::GetList(array(), array("ID" =>$arUser["UF_LEGAL"])); $arEnum = $rsEnum->GetNext(); echo $arEnum["VALUE"];
$arUser["UF_LEGAL"] - in this case, the value of the "list" user field type.
© «Bitrix24», 2001-2024