ZenMagick 0.9.10


zenmagick.store.shared.model.checkout\ZMShippingProviderOld
model\checkout\ZMShippingProviderOld.php at line 36

Class ZMShippingProviderOld

ZMObject
└─ZMShippingProviderOld

public class ZMShippingProviderOld
extends ZMObject

Old zencart shipping provider wrapper.

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

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(array zenQuote)

Create a new shipping provider.

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
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

model\checkout\ZMShippingProviderOld.php at line 46

__construct

public void __construct(array zenQuote)

Create a new shipping provider.

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

model\checkout\ZMShippingProviderOld.php at line 119

getError

public array getError()

Get the errors.

Returns:
List of error messages.

model\checkout\ZMShippingProviderOld.php at line 105

getIcon

public string getIcon()

Get the icon.

Returns:
The icon.

model\checkout\ZMShippingProviderOld.php at line 73

getId

public int getId()

Get the shipping provider id.

Returns:
The shipping provider id.

model\checkout\ZMShippingProviderOld.php at line 80

getName

public string getName()

Get the shipping provider name.

Returns:
The shipping provider name.

model\checkout\ZMShippingProviderOld.php at line 133

getShippingMethods

public array getShippingMethods()

Get the available shipping methods.

Returns:
A list of ZMShippingMethod instances.

model\checkout\ZMShippingProviderOld.php at line 87

getTaxRate

public float getTaxRate()

Get the shipping tax rate.

Returns:
The shipping tax rate.

model\checkout\ZMShippingProviderOld.php at line 112

hasError

public boolean hasError()

Checks if errors are logged for this provider.

Returns:
true if errors exist, false if not.

model\checkout\ZMShippingProviderOld.php at line 98

hasIcon

public boolean hasIcon()

Checks if an icon exists for this provider.

Returns:
true if an icon, false if not.

model\checkout\ZMShippingProviderOld.php at line 126

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.10