ZenMagick 0.9.11


zenmagick.store.shared.services.checkout\ZMShippingProviders
services\checkout\ZMShippingProviders.php at line 33

Class ZMShippingProviders

ZMObject
└─ZMShippingProviders

public class ZMShippingProviders
extends ZMObject

General access class for shipping provider.

Author:
DerManoMann

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

__construct(array properties)

Create new instance.

ZMShippingProvider

getShippingProviderForId(string shippingProviderId, boolean configured)

Get a shipping provider for the given id.

array

getShippingProviders(boolean configured)

Get a list of shipping providers.

array

getShippingProvidersForAddress(ZMShoppingCart shoppingCart, ZMAddress address)

Get a list of all shipping providers for the given address.

static void

instance()

Get instance.

Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set

Method Detail

services\checkout\ZMShippingProviders.php at line 40

__construct

public void __construct(array properties)

Create new instance.

Parameters:
properties - Optional properties; default is an empty array;

services\checkout\ZMShippingProviders.php at line 67

getShippingProviderForId

public ZMShippingProvider getShippingProviderForId(string shippingProviderId, boolean configured)

Get a shipping provider for the given id.

Parameters:
shippingProviderId - The shipping provider id.
configured - If true, return only configured provider; default is false.
Returns:
A shipping provider or null.

services\checkout\ZMShippingProviders.php at line 92

getShippingProviders

public array getShippingProviders(boolean configured)

Get a list of shipping providers.

Parameters:
configured - If true, return only configured provider; default is true.
Returns:
List of ZMShippingProvider instances.

services\checkout\ZMShippingProviders.php at line 166

getShippingProvidersForAddress

public array getShippingProvidersForAddress(ZMShoppingCart shoppingCart, ZMAddress address)

Get a list of all shipping providers for the given address.

Parameters:
shoppingCart - The shopping cart.
address - The address.
Returns:
List of ZMShippingProvider instances.

services\checkout\ZMShippingProviders.php at line 55

instance

public static void instance()

Get instance.


ZenMagick 0.9.11