- Модуль: disk
- Путь к файлу: ~/bitrix/modules/disk/lib/uf/userfieldmanager.php
- Класс: BitrixDiskUfUserFieldManager
- Вызов: UserFieldManager::showEdit
public function showEdit(&$params, &$result, $component = null)
{
if (!Configuration::isSuccessfullyConverted())
{
return;
}
global $APPLICATION;
$map = [
'DISABLE_LOCAL_EDIT' => false,
'DISABLE_CREATING_FILE_BY_CLOUD' => false,
'USE_TOGGLE_VIEW' => false,
];
foreach (array_keys($map) as $key)
{
$map[$key] = isset($params[$key]) && ($params[$key] === "Y" || $params[$key] === true);
}
$upperParams = array_change_key_case($params, CASE_UPPER);
$APPLICATION->includeComponent(
'bitrix:disk.uf.file',
($upperParams['MOBILE'] ?? null) === 'Y' ? 'mobile' : '.default',
[
'EDIT' => 'Y',
'PARAMS' => $params,
'RESULT' => $result,
'DISABLE_LOCAL_EDIT' => $map['DISABLE_LOCAL_EDIT'],
'DISABLE_CREATING_FILE_BY_CLOUD' => $map['DISABLE_CREATING_FILE_BY_CLOUD'],
'TEMPLATE_VIEW' => FileUserType::getTemplateType($params)
],
$component,
['HIDE_ICONS' => 'Y']
);
}