Field implements Child
Table of Contents
Interfaces
Constants
- FIELD_COPY_ERROR = "FIELD_COPY_ERROR"
Methods
- __construct() : mixed
- copy() : Result
- Copy iblock fields and properties.
- getEnumRatio() : array<string|int, mixed>
- Returns lists values map from old iblock to new iblock
- getFieldRatio() : array<string|int, mixed>
- Returns properties map from old iblock to new iblock.
- setFieldRatio() : void
- Add property relation from old iblock to new iblock.
Constants
FIELD_COPY_ERROR
public
mixed
FIELD_COPY_ERROR
= "FIELD_COPY_ERROR"
Methods
__construct()
public
__construct() : mixed
copy()
Copy iblock fields and properties.
public
copy(int $iblockId, int $copiedIblockId) : Result
Parameters
- $iblockId : int
-
Source iblock id.
- $copiedIblockId : int
-
Destination iblock id.
Return values
ResultgetEnumRatio()
Returns lists values map from old iblock to new iblock
public
getEnumRatio() : array<string|int, mixed>
Return values
array<string|int, mixed>getFieldRatio()
Returns properties map from old iblock to new iblock.
public
getFieldRatio() : array<string|int, mixed>
Return values
array<string|int, mixed>setFieldRatio()
Add property relation from old iblock to new iblock.
public
setFieldRatio(int $iblockId, int $fieldId, int $newFieldId) : void
Parameters
- $iblockId : int
-
Old iblock id.
- $fieldId : int
-
Old property id.
- $newFieldId : int
-
New property id.