• Модуль: salescenter
  • Путь к файлу: ~/bitrix/modules/salescenter/lib/integration/restmanager.php
  • Класс: BitrixSalesCenterIntegrationRestManager
  • Вызов: RestManager::getActionboxItems
public function getActionboxItems($placement, $userLang = null): array
{
	$userLang = $userLang ?? LANGUAGE_ID;

	$cacheId = "actionbox_items_{$placement}_{$userLang}";
	$cachePath = "/salescenter/saleshub/actionboxitems/{$placement}/";
	$cache = MainDataCache::createInstance();

	if ($cache->initCache(self::ACTION_BOX_CACHE_TTL, $cacheId, $cachePath))
	{
		$actionboxItems = $cache->GetVars();
	}
	else
	{
		$actionboxItems = RestMarketplaceMarketplaceActions::getItems($placement, $userLang);
		$cache->startDataCache();
		$cache->endDataCache($actionboxItems);
	}

	return $actionboxItems;
}