Метод getOwnedAttachments

public static

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

public static function getOwnedAttachments(int $userId, mixed $draftId, int $crmEntityTypeId, int $crmEntityId, mixed $expectedRevision, mixed $expectedClientId = null): array

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

Описание

Attachment copies the given user's draft owns, in the order of the draft. The send carries the copies over itself, because the client reports a restored attachment by its Disk object id, which the send gate cannot resolve. Which files a draft owns is decided by the mail module: it holds the draft, and the checks of owner, context, revision and compose form identity belong there together with it. Whether the user may still take the files out of that CRM entity is decided here, by CRM.

Параметры

6
Имя Тип По умолчанию Флаги
$userId int —
—
$draftId mixed —
—
$crmEntityTypeId int —
—
$crmEntityId int —
—
$expectedRevision mixed —
—
$expectedClientId mixed null
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/integration/mail/draft.php
Расположение метода в файле
Строки 60–98

Исходный код

PHP