• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/userfieldproxy.php
  • Класс: BitrixRestUserFieldProxy
  • Вызов: UserFieldProxy::__construct
function __construct($entityID, CUser $user = null)
{
	if(!is_string($entityID))
	{
		throw new MainArgumentTypeException('entityID', 'string');
	}

	$this->entityID = $entityID;
	$this->user = $user !== null ? $user : $this->getCurrentUser();
}