FieldTable
Description and methods
ORM object for handling table of field visibility settings.
Chain of inheritance
Descendant for class Bitrix\Main\ORM\Data\DataManager.
Methods
Method | Description | Available from version |
---|---|---|
public static function removeByTypeId(int $typeId): Result |
Deletes all records from table with filter TYPE_ID = $typeId . Used when deleting a process.
Returns object |
|
public static function removeByTypeId(int $stageId): Result |
Deletes all records from table for filter STAGE_ID = $typeId . Used when deleting a stage.
This method is not recommended for use when Returns object |
|
public static function getGroupedList(int $typeId, int $stageId, bool $isFullInfo = false): array |
Returns array with settings, grouped by visibility and field code.
When Next example has the field
|
|
public static function mergeSettings(int $typeId, int $stageId, array $fields, string $visibilityType = null): Result |
Method saves current settings for the type $typeId at the stage $stageId from array $fields .
When passing $visibilityType , saving is performed only for this type of visibility.
It is required for saving only a single set of settings, to avoid resetting other settings.
This method immediately sends requests to the database - deletes redundant settings and adds new ones. Returns object |
|
public static function getVisibilityTypes(): array |
Returns array of available values for the field VISIBILITY
|
Table fields
Field | Description | Type | Required |
---|---|---|---|
ID | Int | ||
TYPE_ID | Process ID. | Int | Yes |
STAGE_ID | Stage ID. When this field contains 0 , this setting applies to all stages. | Int | Yes |
FIELD | User field ID. | String | Yes |
VISIBILITY |
Type of setting, accepts one of the following values:
| String | Yes |
© «Bitrix24», 2001-2024