Shipping Company ABC

Abstract base class for shipping companies.

Class Methods

The following methods can be invoked on instances of this class.

getIcon()

Returns an icon for the third party application

getTrackingURL()

Returns the URL to track a consignment

getTrackingURLSupportsInjection()

Returns whether the tracking URL supports injection of the consignment number

getSupportsShipmentPush()

Returns whether this company can push consignments to an API

getCompanyConfigurationForm()

Returns the form for configuring this provider

getMethodConfigurationForm()

Returns the form for configuring this provider

getPricingConfigurationForm()

Returns the form for configuring the pricing

getTopLinks()

Returns the top menu links for this provider

getConfiguration()

Returns the shipping company's configuration

calculateAdjustment(mixed arrShippingConfiguration, mixed fAmount)

Makes the adjustments to the API result

pricingRequiresDimensions()

Returns whether this pricing method requires dimensions to be entered for each product

pricingRequiresWeight()

Returns whether this pricing method requires weights to be entered for each product

calculate(array arrConfiguration)

Calculates the cost of shipping

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class