Метод update

public

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

public function update(DictionaryType $type, string $id, ?string $name, ?int $sort): Result

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

Описание

Changes the value $id of the dictionary $type and hands the stored value up inside {@see self::DATA_KEY_VALUE}. A field left out keeps what it holds. That is a promise of this method rather than of the boundary: the boundary writes the position on every change and falls back to a default position when it gets none, so a change that leaves the position alone carries the current one - taken from the very row the value was addressed by, with no read of its own. The promise holds for a value standing at a position the boundary would replace rather than keep - zero or less - as well: such a change is written past the boundary instead of through it. The identifier is not among the arguments at all: it is the address of the value and the boundary refuses to move a value anywhere.

Параметры

4
Имя Тип По умолчанию Флаги
$type DictionaryType —
—
$id string —
—
$name ?string —
—
$sort ?int —
—

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

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

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

Исходный код

PHP