• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/model/entity.php
  • Класс: BitrixCatalogModelEntity
  • Вызов: Entity::fetch
public function fetch(MainTextConverter $converter = null)
{
	if ($this->result === null)
		return false;
	$row = $this->result->fetch($converter);
	if (!$row)
	{
		$this->result = null;
		$this->fetchCutMask = [];
		return false;
	}
	if (empty($this->fields))
		return $row;
	if (!isset($row['ID']))
		return $row;

	$this->setEntityCacheItem((int)$row['ID'], $row, true);
	if (!empty($this->fetchCutMask))
		$row = array_diff_key($row, $this->fetchCutMask);
	return $row;
}