source/Application/Model/Order.php
protected function _addOrderArticlesToBasket($oBasket, $aOrderArticles)
    {
        // if no order articles, return empty basket
        if (count($aOrderArticles) > 0) {
            //adding order articles to basket
            foreach ($aOrderArticles as $oOrderArticle) {
                $oBasket->addOrderArticleToBasket($oOrderArticle);
            }
        }
    }
protected function _addOrderArticlesToBasket($oBasket, $aOrderArticles)
    {
        // if no order articles, return empty basket
        if (count($aOrderArticles) > 0) {
            //adding order articles to basket
            foreach ($aOrderArticles as $oOrderArticle) {
                $oBasket->addOrderArticleToBasket($oOrderArticle);
            }
        }
    }
protected function _addOrderArticlesToBasket ( $ oBasket , $ aOrderArticles ) { // if no order articles, return empty basket if ( count ( $ aOrderArticles ) > 0 ) { //adding order articles to basket foreach ( $ aOrderArticles as $ oOrderArticle ) { $ oBasket -> addOrderArticleToBasket ( $ oOrderArticle ) ; } } }
Adds order articles back to virtual basket. Needed for recalculating order.

@param \OxidEsales\Eshop\Application\Model\Basket $oBasket        basket object
@param array                                      $aOrderArticles order articles
Adds order articles back to virtual basket . Needed for recalculating order .