Class ShipcloudController
Class ShipcloudController
- HttpViewController implements HttpViewControllerInterface
- ┗ AdminHttpViewController implements AdminStatusOnlyInterface
- ┗ ShipcloudController
Methods summary
public
__construct( HttpContextReaderInterface $httpContextReader, HttpResponseProcessorInterface $httpResponseProcessor, ContentViewInterface $contentView )
public
proceed( HttpContextInterface $httpContext )
Override "proceed" method of parent and use it for initialization.
protected
splitStreet( string $street_address )
: array
Heuristically splits up a street address into its component street name and house number
public
actionCreateLabelForm( void )
: HttpControllerResponse
Shows a form for entering data for a label
protected
_prepareSingleFormDataForShipmentRequest( array $postDataArray, boolean $anon_from = false, string $language_code = null )
: KeyValueCollection
Uses POST data from the form returned by actionCreateLabelForm() to populate a KeyValueCollection to be fed to the ShipmentFactory
protected
shortenString( string $subject, integer $maxLength )
: string
shortens a string to a maximum length, appending “…” if shortening required
protected
getOrderLanguageCode( integer $orders_id )
: string
Looks up the language for a given order and returns the 2-letter ISO code
public
actionCreateLabelFormSubmit( void )
: JsonHttpControllerResponse
Processes form submit for forms created by actionCreateLabelForm()
public
actionGetShipmentQuote( void )
: JsonHttpControllerResponse
Uses form data (cf. actionCreateLabelForm()) to retrieve a shipment quote
public
actionGetMultiShipmentQuote( void )
: JsonHttpControllerResponse
Retrieves shipment quotes (bulk retrieval)
public
actionUnconfiguredNote( void )
: HttpControllerResponse
Returns message to be displayed to users if the Shipcloud interface is still unconfigured
public
actionLoadLabelList( void )
: HttpControllerResponse
Outputs a list of labels for an order identified by its orders_id via the corresponding GET parameter
public
actionPickupShipments( void )
: JsonHttpControllerResponse
Requests pickups for a given list of shipments from each of the carriers involved
public
actionLoadMultiLabelList( void )
: HttpControllerResponse
Retrieves list of labels for a set of orders listed in POST[orders_ids].
public
actionCreateMultiLabelForm( void )
: HttpControllerResponse
Shows form for bulk label retrieval
public
actionCreateMultiLabelFormSubmit( void )
: JsonHttpControllerResponse
Processes form data from form returned by actionCreateMultiLabelForm().
protected
_enforceLengthLimits( string $carrier, array $toArray )
: array
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(),
_getServerData(),
_render(),
_validatePageToken(),
getTemplateFile()
Constants summary
Properties summary
Properties inherited from HttpViewController
$assets,
$contentView,
$httpContextReader,
$httpResponseProcessor,
$postDataArray,
$queryParametersArray,
$serverDataArray