• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userfield/configcomponent.php
  • Класс: BitrixMainUserFieldConfigComponent
  • Вызов: ConfigComponent::getUserTypes
protected function getUserTypes(): array
{
	if(!$this->userTypes)
	{
		global $USER_FIELD_MANAGER;
		$this->userTypes = $USER_FIELD_MANAGER->GetUserType();
		$restrictedTypes = $this->access->getRestrictedTypes();
		foreach($restrictedTypes as $typeId)
		{
			unset($this->userTypes[$typeId]);
		}
	}

	return $this->userTypes;
}