OrderShipment
Table of Contents
Properties
-
$shipmentObjJs
: mixed
Methods
-
buildCheckHtml()
: string
-
calculateDeliveryPrice()
: CalculationResult
-
checkProfilesRestriction()
: mixed
-
createNewShipmentButton()
: mixed
-
getDeliveryServiceList()
: mixed
-
getDeliveryServiceProfiles()
: mixed
-
getEdit()
: string
-
getEditTemplate()
: mixed
-
getExtraServiceEditControl()
: mixed
-
getImgDeliveryServiceList()
: mixed
-
getMap()
: mixed
-
getProfileEditControl()
: string
-
getScripts()
: mixed
-
getStoresList()
: mixed
-
getTemplate()
: string
-
getView()
: string
-
getViewTemplate()
: string
-
getWeightKoef()
: mixed
-
getWeightUnit()
: mixed
-
initJsShipment()
: mixed
-
makeDeliveryServiceTree()
: array<string|int, mixed>
-
modifyData()
: mixed
-
registerShipmentFieldsUpdaters()
: mixed
-
setBackUrl()
: mixed
-
setShipmentByDefaultValues()
: mixed
-
updateData()
: Result
$shipmentObjJs
public
static mixed
$shipmentObjJs
= null
buildCheckHtml()
public
static buildCheckHtml(mixed $checkList) : string
Parameters
-
$checkList
: mixed
-
calculateDeliveryPrice()
public
static calculateDeliveryPrice(Shipment $shipment) : CalculationResult
Parameters
-
$shipment
: Shipment
-
-
throws
-
ArgumentNullException
checkProfilesRestriction()
public
static checkProfilesRestriction(mixed $profiles, Shipment $shipment) : mixed
Parameters
-
$profiles
: mixed
-
-
$shipment
: Shipment
-
public
static createNewShipmentButton([mixed $params = [] ]) : mixed
Parameters
-
$params
: mixed
= []
-
getDeliveryServiceList()
public
static getDeliveryServiceList([mixed $shipment = null ]) : mixed
Parameters
-
$shipment
: mixed
= null
-
getDeliveryServiceProfiles()
public
static getDeliveryServiceProfiles(mixed $parentId) : mixed
Parameters
-
$parentId
: mixed
-
getEdit()
public
static getEdit(mixed $shipment[, int $index = 0 ][, string $formType = '' ][, array<string|int, mixed> $dataForRecovery = array() ]) : string
Parameters
-
$shipment
: mixed
-
-
$index
: int
= 0
-
-
$formType
: string
= ''
-
-
$dataForRecovery
: array<string|int, mixed>
= array()
-
getEditTemplate()
public
static getEditTemplate(mixed $data, mixed $index, mixed $formType, mixed $post) : mixed
Parameters
-
$data
: mixed
-
-
$index
: mixed
-
-
$formType
: mixed
-
-
$post
: mixed
-
public
static getExtraServiceEditControl(mixed $extraService, mixed $index[, mixed $view = false ][, Shipment $shipment = null ]) : mixed
Parameters
-
$extraService
: mixed
-
-
$index
: mixed
-
-
$view
: mixed
= false
-
-
$shipment
: Shipment
= null
-
getImgDeliveryServiceList()
public
static getImgDeliveryServiceList(mixed $items) : mixed
Parameters
-
$items
: mixed
-
getMap()
public
static getMap(mixed $deliveryId, mixed $index[, mixed $storeId = 0 ][, mixed $formType = "" ]) : mixed
Parameters
-
$deliveryId
: mixed
-
-
$index
: mixed
-
-
$storeId
: mixed
= 0
-
-
$formType
: mixed
= ""
-
getProfileEditControl()
public
static getProfileEditControl(mixed $profiles[, mixed $index = 1 ][, int $selectedProfileId = 0 ]) : string
Parameters
-
$profiles
: mixed
-
-
$index
: mixed
= 1
-
-
$selectedProfileId
: int
= 0
-
getScripts()
public
static getScripts() : mixed
getStoresList()
public
static getStoresList(mixed $deliveryId, mixed $storeId) : mixed
Parameters
-
$deliveryId
: mixed
-
-
$storeId
: mixed
-
getTemplate()
public
static getTemplate(mixed $deliveries[, string $selected = '' ]) : string
Parameters
-
$deliveries
: mixed
-
-
$selected
: string
= ''
-
getView()
public
static getView(Shipment $shipment[, int $index = 0 ][, string $formType = '' ]) : string
Parameters
-
$shipment
: Shipment
-
-
$index
: int
= 0
-
-
$formType
: string
= ''
-
getViewTemplate()
public
static getViewTemplate(mixed $data, mixed $index, mixed $formType) : string
Parameters
-
$data
: mixed
-
-
$index
: mixed
-
-
$formType
: mixed
-
-
throws
-
ArgumentNullException
getWeightKoef()
public
static getWeightKoef(mixed $siteId) : mixed
Parameters
-
$siteId
: mixed
-
getWeightUnit()
public
static getWeightUnit(mixed $siteId) : mixed
Parameters
-
$siteId
: mixed
-
initJsShipment()
public
static initJsShipment(mixed $params) : mixed
Parameters
-
$params
: mixed
-
makeDeliveryServiceTree()
public
static makeDeliveryServiceTree(mixed $items) : array<string|int, mixed>
Parameters
-
$items
: mixed
-
Return values
array<string|int, mixed>
modifyData()
public
static modifyData(mixed $data) : mixed
Parameters
-
$data
: mixed
-
registerShipmentFieldsUpdaters()
public
static registerShipmentFieldsUpdaters() : mixed
setBackUrl()
public
static setBackUrl(mixed $backUrl) : mixed
Parameters
-
$backUrl
: mixed
-
setShipmentByDefaultValues()
public
static setShipmentByDefaultValues(Shipment &$shipment) : mixed
Parameters
-
$shipment
: Shipment
-
-
throws
-
NotSupportedException
updateData()
public
static updateData(Order &$order, array<string|int, mixed> $shipments) : Result
Parameters
-
$order
: Order
-
-
$shipments
: array<string|int, mixed>
-
-
throws
-
SystemException