protected function getIDListFromCache() : array
    {
        $arElementIDList = parent::getIDListFromCache();

        //Get active product list
        $arActiveProductIDList = ProductListStore::instance()->active->get();
        if (empty($arActiveProductIDList) || empty($arElementIDList)) {
            return [];
        }

        $arResult = [];
        foreach ($arElementIDList as $iProductID => $iBrandID) {
            if (!in_array($iProductID, $arActiveProductIDList)) {
                continue;
            }

            $arResult[] = $iBrandID;
        }

        $arResult = array_unique($arResult);

        return $arResult;
    }
protected function getIDListFromCache() : array
    {
        $arElementIDList = parent::getIDListFromCache();

        //Get active product list
        $arActiveProductIDList = ProductListStore::instance()->active->get();
        if (empty($arActiveProductIDList) || empty($arElementIDList)) {
            return [];
        }

        $arResult = [];
        foreach ($arElementIDList as $iProductID => $iBrandID) {
            if (!in_array($iProductID, $arActiveProductIDList)) {
                continue;
            }

            $arResult[] = $iBrandID;
        }

        $arResult = array_unique($arResult);

        return $arResult;
    }
protected function getIDListFromCache ( ) : array { $ arElementIDList = parent :: getIDListFromCache ( ) ; //Get active product list $ arActiveProductIDList = ProductListStore :: instance ( ) -> active -> get ( ) ; if ( empty ( $ arActiveProductIDList ) || empty ( $ arElementIDList ) ) { return [ ] ; } $ arResult = [ ] ; foreach ( $ arElementIDList as $ iProductID => $ iBrandID ) { if ( ! in_array ( $ iProductID , $ arActiveProductIDList ) ) { continue ; } $ arResult [ ] = $ iBrandID ; } $ arResult = array_unique ( $ arResult ) ; return $ arResult ; }
Get ID list from cache
@return array
Get ID list from cache