ZenMagick 0.9.8


org.zenmagick.store.model.checkout.ZMShippingProvider
\store\model\checkout\ZMShippingProvider.php at line 37

Class ZMShippingProvider

ZMObject
└─ZMShippingProvider

public class ZMShippingProvider
extends ZMObject

Shipping provider.

A shipping provider may offer 1-n shipping methods, depending on the address, etc.

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

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

ZMShippingProvider(array zenQuote)

Create a new shipping provider.

Method Summary
array

getError()

Get the errors.

string

getIcon()

Get the icon.

int

getId()

Get the shipping provider id.

string

getName()

Get the shipping provider name.

array

getShippingMethods()

Get the available shipping methods.

float

getTaxRate()

Get the shipping tax rate.

boolean

hasError()

Checks if errors are logged for this provider.

boolean

hasIcon()

Checks if an icon exists for this provider.

boolean

hasShippingMethods()

Checks if shipping methods are available from this provider.

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

Constructor Detail

\store\model\checkout\ZMShippingProvider.php at line 47

ZMShippingProvider

public ZMShippingProvider(array zenQuote)

Create a new shipping provider.

Parameters:
zenQuote - The zen-cart shipping quote infos for this provider.

Method Detail

\store\model\checkout\ZMShippingProvider.php at line 120

getError

public array getError()

Get the errors.

Returns:
List of error messages.

\store\model\checkout\ZMShippingProvider.php at line 106

getIcon

public string getIcon()

Get the icon.

Returns:
The icon.

\store\model\checkout\ZMShippingProvider.php at line 74

getId

public int getId()

Get the shipping provider id.

Returns:
The shipping provider id.

\store\model\checkout\ZMShippingProvider.php at line 81

getName

public string getName()

Get the shipping provider name.

Returns:
The shipping provider name.

\store\model\checkout\ZMShippingProvider.php at line 134

getShippingMethods

public array getShippingMethods()

Get the available shipping methods.

Returns:
A list of ZMShippingMethod instances.

\store\model\checkout\ZMShippingProvider.php at line 88

getTaxRate

public float getTaxRate()

Get the shipping tax rate.

Returns:
The shipping tax rate.

\store\model\checkout\ZMShippingProvider.php at line 113

hasError

public boolean hasError()

Checks if errors are logged for this provider.

Returns:
true if errors exist, false if not.

\store\model\checkout\ZMShippingProvider.php at line 99

hasIcon

public boolean hasIcon()

Checks if an icon exists for this provider.

Returns:
true if an icon, false if not.

\store\model\checkout\ZMShippingProvider.php at line 127

hasShippingMethods

public boolean hasShippingMethods()

Checks if shipping methods are available from this provider.

Returns:
true if shipping methods exist, false if not.

ZenMagick 0.9.8