src/ShopBundle/objects/db/TShopArticleGroupList.class.php
public function &GetMaxVat()
    {
        $iPointer = $this->getItemPointer();
        $oMaxVatItem = null;
        $this->GoToStart();
        while ($oItem = &$this->Next()) {
            $oCurrentVat = $oItem->GetVat();
            if (!is_null($oCurrentVat)) {
                if (is_null($oMaxVatItem)) {
                    $oMaxVatItem = $oCurrentVat;
                } elseif ($oMaxVatItem->fieldVatPercent < $oCurrentVat->fieldVatPercent) {
                    $oMaxVatItem = $oCurrentVat;
                }
            }
        }
        $this->setItemPointer($iPointer);

        return $oMaxVatItem;
    }
public function &GetMaxVat()
    {
        $iPointer = $this->getItemPointer();
        $oMaxVatItem = null;
        $this->GoToStart();
        while ($oItem = &$this->Next()) {
            $oCurrentVat = $oItem->GetVat();
            if (!is_null($oCurrentVat)) {
                if (is_null($oMaxVatItem)) {
                    $oMaxVatItem = $oCurrentVat;
                } elseif ($oMaxVatItem->fieldVatPercent < $oCurrentVat->fieldVatPercent) {
                    $oMaxVatItem = $oCurrentVat;
                }
            }
        }
        $this->setItemPointer($iPointer);

        return $oMaxVatItem;
    }
public function & GetMaxVat ( ) { $ iPointer = $ this -> getItemPointer ( ) ; $ oMaxVatItem = null ; $ this -> GoToStart ( ) ; while ( $ oItem = & $ this -> Next ( ) ) { $ oCurrentVat = $ oItem -> GetVat ( ) ; if ( ! is_null ( $ oCurrentVat ) ) { if ( is_null ( $ oMaxVatItem ) ) { $ oMaxVatItem = $ oCurrentVat ; } elseif ( $ oMaxVatItem -> fieldVatPercent < $ oCurrentVat -> fieldVatPercent ) { $ oMaxVatItem = $ oCurrentVat ; } } } $ this -> setItemPointer ( $ iPointer ) ; return $ oMaxVatItem ; }
returns the max vat from the group list.

@return TdbShopVat
returns the max vat from the group list .