ShipmentCollection extends EntityCollection
Class ShipmentCollection
Table of Contents
Methods
- allowDelivery() : Result
- Resolution fact shipment to shipment collection
- calculateDelivery() : Result
- canAutoFixError() : string
- clearCollection() : mixed
- clearStartField() : bool
- count() : int
- Count elements of an object
- createItem() : mixed
- Create new shipment
- current() : mixed
- Return the current element
- disallowDelivery() : Result
- Prohibition upon shipment to shipment collection
- doFinalAction() : Result
- getBasePriceDelivery() : float
- getBasketItemDistributedQuantity() : float|int
- getBasketItemShippedQuantity() : float|int
- getErrorEntity() : string
- getIndexById() : bool|int|null
- getItemById() : CollectableEntity|null
- getItemByIndex() : CollectableEntity|null
- getItemByShipmentCode() : Shipment|null
- getIterator() : ArrayIterator
- getList() : Result
- getNotSystemItems() : CollectionFilterIterator
- getOrder() : Order
- Getting entity of the order
- getPriceDelivery() : float
- getRegistryType() : string
- getSystemShipment() : Shipment
- Getting the system shipment
- hasAllowDelivery() : bool
- hasMeaningfulField() : bool
- hasShipped() : bool
- Is the entire collection shipped
- isAllowDelivery() : bool
- Is the entire collection allowed for shipment
- isAnyItemAdded() : bool
- isAnyItemDeleted() : bool
- isChanged() : bool
- isClone() : bool
- isEmpty() : bool
- Checks if collection is empty.
- isEmptySystemShipment() : bool
- Is the a system shipped empty
- isExistBasketItem() : bool
- isExistsSystemShipment() : bool
- Check whether there is a system collection of shipping
- isMarked() : bool
- Is the entire collection of marked
- isMathActionOnly() : bool
- isReserved() : bool
- Is the entire collection reserved
- isShipped() : bool
- Is the entire collection shipped
- isStartField() : bool
- key() : mixed
- Return the key of the current element
- load() : ShipmentCollection
- Loaded from the database collection shipments Order
- next() : mixed
- Move forward to next element
- offsetExists() : bool
- Whether a offset exists
- offsetGet() : mixed
- Offset to retrieve
- offsetSet() : void
- Offset to set
- offsetUnset() : void
- Offset to unset
- onBasketModify() : Result
- onItemModify() : Result
- Processing changes the essence of the shipment fields
- onOrderModify() : Result
- refreshData() : Result
- resetData() : mixed
- rewind() : mixed
- Rewind the Iterator to the first element
- save() : Result
- Saving data collection
- setMathActionOnly() : bool
- setOrder() : mixed
- The attachment order to the collection
- toArray() : mixed
- tryReserve() : Result
- Trying to reserve the contents of the shipment collection
- tryUnreserve() : Result
- Trying to reserve the contents of the shipment collection
- updateReservedFlag() : Result
- valid() : mixed
- Checks if current position is valid
- verify() : Result
Methods
allowDelivery()
Resolution fact shipment to shipment collection
public
allowDelivery() : Result
Return values
ResultcalculateDelivery()
public
calculateDelivery() : Result
Return values
ResultcanAutoFixError()
public
canAutoFixError(mixed $value) : string
Parameters
- $value : mixed
Return values
stringclearCollection()
public
clearCollection() : mixed
Tags
clearStartField()
public
clearStartField() : bool
Return values
boolcount()
Count elements of an object
public
count() : int
Return values
intcreateItem()
Create new shipment
public
createItem([Base|null $delivery = null ]) : mixed
Parameters
- $delivery : Base|null = null
Tags
current()
Return the current element
public
current() : mixed
disallowDelivery()
Prohibition upon shipment to shipment collection
public
disallowDelivery() : Result
Return values
ResultdoFinalAction()
public
doFinalAction([bool $hasMeaningfulField = false ]) : Result
Parameters
- $hasMeaningfulField : bool = false
Return values
ResultgetBasePriceDelivery()
public
getBasePriceDelivery() : float
Return values
floatgetBasketItemDistributedQuantity()
public
getBasketItemDistributedQuantity(BasketItem $basketItem) : float|int
Parameters
- $basketItem : BasketItem
Tags
Return values
float|intgetBasketItemShippedQuantity()
public
getBasketItemShippedQuantity(BasketItem $basketItem) : float|int
Parameters
- $basketItem : BasketItem
Tags
Return values
float|intgetErrorEntity()
public
getErrorEntity(mixed $value) : string
Parameters
- $value : mixed
Return values
stringgetIndexById()
public
getIndexById(mixed $id) : bool|int|null
Parameters
- $id : mixed
Tags
Return values
bool|int|nullgetItemById()
public
getItemById(mixed $id) : CollectableEntity|null
Parameters
- $id : mixed
Tags
Return values
CollectableEntity|nullgetItemByIndex()
public
getItemByIndex(mixed $index) : CollectableEntity|null
Parameters
- $index : mixed
Tags
Return values
CollectableEntity|nullgetItemByShipmentCode()
public
getItemByShipmentCode(mixed $itemCode) : Shipment|null
Parameters
- $itemCode : mixed
Return values
Shipment|nullgetIterator()
public
getIterator() : ArrayIterator
Return values
ArrayIteratorgetList()
public
static getList([array<string|int, mixed> $parameters = array() ]) : Result
Parameters
- $parameters : array<string|int, mixed> = array()
Return values
ResultgetNotSystemItems()
public
getNotSystemItems() : CollectionFilterIterator
Return values
CollectionFilterIteratorgetOrder()
Getting entity of the order
public
getOrder() : Order
Return values
OrdergetPriceDelivery()
public
getPriceDelivery() : float
Return values
floatgetRegistryType()
public
static getRegistryType() : string
Return values
stringgetSystemShipment()
Getting the system shipment
public
getSystemShipment() : Shipment
Return values
ShipmenthasAllowDelivery()
public
hasAllowDelivery() : bool
Return values
boolhasMeaningfulField()
public
hasMeaningfulField() : bool
Return values
boolhasShipped()
Is the entire collection shipped
public
hasShipped() : bool
Return values
boolisAllowDelivery()
Is the entire collection allowed for shipment
public
isAllowDelivery() : bool
Return values
boolisAnyItemAdded()
public
isAnyItemAdded() : bool
Return values
boolisAnyItemDeleted()
public
isAnyItemDeleted() : bool
Return values
boolisChanged()
public
isChanged() : bool
Return values
boolisClone()
public
isClone() : bool
Return values
boolisEmpty()
Checks if collection is empty.
public
isEmpty() : bool
Return values
boolisEmptySystemShipment()
Is the a system shipped empty
public
isEmptySystemShipment() : bool
Return values
boolisExistBasketItem()
public
isExistBasketItem(BasketItem $basketItem[, bool|false $includeSystemShipment = false ]) : bool
Parameters
- $basketItem : BasketItem
- $includeSystemShipment : bool|false = false
Tags
Return values
boolisExistsSystemShipment()
Check whether there is a system collection of shipping
public
isExistsSystemShipment() : bool
Return values
boolisMarked()
Is the entire collection of marked
public
isMarked() : bool
Return values
boolisMathActionOnly()
public
isMathActionOnly() : bool
Return values
boolisReserved()
Is the entire collection reserved
public
isReserved() : bool
Return values
boolisShipped()
Is the entire collection shipped
public
isShipped() : bool
Return values
boolisStartField()
public
isStartField([bool $isMeaningfulField = false ]) : bool
Parameters
- $isMeaningfulField : bool = false
Return values
boolkey()
Return the key of the current element
public
key() : mixed
load()
Loaded from the database collection shipments Order
public
static load(Order $order) : ShipmentCollection
Parameters
- $order : Order
Return values
ShipmentCollectionnext()
Move forward to next element
public
next() : mixed
offsetExists()
Whether a offset exists
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
Offset to retrieve
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
offsetSet()
Offset to set
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
Offset to unset
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
onBasketModify()
public
onBasketModify(mixed $action, BasketItemBase $basketItem[, null $name = null ][, null $oldValue = null ][, null $value = null ]) : Result
Parameters
- $action : mixed
- $basketItem : BasketItemBase
- $name : null = null
- $oldValue : null = null
- $value : null = null
Tags
Return values
ResultonItemModify()
Processing changes the essence of the shipment fields
public
onItemModify(CollectableEntity $item[, null $name = null ][, null $oldValue = null ][, null $value = null ]) : Result
Parameters
- $item : CollectableEntity
- $name : null = null
- $oldValue : null = null
- $value : null = null
Tags
Return values
ResultonOrderModify()
public
onOrderModify(mixed $name, mixed $oldValue, mixed $value) : Result
Parameters
- $name : mixed
- $oldValue : mixed
- $value : mixed
Tags
Return values
ResultrefreshData()
public
refreshData() : Result
Tags
Return values
ResultresetData()
public
resetData() : mixed
rewind()
Rewind the Iterator to the first element
public
rewind() : mixed
save()
Saving data collection
public
save() : Result
Tags
Return values
ResultsetMathActionOnly()
public
setMathActionOnly([bool|false $value = false ]) : bool
Parameters
- $value : bool|false = false
Return values
boolsetOrder()
The attachment order to the collection
public
setOrder(OrderBase $order) : mixed
Parameters
- $order : OrderBase
toArray()
public
toArray() : mixed
tryReserve()
Trying to reserve the contents of the shipment collection
public
tryReserve() : Result
Return values
ResulttryUnreserve()
Trying to reserve the contents of the shipment collection
public
tryUnreserve() : Result
Tags
Return values
ResultupdateReservedFlag()
public
static updateReservedFlag(ShipmentCollection $collection) : Result
Parameters
- $collection : ShipmentCollection
Return values
Resultvalid()
Checks if current position is valid
public
valid() : mixed
verify()
public
verify() : Result