src/ShopBundle/objects/db/TShopShippingGroup.class.php
public function &GetValidPaymentMethods($bRefresh = false)
    {
        if (is_null($this->oValidPaymentMethods) || $bRefresh) {
            $this->oValidPaymentMethods = &TdbShopPaymentMethodList::GetAvailableMethods($this->id);
            $this->oValidPaymentMethods->bAllowItemCache = true;
        }
        if (!is_null($this->oValidPaymentMethods)) {
            $this->oValidPaymentMethods->GoToStart();
        }

        return $this->oValidPaymentMethods;
    }
public function &GetValidPaymentMethods($bRefresh = false)
    {
        if (is_null($this->oValidPaymentMethods) || $bRefresh) {
            $this->oValidPaymentMethods = &TdbShopPaymentMethodList::GetAvailableMethods($this->id);
            $this->oValidPaymentMethods->bAllowItemCache = true;
        }
        if (!is_null($this->oValidPaymentMethods)) {
            $this->oValidPaymentMethods->GoToStart();
        }

        return $this->oValidPaymentMethods;
    }
public function & GetValidPaymentMethods ( $ bRefresh = false ) { if ( is_null ( $ this -> oValidPaymentMethods ) || $ bRefresh ) { $ this -> oValidPaymentMethods = & TdbShopPaymentMethodList :: GetAvailableMethods ( $ this -> id ) ; $ this -> oValidPaymentMethods -> bAllowItemCache = true ; } if ( ! is_null ( $ this -> oValidPaymentMethods ) ) { $ this -> oValidPaymentMethods -> GoToStart ( ) ; } return $ this -> oValidPaymentMethods ; }
return list of valid payment methods.

@param bool $bRefresh - set to true to force a regeneration of the list

@return TdbShopPaymentMethodList
return list of valid payment methods .