SetFeature
int CSocNetFeatures::SetFeature( char type, int id, string feature, bool active, string featureName = false );
The method sets configuration of additional features for a group or a user. When a record for the feature exist, it is modified. Otherwise, a new record is created. Static method.
Note: new record is created by the method CSocNetFeatures::Add, is updated by the method CSocNetFeatures::Update.
Parameters
Parameter | Description | Available from version |
---|---|---|
type | Object type: SONET_ENTITY_GROUP - group, SONET_ENTITY_USER - user. |
|
id | Object ID (user or group). | |
feature | Internal name for additional features. | |
active | Active status flag (Y/N). | |
featureName | Name of additional feature. |
Returned value
Returns record ID for additional feature.
See Also
© «Bitrix24», 2001-2024