• Модуль: mobileapp
  • Путь к файлу: ~/bitrix/modules/mobileapp/classes/general/push.php
  • Класс: CAdminMobilePush
  • Вызов: CAdminMobilePush::saveOptions
static function saveOptions($path = "", $arOpts)
{
	$result = true;
	$opts = self::getOptions();
	$arTmp = &$opts;
	$arPath = explode("/", $path);

	if(is_array($arPath))
	{
		foreach ($arPath as $pathItem)
		{
			if(!isset($arTmp[$pathItem]) || !is_array($arTmp[$pathItem]))
				$arTmp[$pathItem] = array();

			$arTmp = &$arTmp[$pathItem];
		}

		$arTmp = $arOpts;
	}

	return CUserOptions::SetOption('mobileapp', 'push_options', $opts);
}