• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/item.php
  • Класс: Bitrix\Crm\Item
  • Вызов: Item::get
public function get(string $commonFieldName)
{
	if ($this->isFieldDisabled($commonFieldName))
	{
		throw new ArgumentException(sprintf(
			'Item has no %s field',
			$commonFieldName
		));
	}

	$implementation = $this->getImplementation($commonFieldName);
	if ($implementation)
	{
		return $implementation->get($commonFieldName);
	}

	$customMethod = $this->getCustomMethodNameIfExists('get', $commonFieldName);
	if ($customMethod)
	{
		return $this->$customMethod();
	}

	if ($this->isExpressionField($commonFieldName))
	{
		return $this->getExpressionField($commonFieldName);
	}

	$entityFieldName = $this->getEntityFieldNameByMap($commonFieldName);

	return $this->entityObject->get($entityFieldName);
}