Метод delete
Сигнатура метода
public function delete(DictionaryType $type, string $id, int $userId, Scope $scope = Scope::Manual): Result
Возвращает:
Result
Описание
Erases the value $id of the dictionary $type as $userId. A successful result carries no data. A value that ships with the product is never erased, and the refusal comes before the storage layer is asked - it would have erased it. Elements referring to the erased value are not looked at: the reference stays behind pointing at nothing, which is what this domain does today. $scope names where the write came from and is read nowhere - see the note of the class about it.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$type
|
DictionaryType
|
—
|
—
|
$id
|
string
|
—
|
—
|
$userId
|
int
|
—
|
—
|
$scope
|
Scope
|
Scope::Manual
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Dictionary/DictionaryValueService.php
Расположение метода в файле
Строки
256–287