src/ShopBundle/objects/TShopBasket/TShopBasketArticleCoreList.class.php
public function &GetListMatchingVat(TdbShopVat &$oVat)
    {
        $oArticles = new TShopBasketArticleList();
        /** @var $oArticles TShopBasketArticleList */
        $iPointer = $this->getItemPointer();
        $this->GoToStart();
        while ($oItem = &$this->Next()) {
            $oItemVat = $oItem->GetVat();
            if (!is_null($oItemVat) && $oItemVat->id == $oVat->id) {
                $oArticles->AddItem($oItem);
            }
        }

        $this->setItemPointer($iPointer);

        return $oArticles;
    }
public function &GetListMatchingVat(TdbShopVat &$oVat)
    {
        $oArticles = new TShopBasketArticleList();
        /** @var $oArticles TShopBasketArticleList */
        $iPointer = $this->getItemPointer();
        $this->GoToStart();
        while ($oItem = &$this->Next()) {
            $oItemVat = $oItem->GetVat();
            if (!is_null($oItemVat) && $oItemVat->id == $oVat->id) {
                $oArticles->AddItem($oItem);
            }
        }

        $this->setItemPointer($iPointer);

        return $oArticles;
    }
public function & GetListMatchingVat ( TdbShopVat & $ oVat ) { $ oArticles = new TShopBasketArticleList ( ) ; /** @var $oArticles TShopBasketArticleList */ $ iPointer = $ this -> getItemPointer ( ) ; $ this -> GoToStart ( ) ; while ( $ oItem = & $ this -> Next ( ) ) { $ oItemVat = $ oItem -> GetVat ( ) ; if ( ! is_null ( $ oItemVat ) && $ oItemVat -> id == $ oVat -> id ) { $ oArticles -> AddItem ( $ oItem ) ; } } $ this -> setItemPointer ( $ iPointer ) ; return $ oArticles ; }
return list matchin the vat group.

@param TdbShopVat $oVat

@return TShopBasketArticleList
return list matchin the vat group .