source/Application/Model/Article.php
public function getVariantSelections($aFilterIds = null, $sActVariantId = null, $iLimit = 0)
    {
        $iLimit = (int) $iLimit;
        if (!isset($this->_aVariantSelections[$iLimit])) {
            $aVariantSelections = false;
            if ($this->oxarticles__oxvarcount->value) {
                $oVariants = $this->getVariants(false);
                $aVariantSelections = oxNew(\OxidEsales\Eshop\Application\Model\VariantHandler::class)->buildVariantSelections(
                    $this->oxarticles__oxvarname->getRawValue(),
                    $oVariants,
                    $aFilterIds,
                    $sActVariantId,
                    $iLimit
                );

                if (!empty($oVariants) && empty($aVariantSelections['rawselections'])) {
                    $aVariantSelections = false;
                }
            }
            $this->_aVariantSelections[$iLimit] = $aVariantSelections;
        }

        return $this->_aVariantSelections[$iLimit];
    }
public function getVariantSelections($aFilterIds = null, $sActVariantId = null, $iLimit = 0)
    {
        $iLimit = (int) $iLimit;
        if (!isset($this->_aVariantSelections[$iLimit])) {
            $aVariantSelections = false;
            if ($this->oxarticles__oxvarcount->value) {
                $oVariants = $this->getVariants(false);
                $aVariantSelections = oxNew(\OxidEsales\Eshop\Application\Model\VariantHandler::class)->buildVariantSelections(
                    $this->oxarticles__oxvarname->getRawValue(),
                    $oVariants,
                    $aFilterIds,
                    $sActVariantId,
                    $iLimit
                );

                if (!empty($oVariants) && empty($aVariantSelections['rawselections'])) {
                    $aVariantSelections = false;
                }
            }
            $this->_aVariantSelections[$iLimit] = $aVariantSelections;
        }

        return $this->_aVariantSelections[$iLimit];
    }
public function getVariantSelections ( $ aFilterIds = null , $ sActVariantId = null , $ iLimit = 0 ) { $ iLimit = ( int ) $ iLimit ; if ( ! isset ( $ this -> _aVariantSelections [ $ iLimit ] ) ) { $ aVariantSelections = false ; if ( $ this -> oxarticles__oxvarcount -> value ) { $ oVariants = $ this -> getVariants ( false ) ; $ aVariantSelections = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ VariantHandler :: class ) -> buildVariantSelections ( $ this -> oxarticles__oxvarname -> getRawValue ( ) , $ oVariants , $ aFilterIds , $ sActVariantId , $ iLimit ) ; if ( ! empty ( $ oVariants ) && empty ( $ aVariantSelections [ 'rawselections' ] ) ) { $ aVariantSelections = false ; } } $ this -> _aVariantSelections [ $ iLimit ] = $ aVariantSelections ; } return $ this -> _aVariantSelections [ $ iLimit ] ; }
Returns variants selections lists array

@param array  $aFilterIds    ids of active selections [optional]
@param string $sActVariantId active variant id [optional]
@param int    $iLimit        limit variant lists count (if non zero, return limited number of multidimensional variant selections)

@return array
Returns variants selections lists array