source/Application/Model/BasketReservation.php
protected function _loadReservations($sBasketId)
    {
        $oReservations = oxNew(\OxidEsales\Eshop\Application\Model\UserBasket::class);
        $aWhere = ['oxuserbaskets.oxuserid' => $sBasketId, 'oxuserbaskets.oxtitle' => 'reservations'];

        // creating if it does not exist
        if (!$oReservations->assignRecord($oReservations->buildSelectString($aWhere))) {
            $oReservations->oxuserbaskets__oxtitle = new \OxidEsales\Eshop\Core\Field('reservations');
            $oReservations->oxuserbaskets__oxuserid = new \OxidEsales\Eshop\Core\Field($sBasketId);
            // marking basket as new (it will not be saved in DB yet)
            $oReservations->setIsNewBasket();
        }

        return $oReservations;
    }
protected function _loadReservations($sBasketId)
    {
        $oReservations = oxNew(\OxidEsales\Eshop\Application\Model\UserBasket::class);
        $aWhere = ['oxuserbaskets.oxuserid' => $sBasketId, 'oxuserbaskets.oxtitle' => 'reservations'];

        // creating if it does not exist
        if (!$oReservations->assignRecord($oReservations->buildSelectString($aWhere))) {
            $oReservations->oxuserbaskets__oxtitle = new \OxidEsales\Eshop\Core\Field('reservations');
            $oReservations->oxuserbaskets__oxuserid = new \OxidEsales\Eshop\Core\Field($sBasketId);
            // marking basket as new (it will not be saved in DB yet)
            $oReservations->setIsNewBasket();
        }

        return $oReservations;
    }
protected function _loadReservations ( $ sBasketId ) { $ oReservations = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ UserBasket :: class ) ; $ aWhere = [ 'oxuserbaskets.oxuserid' => $ sBasketId , 'oxuserbaskets.oxtitle' => 'reservations' ] ; // creating if it does not exist if ( ! $ oReservations -> assignRecord ( $ oReservations -> buildSelectString ( $ aWhere ) ) ) { $ oReservations -> oxuserbaskets__oxtitle = new \ OxidEsales \ Eshop \ Core \ Field ( 'reservations' ) ; $ oReservations -> oxuserbaskets__oxuserid = new \ OxidEsales \ Eshop \ Core \ Field ( $ sBasketId ) ; // marking basket as new (it will not be saved in DB yet) $ oReservations -> setIsNewBasket ( ) ; } return $ oReservations ; }
load reservation or create new reservation user basket

@param string $sBasketId basket id for this user basket

@return \OxidEsales\EshopCommunity\Application\Model\UserBasket
load reservation or create new reservation user basket