source/Application/Model/DeliverySetList.php
public function getDeliverySetList($oUser, $sCountryId, $sDelSet = null)
    {
        $this->_getList($oUser, $sCountryId);

        // if there is already chosen delivery set we must start checking from it
        $aList = $this->_aArray;
        if ($sDelSet && isset($aList[$sDelSet])) {
            //set it as first element
            $oDelSet = $aList[$sDelSet];
            unset($aList[$sDelSet]);

            $aList = array_merge([$sDelSet => $oDelSet], $aList);
        }

        return $aList;
    }
public function getDeliverySetList($oUser, $sCountryId, $sDelSet = null)
    {
        $this->_getList($oUser, $sCountryId);

        // if there is already chosen delivery set we must start checking from it
        $aList = $this->_aArray;
        if ($sDelSet && isset($aList[$sDelSet])) {
            //set it as first element
            $oDelSet = $aList[$sDelSet];
            unset($aList[$sDelSet]);

            $aList = array_merge([$sDelSet => $oDelSet], $aList);
        }

        return $aList;
    }
public function getDeliverySetList ( $ oUser , $ sCountryId , $ sDelSet = null ) { $ this -> _getList ( $ oUser , $ sCountryId ) ; // if there is already chosen delivery set we must start checking from it $ aList = $ this -> _aArray ; if ( $ sDelSet && isset ( $ aList [ $ sDelSet ] ) ) { //set it as first element $ oDelSet = $ aList [ $ sDelSet ] ; unset ( $ aList [ $ sDelSet ] ) ; $ aList = array_merge ( [ $ sDelSet => $ oDelSet ] , $ aList ) ; } return $ aList ; }
Creates current state delivery set list

@param \OxidEsales\Eshop\Application\Model\User $oUser      user object
@param string                                   $sCountryId user country id
@param string                                   $sDelSet    preferred delivery set ID (optional)

@return array
Creates current state delivery set list