- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile.php
- Класс: BitrixIntranetComponentUserProfile
- Вызов: UserProfile::getAvailableFields
public function getAvailableFields()
{
$result = [];
if (!$this->arResult["AllowAllUserProfileFields"])
{
$result[] = 'FULL_NAME';
if (!empty($this->arParams['USER_FIELDS_MAIN']))
{
$result = array_merge($result, array_values($this->arParams['USER_FIELDS_MAIN']));
}
if (!empty($this->arParams['USER_PROPERTY_MAIN']))
{
$result = array_merge($result, array_values($this->arParams['USER_PROPERTY_MAIN']));
}
if (!empty($this->arParams['USER_FIELDS_CONTACT']))
{
$result = array_merge($result, array_values($this->arParams['USER_FIELDS_CONTACT']));
}
if (!empty($this->arParams['USER_PROPERTY_CONTACT']))
{
$result = array_merge($result, array_values($this->arParams['USER_PROPERTY_CONTACT']));
}
if (!empty($this->arParams['USER_FIELDS_PERSONAL']))
{
$result = array_merge($result, array_values($this->arParams['USER_FIELDS_PERSONAL']));
}
if (!empty($this->arParams['USER_PROPERTY_PERSONAL']))
{
$result = array_merge($result, array_values($this->arParams['USER_PROPERTY_PERSONAL']));
}
if (!empty($this->arParams['EDITABLE_FIELDS']))
{
$result = array_merge($result, array_values($this->arParams['EDITABLE_FIELDS']));
}
$result = array_unique($result);
}
self::setWhiteListOption($result);
return $result;
}