- Модуль: bizproc
- Путь к файлу: ~/bitrix/modules/bizproc/lib/Task/Data/TasksToBeDelegated.php
- Класс: BitrixBizprocTaskDataTasksToBeDelegated
- Вызов: TasksToBeDelegated::createFromOptions
static function createFromOptions(DelegateTasksOptions $options): TasksToBeDelegated
{
$taskIds = self::validateTaskIds($options->getTaskIds());
if (!$taskIds)
{
throw new ArgumentException('taskIds');
}
$fromUserId = self::validateUserId($options->getFromUserId());
if (!$fromUserId)
{
throw new ArgumentOutOfRangeException('fromUserId', 1, null);
}
$toUserId = self::validateUserId($options->getToUserId());
if (!$toUserId)
{
throw new ArgumentOutOfRangeException('toUserId', 1, null);
}
$currentUserId = self::validateUserId($options->getCurrentUserId());
return new self($taskIds, $fromUserId, $toUserId, $currentUserId);
}