Documentation

IsActiveFeature

mixed
CSocNetFeatures::IsActiveFeature(
 char type,
 mixed id,
 string feature
);

The method checks if the group or user features are active or inactive. Static method.

Parameters

Parameter Description Available from version
type Object type:
SONET_ENTITY_GROUP - group,
SONET_ENTITY_USER - user.
id Object (user or group) ID, or (starting from version 8.6.4) - array of object IDs.
feature Name of additional feature.

Returned value

When the ID parameter contains a passed scalar value, returns true, if the additional features are active. Otherwise returns false. When (starting from version 8.6.4) the ID parameter contains passed array of object IDs - associative array is returned, with IDs as keys and values as true/false based on the logic above.



© «Bitrix24», 2001-2024
Up