- Модуль: iblock
- Путь к файлу: ~/bitrix/modules/iblock/classes/general/section_property.php
- Класс: CIBlockSectionPropertyLink
- Вызов: CIBlockSectionPropertyLink::getDisplayTypes
function getDisplayTypes(property_type, user_type)
{
if (
property_type == "S"
&& user_type == "directory"
)
{
result = {
"F": "'.GetMessageJS("SP_DISPLAY_TYPE_F").'",
"G": "'.GetMessageJS("SP_DISPLAY_TYPE_G").'",
"H": "'.GetMessageJS("SP_DISPLAY_TYPE_H").'",
"K": "'.GetMessageJS("SP_DISPLAY_TYPE_K").'",
"P": "'.GetMessageJS("SP_DISPLAY_TYPE_P").'",
"R": "'.GetMessageJS("SP_DISPLAY_TYPE_R").'"
};
}
else if (
property_type == "S"
|| property_type == "L"
|| property_type == "E"
|| property_type == "G"
)
{
result = {
"F": "'.GetMessageJS("SP_DISPLAY_TYPE_F").'",
"K": "'.GetMessageJS("SP_DISPLAY_TYPE_K").'",
"P": "'.GetMessageJS("SP_DISPLAY_TYPE_P").'"
};
}
else if (
property_type == "N"
)
{
result = {
"A": "'.GetMessageJS("SP_DISPLAY_TYPE_A").'",
"B": "'.GetMessageJS("SP_DISPLAY_TYPE_B").'"
};
}
else
{
result = false;
}
return result;
}