Метод findRequisiteOfDefaultAddressWithoutPermissionCheck

public

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

public function findRequisiteOfDefaultAddressWithoutPermissionCheck(int $anchorTypeId, int $anchorId, int $typeId): int

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

Описание

The requisite of the owner already holding the default address of the type, or 0 when there is none. Ties are broken the way the owner sorts its requisites: `SORT` first, identifier second. Unlike {@see self::findAllByAnchorOwner()} this read applies no permission restriction at all, and its result must never be handed to a user as a list of addresses. It answers a question of the write path - where an address of this owner and type already lives - and the write path has to get the same answer for an agent, an import and a call made without a user, where a restriction would silently move the address onto another requisite.

Параметры

3
Имя Тип По умолчанию Флаги
$anchorTypeId int —
—
$anchorId int —
—
$typeId int —
—

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

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

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

Исходный код

PHP