WebFormResultsRestriction extends Bitrix24AccessRestriction
Table of Contents
Constants
- ERROR_CODE = 'restriction_web_form_results'
- SLIDER_ID = 'limit_crm_100_form'
Methods
- __construct() : mixed
- externalize() : array<string|int, mixed>
- filterRestrictedItemIds() : array<string|int, mixed>
- getErrorCode() : string|null
- getErrorMessage() : string|null
- getFieldsToShow() : array<string|int, mixed>
- getHtml() : string
- getInfoHelperId() : string
- Get id for tariff slider
- getMobileInfoHelperId() : string
- Get id for tariff slider in mobile app
- getName() : string
- getRestrictedItemIds() : array<string|int, mixed>
- Return list of restricted item Ids of type $entityTypeId
- hasPermission() : bool
- internalize() : void
- isItemRestricted() : bool
- Check restriction for single item. Do not use it in cycle.
- isLimitReached() : bool
- isPersistent() : bool
- isPersitent() : bool
- load() : mixed
- permit() : void
- prepareDisplayOptions() : void
- prepareFeaturePromoterScript() : string
- prepareInfoHelperScript() : string
- preparePopupScript() : string
- reset() : mixed
- save() : mixed
- setErrorCode() : void
- setErrorMessage() : void
- setName() : void
- setResultsLimit() : self
- setStartDate() : self
Constants
ERROR_CODE
public
mixed
ERROR_CODE
= 'restriction_web_form_results'
SLIDER_ID
public
mixed
SLIDER_ID
= 'limit_crm_100_form'
Methods
__construct()
public
__construct([mixed $name = '' ][, mixed $permitted = false ][, array<string|int, mixed> $htmlInfo = null ][, array<string|int, mixed> $popupInfo = null ]) : mixed
Parameters
- $name : mixed = ''
- $permitted : mixed = false
- $htmlInfo : array<string|int, mixed> = null
- $popupInfo : array<string|int, mixed> = null
externalize()
public
externalize() : array<string|int, mixed>
Return values
array<string|int, mixed>filterRestrictedItemIds()
public
filterRestrictedItemIds(int $entityTypeId, array<string|int, mixed> $itemIds) : array<string|int, mixed>
Parameters
- $entityTypeId : int
- $itemIds : array<string|int, mixed>
Return values
array<string|int, mixed>getErrorCode()
public
getErrorCode() : string|null
Return values
string|nullgetErrorMessage()
public
getErrorMessage() : string|null
Return values
string|nullgetFieldsToShow()
public
getFieldsToShow([array<string|int, mixed> $additionalFields = [] ]) : array<string|int, mixed>
Parameters
- $additionalFields : array<string|int, mixed> = []
Return values
array<string|int, mixed>getHtml()
public
getHtml() : string
Return values
stringgetInfoHelperId()
Get id for tariff slider
public
getInfoHelperId() : string
Return values
stringgetMobileInfoHelperId()
Get id for tariff slider in mobile app
public
getMobileInfoHelperId() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetRestrictedItemIds()
Return list of restricted item Ids of type $entityTypeId
public
getRestrictedItemIds(int $entityTypeId) : array<string|int, mixed>
Parameters
- $entityTypeId : int
Return values
array<string|int, mixed>hasPermission()
public
hasPermission() : bool
Return values
boolinternalize()
public
internalize(array<string|int, mixed> $params) : void
Parameters
- $params : array<string|int, mixed>
-
Params
isItemRestricted()
Check restriction for single item. Do not use it in cycle.
public
isItemRestricted(ItemIdentifier $identifier) : bool
Parameters
- $identifier : ItemIdentifier
Return values
boolisLimitReached()
public
isLimitReached() : bool
Return values
boolisPersistent()
public
isPersistent() : bool
Return values
boolisPersitent()
public
isPersitent() : bool
No longer used by internal code and not recommended. Please use isPersistent.
Return values
boolload()
public
load() : mixed
permit()
public
permit(bool $permitted) : void
Parameters
- $permitted : bool
-
Permission Flag.
prepareDisplayOptions()
public
prepareDisplayOptions(int $entityTypeId, array<string|int, mixed> $itemIds, Options $options) : void
Parameters
- $entityTypeId : int
- $itemIds : array<string|int, mixed>
- $options : Options
prepareFeaturePromoterScript()
public
prepareFeaturePromoterScript() : string
Return values
stringprepareInfoHelperScript()
public
prepareInfoHelperScript() : string
Return values
stringpreparePopupScript()
public
preparePopupScript() : string
Return values
stringreset()
public
reset() : mixed
save()
public
save() : mixed
setErrorCode()
public
setErrorCode(string $errorCode) : void
Parameters
- $errorCode : string
setErrorMessage()
public
setErrorMessage(string $errorMessage) : void
Parameters
- $errorMessage : string
setName()
public
setName(string $name) : void
Parameters
- $name : string
-
Name
setResultsLimit()
public
setResultsLimit(int $resultsLimit[, Date|null $startDate = null ]) : self
Parameters
- $resultsLimit : int
- $startDate : Date|null = null
Return values
selfsetStartDate()
public
setStartDate(Date|null $startDate) : self
Parameters
- $startDate : Date|null