Метод initForCustom
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
67–83
~/bitrix/modulesim/lib/V2/SharingLink/Dto/CreateDto.php
Исходный код
Сигнатура метода
public static function initForCustom(string $entityId, LinkEntityType $entityType, int $authorId, ?string $name = null, ?int $maxUses = null): self
Возвращает:
self
Описание
Create DTO for a custom (non-unique) sharing link. Custom links allow multiple links per entity, useful for personalized invitations.
Параметры
5| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$entityId
|
string
|
-
|
-
|
$entityType
|
LinkEntityType
|
-
|
-
|
$authorId
|
int
|
-
|
-
|
$name
|
?string
|
null
|
-
|
$maxUses
|
?int
|
null
|
-
|