Documentation

CUserFieldEnum Class

CUserFieldEnum class is used to work with the "list" type user fields.

This method can be used to get the displayed list values via ID. The values of this class are managed via the CACHED_b_user_field_enum constant. Caching time is 1 hour by default. To disable caching, set specify the CACHED_b_user_field_enum as false.

FIelds

Field Type Description
ID int Value ID.
USER_FIELD_ID
int
User field ID.
VALUE
varchar (255) Displayed value.
DEF
char
By default value (Y|N).
SORT
int
Sorting index. Used when displaying the form element.
XML_ID varchar (255) value ID for association with external sources (for example, value ID in an external database). Must be unique within single USER_FIELD_ID.

Class methods

Method Description Available from version
GetList Returns list of values список.
SetEnumValues Updates list of values.
DeleteFieldEnum Full list deletion of specified field.


© «Bitrix24», 2001-2024