Bitrix API

OrderRestriction extends Bitrix24AccessRestriction

Table of Contents

Constants

LIMIT_SLIDER_ID  = 'limit_shop_100_orders'

Methods

__construct()  : mixed
externalize()  : array<string|int, mixed>
getErrorCode()  : string|null
getErrorMessage()  : string|null
getHtml()  : string
getInfoHelperId()  : string
Get id for tariff slider
getMobileInfoHelperId()  : string
Get id for tariff slider in mobile app
getName()  : string
getOrderLimit()  : int
hasPermission()  : bool
internalize()  : void
isItemRestricted()  : mixed
isOrderLimitReached()  : 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

Constants

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>

getMobileInfoHelperId()

Get id for tariff slider in mobile app

public getMobileInfoHelperId() : string
Return values
string

getName()

public getName() : string
Return values
string

internalize()

public internalize(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>

Params

isItemRestricted()

public isItemRestricted(ItemIdentifier $item) : mixed
Parameters
$item : ItemIdentifier

isOrderLimitReached()

public static isOrderLimitReached() : bool
Return values
bool

isPersistent()

public isPersistent() : bool
Return values
bool

isPersitent()

public isPersitent() : bool

No longer used by internal code and not recommended. Please use isPersistent.

Return values
bool

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

setName()

public setName(string $name) : void
Parameters
$name : string

Name


        
On this page

Search results