method
public
DiscountCache::getDiscountIds()
Сигнатура
public getDiscountIds(array<string|int, mixed> $userGroups) : mixed
Параметры
$userGroups
array<string|int, mixed>
Возвращаемое значение
mixed
Как применяется в DiscountCache
DiscountCache::getDiscountIds() — метод класса \Bitrix\Sale\Discount\RuntimeCache\DiscountCache модуля «Интернет-магазин».
Метод объекта: сначала нужен экземпляр DiscountCache.
use Bitrix\Main\Loader;
use Bitrix\Sale\Discount\RuntimeCache\DiscountCache;
Loader::includeModule('sale');
/** @var DiscountCache $object */
$userGroups = [];
$result = $object->getDiscountIds($userGroups);
// $result: mixedДругие методы DiscountCache
getDiscountEntities()getDiscountModules()getDiscounts()getInstance()Возвращает синглтон DiscountCache.
Исходный файл: source/sale/lib/discount/runtimecache/discountcache.php:43

