• Модуль: rpa
  • Путь к файлу: ~/bitrix/modules/rpa/lib/command.php
  • Класс: BitrixRpaCommand
  • Вызов: Command::__construct
public function __construct(Item $item, array $data = [])
{
	$this->item = $item;
	$userId = null;
	if(isset($data['userId']))
	{
		$userId = (int) $data['userId'];
	}
	if(!$userId)
	{
		$userId = $this->getDefaultUserId();
	}
	if(isset($data['scope']))
	{
		$this->scope = (string) $data['scope'];
	}
	if(isset($data['taskId']))
	{
		$this->taskId = (int) $data['taskId'];
	}
	$this->userId = $userId;
}