• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/marketplace/client.php
  • Класс: BitrixRestMarketplaceClient
  • Вызов: Client::getAvailableUpdate
static function getAvailableUpdate($code = false)
{
	$updates = Option::get("rest", "mp_updates", "");
	$updates = $updates == "" ? array() : unserialize($updates, ['allowed_classes' => false]);

	if($code !== false)
	{
		return array_key_exists($code, $updates) ? $updates[$code] : false;
	}
	else
	{
		return $updates;
	}
}