src/ShopBundle/objects/TShopBasket/TShopBasketArticleCoreList.class.php
protected function SetShippingTypeForArticle(TShopBasketArticle &$oItem, TdbShopShippingType &$oShippingType)
    {
        $iCurrentPos = $this->getItemPointer();
        $this->GoToStart();
        $bFound = false;
        while (!$bFound && ($oExistingItem = &$this->Next())) {
            /** @var $oExistingItem TShopBasketArticle */
            if ($oExistingItem->IsSameAs($oItem)) {
                $bFound = true;
            }
        }
        if ($bFound) {
            $oExistingItem->SetActingShippingType($oShippingType);
        }
        $this->setItemPointer($iCurrentPos);
    }
protected function SetShippingTypeForArticle(TShopBasketArticle &$oItem, TdbShopShippingType &$oShippingType)
    {
        $iCurrentPos = $this->getItemPointer();
        $this->GoToStart();
        $bFound = false;
        while (!$bFound && ($oExistingItem = &$this->Next())) {
            /** @var $oExistingItem TShopBasketArticle */
            if ($oExistingItem->IsSameAs($oItem)) {
                $bFound = true;
            }
        }
        if ($bFound) {
            $oExistingItem->SetActingShippingType($oShippingType);
        }
        $this->setItemPointer($iCurrentPos);
    }
protected function SetShippingTypeForArticle ( TShopBasketArticle & $ oItem , TdbShopShippingType & $ oShippingType ) { $ iCurrentPos = $ this -> getItemPointer ( ) ; $ this -> GoToStart ( ) ; $ bFound = false ; while ( ! $ bFound && ( $ oExistingItem = & $ this -> Next ( ) ) ) { /** @var $oExistingItem TShopBasketArticle */ if ( $ oExistingItem -> IsSameAs ( $ oItem ) ) { $ bFound = true ; } } if ( $ bFound ) { $ oExistingItem -> SetActingShippingType ( $ oShippingType ) ; } $ this -> setItemPointer ( $ iCurrentPos ) ; }
marks the item in the list with the shipping type.

@param TShopBasketArticle  $oItem
@param TdbShopShippingType $oShippingType
marks the item in the list with the shipping type .