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

	$id = intval($id);

//		if(!$id)
//		{
//			$this->id = 0;
//		}
//		else
//		{
//			$this->id = Assert::expectIntegerNonNegative($id, '$id'); // todo: do we need exception here?
//			$this->offsetSetDirect('ID', $this->id);
//		}

	$this->id = $id;
	$this->offsetSetDirect('ID', $this->id);
}