DynamicTypesLimit
Table of Contents
Constants
- ERROR_CODE_CREATE_ITEM_RESTRICTED = 'CREATE_DYNAMIC_ITEM_RESTRICTED'
- ERROR_CODE_CREATE_TYPE_RESTRICTED = 'CREATE_DYNAMIC_TYPE_RESTRICTED'
- ERROR_CODE_UPDATE_ITEM_RESTRICTED = 'UPDATE_DYNAMIC_ITEM_RESTRICTED'
- ERROR_CODE_UPDATE_TYPE_RESTRICTED = 'UPDATE_DYNAMIC_TYPE_RESTRICTED'
- FEATURE_NAME = 'crm_smart_processes'
Methods
- __construct() : mixed
- canShowRestrictionSlider() : bool
- getCreateItemRestrictedError() : Error
- getCreateTypeRestrictedError() : Error
- getCreateTypeRestrictionSliderCode() : string
- getShowFeatureJsFunctionString() : string
- getShowFeatureJsHandler() : JsHandler
- getUpdateItemRestrictedError() : Error
- getUpdateTypeRestrictedError() : Error
- isCreateItemRestricted() : bool
- Return true if creating of new item of type with $entityTypeId is restricted.
- isCreateTypeRestricted() : bool
- Return true if creating of new dynamic types is restricted.
- isEnabled() : bool
- Return true if this restriction is enabled.
- isTypeSettingsRestricted() : bool
- Return true if config of type with $entityTypeId is restricted.
- isUpdateItemRestricted() : bool
- Return true if updating of an item of type with $entityTypeId is restricted.
Constants
ERROR_CODE_CREATE_ITEM_RESTRICTED
public
mixed
ERROR_CODE_CREATE_ITEM_RESTRICTED
= 'CREATE_DYNAMIC_ITEM_RESTRICTED'
ERROR_CODE_CREATE_TYPE_RESTRICTED
public
mixed
ERROR_CODE_CREATE_TYPE_RESTRICTED
= 'CREATE_DYNAMIC_TYPE_RESTRICTED'
ERROR_CODE_UPDATE_ITEM_RESTRICTED
public
mixed
ERROR_CODE_UPDATE_ITEM_RESTRICTED
= 'UPDATE_DYNAMIC_ITEM_RESTRICTED'
ERROR_CODE_UPDATE_TYPE_RESTRICTED
public
mixed
ERROR_CODE_UPDATE_TYPE_RESTRICTED
= 'UPDATE_DYNAMIC_TYPE_RESTRICTED'
FEATURE_NAME
public
mixed
FEATURE_NAME
= 'crm_smart_processes'
Methods
__construct()
public
__construct(DynamicTypesQuantityRestriction $typesQuantityRestriction) : mixed
Parameters
- $typesQuantityRestriction : DynamicTypesQuantityRestriction
canShowRestrictionSlider()
public
canShowRestrictionSlider() : bool
Return values
boolgetCreateItemRestrictedError()
public
getCreateItemRestrictedError() : Error
Return values
ErrorgetCreateTypeRestrictedError()
public
getCreateTypeRestrictedError() : Error
Return values
ErrorgetCreateTypeRestrictionSliderCode()
public
getCreateTypeRestrictionSliderCode() : string
Return values
stringgetShowFeatureJsFunctionString()
public
getShowFeatureJsFunctionString() : string
Return values
stringgetShowFeatureJsHandler()
public
getShowFeatureJsHandler() : JsHandler
Return values
JsHandlergetUpdateItemRestrictedError()
public
getUpdateItemRestrictedError() : Error
Return values
ErrorgetUpdateTypeRestrictedError()
public
getUpdateTypeRestrictedError() : Error
Return values
ErrorisCreateItemRestricted()
Return true if creating of new item of type with $entityTypeId is restricted.
public
isCreateItemRestricted(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolisCreateTypeRestricted()
Return true if creating of new dynamic types is restricted.
public
isCreateTypeRestricted() : bool
Return values
boolisEnabled()
Return true if this restriction is enabled.
public
isEnabled() : bool
Return values
boolisTypeSettingsRestricted()
Return true if config of type with $entityTypeId is restricted.
public
isTypeSettingsRestricted(int $entityTypeId) : bool
Parameters
- $entityTypeId : int
Return values
boolisUpdateItemRestricted()
Return true if updating of an item of type with $entityTypeId is restricted.
public
isUpdateItemRestricted(int $entityTypeId) : bool
Parameters
- $entityTypeId : int