src/ShopBundle/objects/db/TShopVatList.class.php
public function GetMaxItem()
    {
        /** @var $oMaxItem null|TdbShopVat */
        $oMaxItem = null;
        $iPt = $this->getItemPointer();
        $this->GoToStart();
        while ($oItem = &$this->Next()) {
            if ($oItem->getTotalValue() > 0 && (is_null($oMaxItem) || $oItem->getTotalValue() > $oMaxItem->getTotalValue())) {
                $oMaxItem = $oItem;
            }
        }
        $this->setItemPointer($iPt);

        return $oMaxItem;
    }
public function GetMaxItem()
    {
        /** @var $oMaxItem null|TdbShopVat */
        $oMaxItem = null;
        $iPt = $this->getItemPointer();
        $this->GoToStart();
        while ($oItem = &$this->Next()) {
            if ($oItem->getTotalValue() > 0 && (is_null($oMaxItem) || $oItem->getTotalValue() > $oMaxItem->getTotalValue())) {
                $oMaxItem = $oItem;
            }
        }
        $this->setItemPointer($iPt);

        return $oMaxItem;
    }
public function GetMaxItem ( ) { /** @var $oMaxItem null|TdbShopVat */ $ oMaxItem = null ; $ iPt = $ this -> getItemPointer ( ) ; $ this -> GoToStart ( ) ; while ( $ oItem = & $ this -> Next ( ) ) { if ( $ oItem -> getTotalValue ( ) > 0 && ( is_null ( $ oMaxItem ) || $ oItem -> getTotalValue ( ) > $ oMaxItem -> getTotalValue ( ) ) ) { $ oMaxItem = $ oItem ; } } $ this -> setItemPointer ( $ iPt ) ; return $ oMaxItem ; }
return largest item in list.

@return TdbShopVat
return largest item in list .