ShipmentItem extends CollectableEntity implements IEntityMarker
Class CollectableEntity
Table of Contents
Interfaces
- IEntityMarker
- Bitrix Framework
Methods
- canAutoFixError() : bool
- canMarked() : bool
- checkMarkingCodeOnDeducted() : Result
- clearStartField() : bool
- delete() : mixed
- Deletes shipment item
- doFinalAction() : Result
- getAllFields() : array<string|int, mixed>
- getAutoFixErrorsList() : array<string|int, mixed>
- getAvailableFields() : array<string|int, mixed>
- getAvailableFieldsMap() : array<string|int, mixed>|null
- getBasketCode() : int
- getBasketId() : int
- getBasketItem() : BasketItem
- getClassName() : string
- getCollection() : ShipmentItemCollection
- getCustomizableFields() : array<string|int, mixed>
- getErrorEntity() : string
- getField() : string|null
- getFieldsDescription() : array<string|int, mixed>
- getFieldValues() : array<string|int, mixed>
- getId() : int
- getInternalIndex() : null|int
- getList() : Result
- getMarkField() : string
- getNeedReserveQuantity() : int
- getProductId() : int
- getQuantity() : float
- getRegistryEntity() : string
- getRegistryType() : string
- getReservedQuantity() : float
- getShipmentItemStoreCollection() : ShipmentItemStoreCollection|null
- hasMeaningfulField() : bool
- isChanged() : bool
- isClone() : bool
- isMarkedFieldCustom() : bool
- isMathActionOnly() : bool
- isShippable() : bool
- Returns true if basketItem can be shipped
- isStartField() : bool
- loadForShipment() : array<string|int, mixed>
- markFieldCustom() : mixed
- needReserve() : bool
- onBasketModify() : Result
- setCollection() : mixed
- setField() : Result
- setFieldNoDemand() : mixed
- setFields() : Result
- setMathActionOnly() : bool
- setQuantity() : Result
- toArray() : array<string|int, mixed>
- tryFixError() : Result
- tryReserve() : mixed
- tryUnreserve() : mixed
- unmarkFieldCustom() : mixed
- verify() : Result
Methods
canAutoFixError()
public
canAutoFixError(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolcanMarked()
public
canMarked() : bool
Return values
boolcheckMarkingCodeOnDeducted()
public
checkMarkingCodeOnDeducted() : Result
Tags
Return values
ResultclearStartField()
public
clearStartField() : bool
Return values
booldelete()
Deletes shipment item
public
delete() : mixed
Tags
doFinalAction()
public
doFinalAction([mixed $hasMeaningfulField = false ]) : Result
Parameters
- $hasMeaningfulField : mixed = false
Return values
ResultgetAllFields()
public
static getAllFields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getAutoFixErrorsList()
public
getAutoFixErrorsList() : array<string|int, mixed>
Return values
array<string|int, mixed>getAvailableFields()
public
static getAvailableFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getAvailableFieldsMap()
public
static getAvailableFieldsMap() : array<string|int, mixed>|null
Tags
Return values
array<string|int, mixed>|nullgetBasketCode()
public
getBasketCode() : int
Tags
Return values
intgetBasketId()
public
getBasketId() : int
Return values
intgetBasketItem()
public
getBasketItem() : BasketItem
Return values
BasketItemgetClassName()
public
static getClassName() : string
Return values
stringgetCollection()
public
getCollection() : ShipmentItemCollection
Return values
ShipmentItemCollectiongetCustomizableFields()
public
static getCustomizableFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getErrorEntity()
public
getErrorEntity(mixed $value) : string
Parameters
- $value : mixed
Return values
stringgetField()
public
getField(mixed $name) : string|null
Parameters
- $name : mixed
Return values
string|nullgetFieldsDescription()
public
static getFieldsDescription() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getFieldValues()
public
getFieldValues() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
public
getId() : int
Return values
intgetInternalIndex()
public
getInternalIndex() : null|int
Return values
null|intgetList()
public
static getList(array<string|int, mixed> $parameters) : Result
Parameters
- $parameters : array<string|int, mixed>
Tags
Return values
ResultgetMarkField()
public
getMarkField() : string
Return values
stringgetNeedReserveQuantity()
public
getNeedReserveQuantity() : int
Tags
Return values
intgetProductId()
public
getProductId() : int
Tags
Return values
intgetQuantity()
public
getQuantity() : float
Return values
floatgetRegistryEntity()
public
static getRegistryEntity() : string
Return values
stringgetRegistryType()
public
static getRegistryType() : string
Return values
stringgetReservedQuantity()
public
getReservedQuantity() : float
Return values
floatgetShipmentItemStoreCollection()
public
getShipmentItemStoreCollection() : ShipmentItemStoreCollection|null
Return values
ShipmentItemStoreCollection|nullhasMeaningfulField()
public
hasMeaningfulField() : bool
Return values
boolisChanged()
public
isChanged() : bool
Return values
boolisClone()
public
isClone() : bool
Return values
boolisMarkedFieldCustom()
public
isMarkedFieldCustom(string $name) : bool
Parameters
- $name : string
Return values
boolisMathActionOnly()
public
isMathActionOnly() : bool
Return values
boolisShippable()
Returns true if basketItem can be shipped
public
isShippable() : bool
Return values
boolisStartField()
public
isStartField([bool $isMeaningfulField = false ]) : bool
Parameters
- $isMeaningfulField : bool = false
Return values
boolloadForShipment()
public
static loadForShipment(mixed $id) : array<string|int, mixed>
Parameters
- $id : mixed
Tags
Return values
array<string|int, mixed>markFieldCustom()
public
markFieldCustom(string $name) : mixed
Parameters
- $name : string
Tags
needReserve()
public
needReserve() : bool
Tags
Return values
boolonBasketModify()
public
onBasketModify(mixed $action, BasketItem $basketItem[, null $name = null ][, null $oldValue = null ][, null $value = null ]) : Result
Parameters
- $action : mixed
- $basketItem : BasketItem
- $name : null = null
- $oldValue : null = null
- $value : null = null
Tags
Return values
ResultsetCollection()
public
setCollection(EntityCollection $collection) : mixed
Parameters
- $collection : EntityCollection
setField()
public
setField(mixed $name, mixed $value) : Result
Parameters
- $name : mixed
- $value : mixed
Return values
ResultsetFieldNoDemand()
public
setFieldNoDemand(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
setFields()
public
setFields(array<string|int, mixed> $values) : Result
Parameters
- $values : array<string|int, mixed>
Tags
Return values
ResultsetMathActionOnly()
public
setMathActionOnly([bool|false $value = false ]) : bool
Parameters
- $value : bool|false = false
Return values
boolsetQuantity()
public
setQuantity(float $quantity) : Result
Parameters
- $quantity : float
Tags
Return values
ResulttoArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>tryFixError()
public
tryFixError(mixed $code) : Result
Parameters
- $code : mixed
Return values
ResulttryReserve()
public
tryReserve() : mixed
Tags
tryUnreserve()
public
tryUnreserve() : mixed
Tags
unmarkFieldCustom()
public
unmarkFieldCustom(string $name) : mixed
Parameters
- $name : string
Tags
verify()
public
verify() : Result