• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/entitycollection.php
  • Класс: BitrixSaleInternalsEntityCollection
  • Вызов: EntityCollection::getItemById
public function getItemById($id)
{
	if (intval($id) <= 0)
	{
		throw new MainArgumentNullException('id');
	}

	$index = $this->getIndexById($id);
	if ($index === null)
	{
		return null;
	}

	if (isset($this->collection[$index]))
	{
		return $this->collection[$index];
	}

	return null;
}