Метод update

public

Сигнатура метода

public function update(DictionaryType $type, string $id, array $fields, int $userId, Scope $scope = Scope::Manual): Result

Возвращает: Result

Описание

Changes the value $id of the dictionary $type by $fields as $userId, and answers with the changed value read back from storage. A field left out keeps what it holds, and $fields with nothing in it changes nothing at all: the permission and the existence of the value are still answered for, and the answer is the current value. The identifier is not among the fields a change may carry - it is the address of the value. $scope names where the write came from and is read nowhere - see the note of the class about it.

Параметры

5
Имя Тип По умолчанию Флаги
$type DictionaryType —
—
$id string —
—
$fields array —
—
$userId int —
—
$scope Scope Scope::Manual
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Dictionary/DictionaryValueService.php
Расположение метода в файле
Строки 202–245

Исходный код

PHP