Bitrix API

ServiceForm extends ProductForm

Table of Contents

Constants

CREATION_MODE  = 'CREATION'
CURRENCY_FIELD_PREFIX  = 'CATALOG_CURRENCY_'
EDIT_MODE  = 'EDIT'
GRID_FIELD_PREFIX  = 'SKU_GRID_'
MORE_PHOTO  = 'MORE_PHOTO'
NOT_SELECTED_VAT_ID_VALUE  = 'D'
PRICE_FIELD_PREFIX  = 'CATALOG_GROUP_'
PROPERTY_FIELD_PREFIX  = 'PROPERTY_'
SCOPE_CRM  = 'crm'
SCOPE_SHOP  = 'shop'
SERVICE_GRID_PREFIX  = 'SERVICE_GRID_'

Methods

__construct()  : mixed
collectFieldConfigs()  : array<string|int, mixed>
getCardConfigId()  : string
getCardSettings()  : array<string|int, mixed>
getCardUserConfig()  : array<string|int, mixed>
getConfig()  : array<string|int, mixed>
getControllers()  : array<string|int, array<string|int, mixed>>
Returns controller's list for product card.
getDescriptions()  : array<string|int, mixed>
getHiddenFields()  : array<string|int, mixed>
getIblockPropertiesDescriptions()  : array<string|int, mixed>
getValues()  : array<string|int, mixed>
Returns product field values.
getVariationGridClassName()  : string
getVariationGridId()  : string
getVariationGridJsComponentName()  : string
getVariationIblockId()  : int|null
isAllowedEditFields()  : bool
Returns true, if current user can create new product or modify existing product.
isCardAllowed()  : bool
Returns true, if public product card is allowed.
isCardSettingsEditable()  : bool
Returns true, if current user can modify card settings.
isEnabledSetSettingsForAll()  : bool
Returns true, if current user can write card settings for all users.
isImageProperty()  : bool
isInventoryManagementAccess()  : bool
Returns true, if current user can change inventory management setting.
isPricesEditable()  : bool
Returns true, if current user can modify product prices.
isPurchasingPriceAllowed()  : bool
Return true, if current user can view purchasing prices.
isQuantityTraceSettingDisabled()  : bool
isReadOnly()  : bool
Returns true, if current user can't modify product.
isVisibilityEditable()  : bool
Returns true, if current user can modify product's visibility.
preparePropertyName()  : string
preparePropertyNameFromProperty()  : string
saveCardUserConfig()  : bool

Constants

CREATION_MODE

public mixed CREATION_MODE = 'CREATION'

CURRENCY_FIELD_PREFIX

public mixed CURRENCY_FIELD_PREFIX = 'CATALOG_CURRENCY_'

EDIT_MODE

public mixed EDIT_MODE = 'EDIT'

GRID_FIELD_PREFIX

public mixed GRID_FIELD_PREFIX = 'SKU_GRID_'

MORE_PHOTO

public mixed MORE_PHOTO = 'MORE_PHOTO'

NOT_SELECTED_VAT_ID_VALUE

public mixed NOT_SELECTED_VAT_ID_VALUE = 'D'

PRICE_FIELD_PREFIX

public mixed PRICE_FIELD_PREFIX = 'CATALOG_GROUP_'

PROPERTY_FIELD_PREFIX

public mixed PROPERTY_FIELD_PREFIX = 'PROPERTY_'

SCOPE_CRM

public mixed SCOPE_CRM = 'crm'

SCOPE_SHOP

public mixed SCOPE_SHOP = 'shop'

SERVICE_GRID_PREFIX

public mixed SERVICE_GRID_PREFIX = 'SERVICE_GRID_'

Methods

__construct()

public __construct(BaseIblockElementEntity $entity[, array<string|int, mixed> $params = [] ]) : mixed
Parameters
$entity : BaseIblockElementEntity
$params : array<string|int, mixed> = []

collectFieldConfigs()

public collectFieldConfigs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCardConfigId()

public getCardConfigId() : string
Return values
string

getCardSettings()

public getCardSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCardUserConfig()

public getCardUserConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

getConfig()

public getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>

getControllers()

Returns controller's list for product card.

public getControllers() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>

getDescriptions()

public getDescriptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getHiddenFields()

public getHiddenFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getIblockPropertiesDescriptions()

public getIblockPropertiesDescriptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getValues()

Returns product field values.

public getValues([bool $allowDefaultValues = true ][, array<string|int, mixed>|null $descriptions = null ]) : array<string|int, mixed>
Parameters
$allowDefaultValues : bool = true

Can use default values.

$descriptions : array<string|int, mixed>|null = null

Field descriptions.

Return values
array<string|int, mixed>

getVariationGridClassName()

public getVariationGridClassName() : string
Return values
string

getVariationGridId()

public getVariationGridId() : string
Return values
string

getVariationGridJsComponentName()

public getVariationGridJsComponentName() : string
Return values
string

getVariationIblockId()

public getVariationIblockId() : int|null
Return values
int|null

isAllowedEditFields()

Returns true, if current user can create new product or modify existing product.

public isAllowedEditFields() : bool
Return values
bool

isCardAllowed()

Returns true, if public product card is allowed.

public isCardAllowed() : bool
Return values
bool

isCardSettingsEditable()

Returns true, if current user can modify card settings.

public isCardSettingsEditable() : bool
Return values
bool

isEnabledSetSettingsForAll()

Returns true, if current user can write card settings for all users.

public isEnabledSetSettingsForAll() : bool
Return values
bool

isImageProperty()

public isImageProperty(array<string|int, mixed> $propertySettings) : bool
Parameters
$propertySettings : array<string|int, mixed>
Return values
bool

isInventoryManagementAccess()

Returns true, if current user can change inventory management setting.

public isInventoryManagementAccess() : bool
Return values
bool

isPricesEditable()

Returns true, if current user can modify product prices.

public isPricesEditable() : bool
Return values
bool

isPurchasingPriceAllowed()

Return true, if current user can view purchasing prices.

public isPurchasingPriceAllowed() : bool
Return values
bool

isQuantityTraceSettingDisabled()

public isQuantityTraceSettingDisabled() : bool
Return values
bool

isReadOnly()

Returns true, if current user can't modify product.

public isReadOnly() : bool
Return values
bool

isVisibilityEditable()

Returns true, if current user can modify product's visibility.

public isVisibilityEditable() : bool
Return values
bool

preparePropertyName()

public static preparePropertyName([string $name = '' ]) : string
Parameters
$name : string = ''
Return values
string

preparePropertyNameFromProperty()

public static preparePropertyNameFromProperty(Property $property) : string
Parameters
$property : Property
Return values
string

saveCardUserConfig()

public saveCardUserConfig(array<string|int, mixed> $config) : bool
Parameters
$config : array<string|int, mixed>
Return values
bool

        
On this page

Search results