ZenMagick 0.9.8


org.zenmagick.store.model.checkout.ZMShippingMethod
\store\model\checkout\ZMShippingMethod.php at line 34

Class ZMShippingMethod

ZMObject
└─ZMShippingMethod

public class ZMShippingMethod
extends ZMObject

Shipping method.

Author:
DerManoMann
Version:
$Id: ZMShippingMethod.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMShippingMethod(ZMShippingProvider provider, array zenMethod)

Create new shipping method.

Method Summary
float

getCost()

Get the shipping cost.

int

getId()

Get the shipping method id.

string

getName()

Get the shipping method name.

ZMShippingProvider

getProvider()

Get the shipping provider.

string

getShippingId()

Get the shipping id.

void

setTaxRate(ZMTaxRate taxRate)

Set the tax rate.

Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\checkout\ZMShippingMethod.php at line 46

ZMShippingMethod

public ZMShippingMethod(ZMShippingProvider provider, array zenMethod)

Create new shipping method.

Parameters:
provider - The shipping provider for this method.
zenMethod - The zen-cart method infos.

Method Detail

\store\model\checkout\ZMShippingMethod.php at line 80

getCost

public float getCost()

Get the shipping cost.

Returns:
The shipping cost.

\store\model\checkout\ZMShippingMethod.php at line 66

getId

public int getId()

Get the shipping method id.

Returns:
The shipping method id.

\store\model\checkout\ZMShippingMethod.php at line 73

getName

public string getName()

Get the shipping method name.

Returns:
The shipping method name.

\store\model\checkout\ZMShippingMethod.php at line 87

getProvider

public ZMShippingProvider getProvider()

Get the shipping provider.

Returns:
The shipping provider.

\store\model\checkout\ZMShippingMethod.php at line 101

getShippingId

public string getShippingId()

Get the shipping id.

Returns:
The shipping id as used by the shopping cart.

\store\model\checkout\ZMShippingMethod.php at line 94

setTaxRate

public void setTaxRate(ZMTaxRate taxRate)

Set the tax rate.

Parameters:
taxRate - The tax rate.

ZenMagick 0.9.8