Class ShipcloudController
Class ShipcloudController
- HttpViewController implements HttpViewControllerInterface
- AdminHttpViewController implements AdminStatusOnlyInterface
- ShipcloudController
Methods summary
public
|
#
__construct(
|
protected
|
|
public
|
#
proceed(
Override "proceed" method of parent and use it for initialization. |
public
|
|
protected
array
|
#
splitStreet( string $street_address )
Heuristically splits up a street address into its component street name and house number |
protected
float
|
|
public
|
|
protected
|
#
_prepareSingleFormDataForShipmentRequest( array $postDataArray, boolean $anon_from = false, string $language_code = null )
Uses POST data from the form returned by actionCreateLabelForm() to populate a KeyValueCollection to be fed to the ShipmentFactory |
protected
string
|
#
getOrderLanguageCode( integer $orders_id )
Looks up the language for a given order and returns the 2-letter ISO code |
public
|
|
public
|
#
actionGetShipmentQuote( )
Uses form data (cf. actionCreateLabelForm()) to retrieve a shipment quote |
public
|
|
public
|
#
actionUnconfiguredNote( )
Returns message to be displayed to users if the Shipcloud interface is still unconfigured |
public
|
#
actionLoadLabelList( )
Outputs a list of labels for an order identified by its orders_id via the corresponding GET parameter |
public
|
|
public
|
#
actionPickupShipments( )
Requests pickups for a given list of shipments from each of the carriers involved |
public
|
#
actionLoadMultiLabelList( )
Retrieves list of labels for a set of orders listed in POST[orders_ids]. |
public
|
|
protected
|
|
public
|
#
actionCreateMultiLabelFormSubmit( )
Processes form data from form returned by actionCreateMultiLabelForm(). |
protected
array
|
#
_enforceLengthLimits( string $carrier, array $toArray )
modifies an array containing a delivery address to suit carrier-specific field lengths |
Methods inherited from AdminHttpViewController
Methods inherited from HttpViewController
_callActionMethod()
,
_getPostData()
,
_getPostDataCollection()
,
_getQueryParameter()
,
_getQueryParametersCollection()
,
_render()
,
_validatePageToken()
Properties summary
protected
ShipcloudText
|
$shipcloudText
wrapper for text phrases |
|
protected
ShipcloudConfigurationStorage
|
$shipcloudConfigurationStorage
configuration storage |
|
protected
ShipcloudLogger
|
$shipcloudLogger
logger |
Properties inherited from HttpViewController
$assets
,
$contentView
,
$httpContextReader
,
$httpResponseProcessor
,
$postDataArray
,
$queryParametersArray