source/Application/Model/VariantHandler.php
protected function _buildVariantSelectionsList($aVarSelects, $aSelections)
    {
        // creating selection lists
        foreach ($aVarSelects as $iKey => $sLabel) {
            $aVariantSelections[$iKey] = oxNew(\OxidEsales\Eshop\Application\Model\VariantSelectList::class, $sLabel, $iKey);
        }

        // building variant selections
        foreach ($aSelections as $aLineSelections) {
            foreach ($aLineSelections as $oPos => $aLine) {
                $aVariantSelections[$oPos]->addVariant($aLine['name'], $aLine['hash'], $aLine['disabled'], $aLine['active']);
            }
        }

        return $aVariantSelections;
    }
protected function _buildVariantSelectionsList($aVarSelects, $aSelections)
    {
        // creating selection lists
        foreach ($aVarSelects as $iKey => $sLabel) {
            $aVariantSelections[$iKey] = oxNew(\OxidEsales\Eshop\Application\Model\VariantSelectList::class, $sLabel, $iKey);
        }

        // building variant selections
        foreach ($aSelections as $aLineSelections) {
            foreach ($aLineSelections as $oPos => $aLine) {
                $aVariantSelections[$oPos]->addVariant($aLine['name'], $aLine['hash'], $aLine['disabled'], $aLine['active']);
            }
        }

        return $aVariantSelections;
    }
protected function _buildVariantSelectionsList ( $ aVarSelects , $ aSelections ) { // creating selection lists foreach ( $ aVarSelects as $ iKey => $ sLabel ) { $ aVariantSelections [ $ iKey ] = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ VariantSelectList :: class , $ sLabel , $ iKey ) ; } // building variant selections foreach ( $ aSelections as $ aLineSelections ) { foreach ( $ aLineSelections as $ oPos => $ aLine ) { $ aVariantSelections [ $ oPos ] -> addVariant ( $ aLine [ 'name' ] , $ aLine [ 'hash' ] , $ aLine [ 'disabled' ] , $ aLine [ 'active' ] ) ; } } return $ aVariantSelections ; }
Builds variant selections list - array containing oxVariantSelectList

@param array $aVarSelects variant selection titles
@param array $aSelections variant selections

@return array
Builds variant selections list - array containing oxVariantSelectList