• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/marketplace/immune.php
  • Класс: BitrixRestMarketplaceImmune
  • Вызов: Immune::getList
static function getList() : array
{
	if (!is_array(static::$immuneAppList))
	{
		static::$immuneAppList = [];
		try
		{
			$option = Option::get(static::MODULE_ID, static::OPTION_APP_IMMUNE_LIST, null);

			if ($option === null)
			{
				$option = static::getExternal();
			}

			if (!empty($option))
			{
				static::$immuneAppList = Json::decode($option);
			}
			else
			{
				static::$immuneAppList = [];
			}
		}
		catch (Exception $exception)
		{
			static::$immuneAppList = [];
		}
	}

	return static::$immuneAppList;
}