src/ShopBundle/objects/TShopBasket/TShopBasketArticleCoreList.class.php
public function Refresh()
    {
        $iPt = $this->getItemPointer();
        $this->GoToStart();
        while ($oTmp = $this->Next()) {
            if (false === $oTmp->sqlData || ($oTmp->dAmount <= 0)) {
                $this->RemoveArticle($oTmp);
            } else {
                // refresh stock from db
                $oTmp->RefreshDataFromDatabase();
            }
        }
        if ($iPt > $this->Length()) {
            $iPt = $this->Length();
        }
        $this->setItemPointer($iPt);
        $this->UpdateListData();
    }
public function Refresh()
    {
        $iPt = $this->getItemPointer();
        $this->GoToStart();
        while ($oTmp = $this->Next()) {
            if (false === $oTmp->sqlData || ($oTmp->dAmount <= 0)) {
                $this->RemoveArticle($oTmp);
            } else {
                // refresh stock from db
                $oTmp->RefreshDataFromDatabase();
            }
        }
        if ($iPt > $this->Length()) {
            $iPt = $this->Length();
        }
        $this->setItemPointer($iPt);
        $this->UpdateListData();
    }
public function Refresh ( ) { $ iPt = $ this -> getItemPointer ( ) ; $ this -> GoToStart ( ) ; while ( $ oTmp = $ this -> Next ( ) ) { if ( false === $ oTmp -> sqlData || ( $ oTmp -> dAmount <= 0 ) ) { $ this -> RemoveArticle ( $ oTmp ) ; } else { // refresh stock from db $ oTmp -> RefreshDataFromDatabase ( ) ; } } if ( $ iPt > $ this -> Length ( ) ) { $ iPt = $ this -> Length ( ) ; } $ this -> setItemPointer ( $ iPt ) ; $ this -> UpdateListData ( ) ; }
check list for dead articles.
check list for dead articles .