• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/objectify/entityobject.php
  • Класс: BitrixMainORMObjectifyEntityObject
  • Вызов: EntityObject::sysGetValue
public function sysGetValue($fieldName, $require = false)
{
	$fieldName = StringHelper::strtoupper($fieldName);

	if (array_key_exists($fieldName, $this->_currentValues))
	{
		return $this->_currentValues[$fieldName];
	}
	else
	{
		if ($require && !array_key_exists($fieldName, $this->_actualValues))
		{
			throw new SystemException(sprintf(
				'%s value is required for further operations', $fieldName
			));
		}

		return $this->_actualValues[$fieldName] ?? null;
	}
}