• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/item.php
  • Класс: BitrixTasksItem
  • Вызов: Item::setUserId
public function setUserId($userId)
{
	if($this->isImmutable())
	{
		return; // todo: throw NotAllowedException?
	}

	$userId = intval($userId);
	if($userId)
	{
		$this->userId = $userId;
	}
}