1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс ShipmentItem
Граф наследования:ShipmentItem:
CollectableEntity IEntityMarker Entity

Открытые члены

 getQuantity ()
 setQuantity ($quantity)
 setField ($name, $value)
 setFieldNoDemand ($name, $value)
 getReservedQuantity ()
 getBasketId ()
 getBasketCode ()
 getProductId ()
 getBasketItem ()
 onBasketModify ($action, BasketItem $basketItem, $name=null, $oldValue=null, $value=null)
 isChanged ()
 tryReserve ()
 tryUnreserve ()
 getAutoFixErrorsList ()
 tryFixError ($code)
 canMarked ()
 getMarkField ()
 clearChanged ()
 needReserve ()
 getNeedReserveQuantity ()
 toArray ()
 isShippable ()
Открытые члены унаследованные от CollectableEntity
 setCollection (EntityCollection $collection)
 getCollection ()
 setInternalIndex ($index)
 getInternalIndex ()
 isStartField ($isMeaningfulField=false)
 clearStartField ()
 hasMeaningfulField ()
 doFinalAction ($hasMeaningfulField=false)
 setMathActionOnly ($value=false)
 isMathActionOnly ()
 isClone ()
Открытые члены унаследованные от Entity
 __construct ()
 fetch (Main\Text\Converter $converter=null)
Открытые члены унаследованные от IEntityMarker
 getErrorEntity ($value)
 canAutoFixError ($value)

Открытые статические члены

static getAvailableFields ()
static create (ShipmentItemCollection $collection, BasketItem $basketItem=null)
static loadForShipment ($id)
static getRegistryType ()
static getRegistryEntity ()
static getList (array $parameters)
static getEntityEventName ()
Открытые статические члены унаследованные от Entity
static getEntity ()
static getRow (array $parameters)
static clearCache ()
static add (array $data)
static update ($id, array $data)
static delete ($id)
static setCacheItem ($id, array $row)
static getCacheItem ($id, bool $load=false)
static clearCacheItem ($id)
static getTabletClassName ()
static getTabletFieldNames (int $fields=self::FIELDS_MAIN)
static getCachedFieldList ()
static getCallbackRestEvent ()
static clearSettings ()

Защищенные члены

 addInternal (array $data)
 updateInternal ($primary, array $data)
Защищенные члены унаследованные от CollectableEntity
 onFieldModify ($name, $oldValue, $value)
Защищенные члены унаследованные от Entity
 getTablet ()

Защищенные статические члены

static getMeaningfulFields ()
static generateXmlId ()
static getFieldsMap ()
Защищенные статические члены унаследованные от Entity
static prepareForAdd (ORM\Data\AddResult $result, $id, array &$data)
static prepareForUpdate (ORM\Data\UpdateResult $result, $id, array &$data)
static deleteNoDemands ($id)
static normalize (array &$data)
static runAddExternalActions ($id, array $data)
static runUpdateExternalActions ($id, array $data)
static runDeleteExternalActions ($id)
static getDefaultCachedFieldList ()
static prepareFloatValue ($value)
static prepareIntValue ($value)
static prepareStringValue ($value)

Защищенные данные

 $basketItem
 $shipmentItemStoreCollection
Защищенные данные унаследованные от CollectableEntity
 $collection
 $internalIndex = null
 $isClone = false

Статические защищенные данные

static $errors = []

Дополнительные унаследованные члены

Поля данных унаследованные от Entity
const PREFIX_OLD = 'OLD_'
const EVENT_ON_BUILD_CACHED_FIELD_LIST = 'OnBuildCachedFieldList'
const FIELDS_MAIN = 0x0001
const FIELDS_UF = 0x0002
const FIELDS_ALL = self::FIELDS_MAIN|self::FIELDS_UF

Подробное описание

@method ShipmentItemCollection getCollection()

См. определение в файле shipmentitem.php строка 13

Методы

◆ addInternal()

addInternal ( array $data)
protected
Аргументы
array$data
Возвращает
Main\ORM\Data\AddResult
Исключения

Exception

См. определение в файле shipmentitem.php строка 1369

◆ canMarked()

canMarked ( )
Возвращает
bool

Замещает IEntityMarker.

См. определение в файле shipmentitem.php строка 1308

◆ clearChanged()

clearChanged ( )

См. определение в файле shipmentitem.php строка 1321

◆ create()

create ( ShipmentItemCollection $collection,
BasketItem $basketItem = null )
static

Internal method, use ShipmentItemCollection::createItem()

См. определение в файле shipmentitem.php строка 52

◆ generateXmlId()

generateXmlId ( )
staticprotected
Возвращает
string

См. определение в файле shipmentitem.php строка 78

◆ getAutoFixErrorsList()

getAutoFixErrorsList ( )
Возвращает
array

Замещает IEntityMarker.

См. определение в файле shipmentitem.php строка 1293

◆ getAvailableFields()

getAvailableFields ( )
static
Возвращает
array

См. определение в файле shipmentitem.php строка 29

◆ getBasketCode()

getBasketCode ( )
Возвращает
int
Исключения
Main

SystemException

См. определение в файле shipmentitem.php строка 554

◆ getBasketId()

getBasketId ( )
Возвращает
int

См. определение в файле shipmentitem.php строка 545

◆ getBasketItem()

getBasketItem ( )
Возвращает
BasketItem

См. определение в файле shipmentitem.php строка 905

◆ getEntityEventName()

getEntityEventName ( )
static
Возвращает
null|string

См. определение в файле shipmentitem.php строка 1398

◆ getFieldsMap()

getFieldsMap ( )
staticprotected
Возвращает
array

См. определение в файле shipmentitem.php строка 1388

◆ getList()

getList ( array $parameters)
static
Аргументы
array$parameters
Возвращает
Main\DB\Result
Исключения
Main

ArgumentException

Переопределяет метод предка Entity.

См. определение в файле shipmentitem.php строка 1178

◆ getMarkField()

getMarkField ( )
Возвращает
string

Замещает IEntityMarker.

См. определение в файле shipmentitem.php строка 1313

◆ getMeaningfulFields()

getMeaningfulFields ( )
staticprotected
Возвращает
array

См. определение в файле shipmentitem.php строка 37

◆ getNeedReserveQuantity()

getNeedReserveQuantity ( )
Возвращает
int
Исключения
Main

ObjectNotFoundException

См. определение в файле shipmentitem.php строка 1351

◆ getProductId()

getProductId ( )
Возвращает
int
Исключения
Main

SystemException

См. определение в файле shipmentitem.php строка 568

◆ getQuantity()

getQuantity ( )
Возвращает
float

См. определение в файле shipmentitem.php строка 198

◆ getRegistryEntity()

getRegistryEntity ( )
static
Возвращает
string

См. определение в файле shipmentitem.php строка 858

◆ getRegistryType()

getRegistryType ( )
static
Возвращает
string

См. определение в файле shipmentitem.php строка 850

◆ getReservedQuantity()

getReservedQuantity ( )
Возвращает
float

См. определение в файле shipmentitem.php строка 537

◆ isChanged()

isChanged ( )
Возвращает
bool

См. определение в файле shipmentitem.php строка 1069

◆ isShippable()

isShippable ( )

Returns true if basketItem can be shipped

Возвращает
bool

См. определение в файле shipmentitem.php строка 1421

◆ loadForShipment()

loadForShipment ( $id)
static
Аргументы
$id
Возвращает
array
Исключения
Main

ArgumentException

Исключения
Main

ArgumentNullException

См. определение в файле shipmentitem.php строка 814

◆ needReserve()

needReserve ( )
Возвращает
bool
Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

ObjectNotFoundException

См. определение в файле shipmentitem.php строка 1339

◆ onBasketModify()

onBasketModify ( $action,
BasketItem $basketItem,
$name = null,
$oldValue = null,
$value = null )
Аргументы
$action
BasketItem$basketItem
null$name
null$oldValue
null$value
Возвращает
Result
Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

NotSupportedException

Исключения
Main

ObjectNotFoundException

Исключения
Main

SystemException

См. определение в файле shipmentitem.php строка 950

◆ setField()

setField ( $name,
$value )

См. определение в файле shipmentitem.php строка 444

◆ setFieldNoDemand()

setFieldNoDemand ( $name,
$value )

См. определение в файле shipmentitem.php строка 462

◆ setQuantity()

setQuantity ( $quantity)
Аргументы
float$quantity
Возвращает
Result
Исключения
Main

ArgumentOutOfRangeException

Исключения

Exception

См. определение в файле shipmentitem.php строка 439

◆ toArray()

toArray ( )
Возвращает
array

См. определение в файле shipmentitem.php строка 1406

◆ tryFixError()

tryFixError ( $code)
Аргументы
$code
Возвращает
Result

Замещает IEntityMarker.

См. определение в файле shipmentitem.php строка 1303

◆ tryReserve()

tryReserve ( )
Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

NotSupportedException

Исключения

Exception

См. определение в файле shipmentitem.php строка 1085

◆ tryUnreserve()

tryUnreserve ( )
Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

NotSupportedException

Исключения

Exception

См. определение в файле shipmentitem.php строка 1095

◆ updateInternal()

updateInternal ( $primary,
array $data )
protected
Аргументы
$primary
array$data
Возвращает
Main\ORM\Data\UpdateResult
Исключения

Exception

См. определение в файле shipmentitem.php строка 1380

Поля

◆ $basketItem

$basketItem
protected

См. определение в файле shipmentitem.php строка 18

◆ $errors

$errors = []
staticprotected

См. определение в файле shipmentitem.php строка 24

◆ $shipmentItemStoreCollection

$shipmentItemStoreCollection
protected

См. определение в файле shipmentitem.php строка 21


Объявления и описания членов класса находятся в файле: