1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Order
Граф наследования:Order:
OrderBase IShipmentOrder IPaymentOrder IBusinessValueProvider Entity

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

 getPrintedChecks ()
 addPrintedCheck ($check)
 onTradeBindingCollectionModify ($action, TradeBindingEntity $entity, $name=null, $oldValue=null, $value=null)
 resetData ($select=array('PRICE'))
 getBasePrice ()
 setBasket (BasketBase $basket)
 getShipmentCollection ()
 getTradeBindingCollection ()
 getPaymentCollection ()
 isShipped ()
 onBeforeBasketItemDelete (BasketItem $basketItem)
 onBasketModify ($action, BasketItemBase $basketItem, $name=null, $oldValue=null, $value=null)
 onBeforeBasketRefresh ()
 applyDiscount (array $data)
 verify ()
 getBusinessValueProviderInstance ($mapping)
 isChanged ()
 clearChanged ()
 getDeliverySystemId ()
 getPaymentSystemId ()
 toArray ()
Открытые члены унаследованные от OrderBase
 getInternalId ()
 isSaveRunning ()
 appendBasket (BasketBase $basket)
 getBasket ()
 setField ($name, $value)
 setFieldNoDemand ($name, $value)
 getField ($name)
 initField ($name, $value)
 getPropertyCollection ()
 onPropertyValueCollectionModify ($action, EntityPropertyValue $property, $name=null, $oldValue=null, $value=null)
 getPersonTypeId ()
 setPersonTypeId ($personTypeId)
 getPrice ()
 getSumPaid ()
 getDeliveryPrice ()
 getDeliveryLocation ()
 getTaxPrice ()
 getTaxValue ()
 getDiscountPrice ()
 getCurrency ()
 getUserId ()
 getSiteId ()
 isUsedVat ()
 getVatRate ()
 getVatSum ()
 isMarked ()
 refreshVat ()
 isExternal ()
 setVatSum ($price)
 setVatDelivery ($price)
 getDateInsert ()
 getCalculateType ()
 onAfterBasketRefresh ()
 getTax ()
 isNew ()
 resetTax ()
 isClone ()
 isPaid ()
 isAllowDelivery ()
 isDeducted ()
 isCanceled ()
 getTaxLocation ()
 isMathActionOnly ()
 hasMeaningfulField ()
 clearStartField ()
 isStartField ($isMeaningfulField=false)
 setMathActionOnly ($value=false)
 getDiscount ()
Открытые члены унаследованные от Entity
 __construct ()
 fetch (Main\Text\Converter $converter=null)
Открытые члены унаследованные от IShipmentOrder
 loadShipmentCollection ()
Открытые члены унаследованные от IPaymentOrder
 loadPaymentCollection ()
Открытые члены унаследованные от IBusinessValueProvider
 getPersonTypeId ()

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

static getRegistryType ()
static getUfId ()
static lock ($id)
static unlock ($id)
static getLockedStatus ($id)
static getList (array $parameters=array())
Открытые статические члены унаследованные от OrderBase
static getAvailableFields ()
static getRegistryEntity ()
static create ($siteId, $userId=null, $currency=null)
static load ($id)
static loadByAccountNumber ($value)
static getSettableFields ()
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 ()

Поля данных

const SALE_ORDER_LOCK_STATUS_RED = 'red'
const SALE_ORDER_LOCK_STATUS_GREEN = 'green'
const SALE_ORDER_LOCK_STATUS_YELLOW = 'yellow'
Поля данных унаследованные от OrderBase
const SALE_ORDER_CALC_TYPE_NEW = 'N'
const SALE_ORDER_CALC_TYPE_CHANGE = 'C'
const SALE_ORDER_CALC_TYPE_REFRESH = 'R'
Поля данных унаследованные от 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

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

 loadPrintedChecks ()
 onFieldModify ($name, $oldValue, $value)
 onOrderModify ($name, $oldValue, $value)
 getStatusOnPaid ()
 getStatusOnPartialPaid ()
 refreshInternal ()
 calculatePrice ()
 onAfterSave ()
 addInternal (array $data)
Защищенные члены унаследованные от OrderBase
 __construct (array $fields=array())
 checkValueBeforeSet ($name, $value)
 normalizeValue ($name, $value)
 isPriceField (string $name)
 resetVat ()
 calculateVat ()
 isCalculatedField ($field)
 callDelayedEvents ()
 completeSaving ($needUpdateDateInsert)
 add ()
 update ()
 callEventOnSaleOrderSaved ()
 saveEntities ()
 setAccountNumber ()
 onBeforeSave ()
Защищенные члены унаследованные от Entity
 getTablet ()

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

static getFieldsMap ()
static updateInternal ($primary, array $data)
static deleteInternal ($primary)
Защищенные статические члены унаследованные от OrderBase
static getCalculatedFields ()
static getMeaningfulFields ()
static generateXmlId ()
static loadFromDb (array $parameters)
static isExists ($id)
static deleteExternalEntities ($orderId)
Защищенные статические члены унаследованные от 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)

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

 $shipmentCollection
 $paymentCollection
 $tradeBindingCollection
 $printedChecks = array()
Защищенные данные унаследованные от OrderBase
 $calculatedFields = null
 $basketCollection
 $propertyCollection
 $discount = null
 $tax = null
 $internalId = 0
 $isNew = true
 $isSaveExecuting = false
 $isClone = false
 $isOnlyMathAction = null
 $isMeaningfulField = false
 $isStartField = null
 $calculateType = null

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

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

Методы

◆ addInternal()

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

Exception

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

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

◆ addPrintedCheck()

addPrintedCheck ( $check)

Add printed check to order

Аргументы
$check

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

◆ applyDiscount()

applyDiscount ( array $data)

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

◆ calculatePrice()

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

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

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

◆ clearChanged()

clearChanged ( )

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

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

◆ deleteInternal()

deleteInternal ( $primary)
staticprotected
Аргументы
$primary
Возвращает
Entity\DeleteResult
Исключения

Exception

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

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

◆ getBasePrice()

getBasePrice ( )

Returns order price without discounts.

Возвращает
float

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

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

◆ getBusinessValueProviderInstance()

getBusinessValueProviderInstance ( $mapping)
Аргументы
$mapping
Возвращает
Order|null|string

Замещает IBusinessValueProvider.

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

◆ getDeliverySystemId()

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

ObjectNotFoundException

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

◆ getFieldsMap()

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

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

◆ getList()

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

ArgumentException

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

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

◆ getLockedStatus()

getLockedStatus ( $id)
static

Return order locked status.

Аргументы
int$idOrder id.
Возвращает
Result
Исключения
Main

ArgumentException

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

◆ getPaymentCollection()

getPaymentCollection ( )

Return payment collection

Возвращает
PaymentCollection

Замещает IPaymentOrder.

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

◆ getPaymentSystemId()

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

ObjectNotFoundException

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

◆ getPrintedChecks()

getPrintedChecks ( )

Return printed check list

Возвращает
array
Исключения
Main

ArgumentException

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

◆ getRegistryType()

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

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

◆ getShipmentCollection()

getShipmentCollection ( )

Return shipment collection

Возвращает
ShipmentCollection
Исключения
Main

ArgumentException

Исключения
Main

ArgumentNullException

Замещает IShipmentOrder.

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

◆ getStatusOnPaid()

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

ArgumentException

Исключения
Main

SystemException

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

◆ getStatusOnPartialPaid()

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

ArgumentException

Исключения
Main

SystemException

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

◆ getTradeBindingCollection()

getTradeBindingCollection ( )

Return trade binding collection

Возвращает
TradeBindingCollection
Исключения
Main

ArgumentException

Исключения
Main

ArgumentTypeException

Исключения
Main

SystemException

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

◆ getUfId()

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

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

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

◆ isChanged()

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

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

◆ isShipped()

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

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

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

◆ loadPrintedChecks()

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

ArgumentException

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

◆ lock()

lock ( $id)
static

Lock order.

Аргументы
int$idOrder id.
Возвращает
Entity\UpdateResult|Result
Исключения

Exception

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

◆ onAfterSave()

onAfterSave ( )
protected
Возвращает
Result

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

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

◆ onBasketModify()

onBasketModify ( $action,
BasketItemBase $basketItem,
$name = null,
$oldValue = null,
$value = null )

Modify basket.

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

ArgumentException

Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

NotImplementedException

Исключения
Main

NotSupportedException

Исключения
Main

ObjectNotFoundException

Исключения
Main

SystemException

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

◆ onBeforeBasketItemDelete()

onBeforeBasketItemDelete ( BasketItem $basketItem)

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

◆ onBeforeBasketRefresh()

onBeforeBasketRefresh ( )
Возвращает
Result

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

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

◆ onFieldModify()

onFieldModify ( $name,
$oldValue,
$value )
protected
Аргументы
string$name
float | int | mixed | string$oldValue
float | int | mixed | string$value
Возвращает
Result
Исключения
Main

ArgumentException

Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

NotImplementedException

Исключения
Main

NotSupportedException

Исключения
Main

ObjectNotFoundException

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

◆ onOrderModify()

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

NotSupportedException

Исключения
Main

ObjectNotFoundException

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

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

◆ onTradeBindingCollectionModify()

onTradeBindingCollectionModify ( $action,
TradeBindingEntity $entity,
$name = null,
$oldValue = null,
$value = null )

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

◆ refreshInternal()

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

ArgumentException

Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

NotImplementedException

Исключения
Main

NotSupportedException

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

◆ resetData()

resetData ( $select = array('PRICE'))
Аргументы
array$select
Исключения
Main

ArgumentException

Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

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

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

◆ setBasket()

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

ArgumentException

Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

NotSupportedException

Исключения
Main

ObjectNotFoundException

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

◆ toArray()

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

ArgumentException

Исключения
Main

SystemException

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

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

◆ unlock()

unlock ( $id)
static

Unlock order.

Аргументы
int$idOrder id.
Возвращает
Entity\UpdateResult|Result
Исключения
Main

ArgumentNullException

Исключения

Exception

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

◆ updateInternal()

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

Exception

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

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

◆ verify()

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

ArgumentException

Исключения
Main

ArgumentNullException

Исключения
Main

ArgumentOutOfRangeException

Исключения
Main

NotSupportedException

Исключения
Main

ObjectNotFoundException

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

Поля

◆ $paymentCollection

$paymentCollection
protected

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

◆ $printedChecks

$printedChecks = array()
protected

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

◆ $shipmentCollection

$shipmentCollection
protected

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

◆ $tradeBindingCollection

$tradeBindingCollection
protected

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

◆ SALE_ORDER_LOCK_STATUS_GREEN

const SALE_ORDER_LOCK_STATUS_GREEN = 'green'

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

◆ SALE_ORDER_LOCK_STATUS_RED

const SALE_ORDER_LOCK_STATUS_RED = 'red'

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

◆ SALE_ORDER_LOCK_STATUS_YELLOW

const SALE_ORDER_LOCK_STATUS_YELLOW = 'yellow'

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


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