- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/classes/general/authproviders.php
- Класс: CIntranetAuthProvider
- Вызов: CIntranetAuthProvider::InEmployeeDrawStructure
static function InEmployeeDrawStructure($arStructure, $arSections, $key)
{
$bOpen = $key == 0? true: false;
$bHideItem = $key == 0? true: false;
$arItems = Array();
foreach ($arStructure[$key] as $ID)
{
$arRes = $arSections[$ID];
$arItem = Array(
'TYPE' => 'category',
'ID' => $arRes['ID'],
'NAME' => $arRes['NAME'],
'OPEN' => $ID != 'extranet'? $bOpen: false,
'HIDE_ITEM' => $bHideItem,
'CHECKBOX' => array(
"D#ID#" => GetMessage("authprov_check_d"),
"DR#ID#" => GetMessage("authprov_check_dr"),
),
);
if (isset($arStructure[$ID]) && is_array($arStructure[$ID]))
{
$arItem['CHILD'] = self::InEmployeeDrawStructure($arStructure, $arSections, $ID);
}
$arItems[] = $arItem;
}
return $arItems;
}