- Модуль: mobileapp
- Путь к файлу: ~/bitrix/modules/mobileapp/classes/general/push.php
- Класс: CAdminMobilePush
- Вызов: CAdminMobilePush::getOptions
static function getOptions($path = "")
{
global $USER;
$arOptions = array();
foreach (GetModuleEvents("mobileapp", "OnBeforeAdminMobilePushOptsLoad", true) as $arHandler)
ExecuteModuleEventEx($arHandler, array(
$USER->GetID(),
$path,
&$arOptions
));
if(empty($arOptions))
{
$arResult = CUserOptions::GetOption('mobileapp', 'push_options', array());
$arPath = explode("/", $path);
if(is_array($arPath))
{
foreach ($arPath as $idx)
{
if(isset($arResult[$idx]))
$arResult = $arResult[$idx];
else
break;
}
}
}
else
{
$arResult = $arOptions;
}
return $arResult;
}