• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/objectify/entityobject.php
  • Класс: BitrixMainORMObjectifyEntityObject
  • Вызов: EntityObject::__get
public function __get($name)
{
	switch ($name)
	{
		case 'entity':
			return $this->sysGetEntity();
		case 'primary':
			return $this->sysGetPrimary();
		case 'primaryAsString':
			return $this->sysGetPrimaryAsString();
		case 'state':
			return $this->sysGetState();
		case 'dataClass':
			throw new SystemException('Property `dataClass` should be received as static.');
		case 'customData':

			if ($this->_customData === null)
			{
				$this->_customData = new Dictionary;
			}

			return $this->_customData;

		case 'authContext':
			return $this->_authContext;
	}

	throw new SystemException(sprintf(
		'Unknown property `%s` for object `%s`', $name, get_called_class()
	));
}