- Class name: OrderCore
- Parent class: ObjectModel
- Source: classes/order/Order.php line 28
- $_historyCache
- $_taxCalculationMethod
- $carrier_tax_rate
- $conversion_rate
- $date_add
- $date_upd
- $delivery_date
- $delivery_number
- $fieldsRequired
- $fieldsValidate
- $gift
- $gift_message
- $id_address_delivery
- $id_address_invoice
- $id_carrier
- $id_cart
- $id_currency
- $id_customer
- $id_group_shop
- $id_lang
- $id_shop
- $id_warehouse
- $identifier
- $invoice_date
- $invoice_number
- $module
- $payment
- $recyclable
- $reference
- $secure_key
- $shipping_number
- $table
- $tables
- $total_discounts
- $total_discounts_tax_excl
- $total_discounts_tax_incl
- $total_paid
- $total_paid_real
- $total_paid_tax_excl
- $total_paid_tax_incl
- $total_products
- $total_products_wt
- $total_shipping
- $total_shipping_tax_excl
- $total_shipping_tax_incl
- $total_wrapping
- $total_wrapping_tax_excl
- $total_wrapping_tax_incl
- $valid
- $webserviceParameters
- $_cache
- $fieldsRequiredDatabase
- $fieldsRequiredLang
- $fieldsSize
- $fieldsSizeLang
- $fieldsValidateLang
- $id
- $image_dir
- $image_format
- $langMultiShop
- __construct
- _deleteProduct
- add
- addCartRule
- addDiscount
- addFieldsRequiredDatabase
- addOrderPayment
- addWs
- associateTo
- clearCache
- delete
- deleteAssociations
- deleteCustomization
- deleteImage
- deleteProduct
- deleteSelection
- displayFieldName
- duplicateShops
- existsInDatabase
- generateReference
- getByDelivery
- getCartIdStatic
- getCartRules
- getCurrentState
- getCurrentStateFull
- getCustomerNbOrders
- getCustomerOrders
- getDiscounts
- getDiscountsCustomer
- getDocuments
- getEcoTaxTaxesBreakdown
- getFields
- getFieldsRequiredDatabase
- getFieldsValidateLang
- getFirstMessage
- getHistory
- getIdentifier
- getInvoice
- getInvoicesCollection
- getLastInvoiceNumber
- getNextOrderId
- getNumberOfDays
- getOrderByCartId
- getOrderDetailList
- getOrderIdsByStatus
- getOrderPaymentCollection
- getOrdersIdByDate
- getOrdersIdInvoiceByDate
- getOrdersWithInformations
- getPreviousOrderId
- getProductTaxesBreakdown
- getProducts
- getProductsDetail
- getReturn
- getShipping
- getShippingTaxesBreakdown
- getTaxCalculationMethod
- getTaxesAverageUsed
- getTotalPaid
- getTotalProductsWithTaxes
- getTotalProductsWithoutTaxes
- getTotalWeight
- getTranslationsFields
- getValidationRules
- getVirtualProducts
- getWebserviceObjectList
- getWebserviceParameters
- getWrappingTaxesBreakdown
- getWsOrderRows
- hasBeenDelivered
- hasBeenPaid
- hasBeenShipped
- hydrate
- hydrateCollection
- isAssociatedAtGuest
- isAssociatedToGroupShop
- isAssociatedToShop
- isCurrentlyUsed
- isInPreparation
- isLangMultishop
- isReturnable
- isVirtual
- makeTranslationFields
- orderContainProduct
- printPDFIcons
- save
- setCurrentState
- setDelivery
- setInvoice
- setProductCurrentStock
- setProductCustomizedDatas
- setProductImageInformations
- setProductPrices
- toggleStatus
- update
- updateShippingCost
- useOneAfterAnotherTaxComputationMethod
- validateControler
- validateController
- validateFields
- validateFieldsLang
protected mixed $_historyCache = array()
- Visibility: protected
- This property is static.
- Source: classes/order/Order.php line 233.
protected mixed $_taxCalculationMethod = PS_TAX_EXC
- Visibility: protected
- Source: classes/order/Order.php line 231.
public float $carrier_tax_rate
- Visibility: public
- Source: classes/order/Order.php line 113.
public float $conversion_rate
- Visibility: public
- Source: classes/order/Order.php line 65.
public string $date_add
- Visibility: public
- Source: classes/order/Order.php line 140.
public string $date_upd
- Visibility: public
- Source: classes/order/Order.php line 143.
public string $delivery_date
- Visibility: public
- Source: classes/order/Order.php line 134.
public integer $delivery_number
- Visibility: public
- Source: classes/order/Order.php line 128.
protected mixed $fieldsRequired = array('conversion_rate', 'id_address_delivery', 'id_address_invoice', 'id_cart', 'id_currency', 'id_lang', 'id_customer', 'id_carrier', 'payment', 'total_paid', 'total_paid_real', 'total_products', 'total_products_wt')
- Visibility: protected
- Source: classes/order/Order.php line 155.
protected mixed $fieldsValidate = array('id_address_delivery' => 'isUnsignedId', 'id_address_invoice' => 'isUnsignedId', 'id_cart' => 'isUnsignedId', 'id_currency' => 'isUnsignedId', 'id_group_shop' => 'isUnsignedId', 'id_shop' => 'isUnsignedId', 'id_lang' => 'isUnsignedId', 'id_customer' => 'isUnsignedId', 'id_carrier' => 'isUnsignedId', 'id_warehouse' => 'isUnsignedId', 'secure_key' => 'isMd5', 'payment' => 'isGenericName', 'recyclable' => 'isBool', 'gift' => 'isBool', 'gift_message' => 'isMessage', 'total_discounts' => 'isPrice', 'total_discounts_tax_incl' => 'isPrice', 'total_discounts_tax_excl' => 'isPrice', 'total_paid' => 'isPrice', 'total_paid_tax_incl' => 'isPrice', 'total_paid_tax_excl' => 'isPrice', 'total_paid_real' => 'isPrice', 'total_products' => 'isPrice', 'total_products_wt' => 'isPrice', 'total_shipping' => 'isPrice', 'total_shipping_tax_incl' => 'isPrice', 'total_shipping_tax_excl' => 'isPrice', 'carrier_tax_rate' => 'isFloat', 'total_wrapping' => 'isPrice', 'total_wrapping_tax_incl' => 'isPrice', 'total_wrapping_tax_excl' => 'isPrice', 'shipping_number' => 'isUrl', 'conversion_rate' => 'isFloat')
- Visibility: protected
- Source: classes/order/Order.php line 156.
public boolean $gift
- Visibility: public
- Source: classes/order/Order.php line 71.
public string $gift_message
- Visibility: public
- Source: classes/order/Order.php line 74.
public integer $id_address_delivery
- Visibility: public
- Source: classes/order/Order.php line 31.
public integer $id_address_invoice
- Visibility: public
- Source: classes/order/Order.php line 34.
public integer $id_carrier
- Visibility: public
- Source: classes/order/Order.php line 53.
public integer $id_cart
- Visibility: public
- Source: classes/order/Order.php line 41.
public integer $id_currency
- Visibility: public
- Source: classes/order/Order.php line 44.
public integer $id_customer
- Visibility: public
- Source: classes/order/Order.php line 50.
public mixed $id_group_shop
- Visibility: public
- Source: classes/order/Order.php line 36.
public integer $id_lang
- Visibility: public
- Source: classes/order/Order.php line 47.
public mixed $id_shop
- Visibility: public
- Source: classes/order/Order.php line 38.
public integer $id_warehouse
- Visibility: public
- Source: classes/order/Order.php line 151.
protected mixed $identifier = 'id_order'
- Visibility: protected
- Source: classes/order/Order.php line 230.
public string $invoice_date
- Visibility: public
- Source: classes/order/Order.php line 131.
public integer $invoice_number
- Visibility: public
- Source: classes/order/Order.php line 125.
public string $module
- Visibility: public
- Source: classes/order/Order.php line 62.
public string $payment
- Visibility: public
- Source: classes/order/Order.php line 59.
public boolean $recyclable = 1
- Visibility: public
- Source: classes/order/Order.php line 68.
public string $reference
- Visibility: public
- Source: classes/order/Order.php line 148.
public string $secure_key
- Visibility: public
- Source: classes/order/Order.php line 56.
public string $shipping_number
- Visibility: public
- Source: classes/order/Order.php line 77.
protected mixed $table = 'orders'
- Visibility: protected
- Source: classes/order/Order.php line 229.
protected mixed $tables = array('orders')
- Visibility: protected
- Source: classes/order/Order.php line 153.
public float $total_discounts
- Visibility: public
- Source: classes/order/Order.php line 80.
public mixed $total_discounts_tax_excl
- Visibility: public
- Source: classes/order/Order.php line 83.
public mixed $total_discounts_tax_incl
- Visibility: public
- Source: classes/order/Order.php line 82.
public float $total_paid
- Visibility: public
- Source: classes/order/Order.php line 86.
public float $total_paid_real
- Visibility: public
- Source: classes/order/Order.php line 95.
public float $total_paid_tax_excl
- Visibility: public
- Source: classes/order/Order.php line 92.
public float $total_paid_tax_incl
- Visibility: public
- Source: classes/order/Order.php line 89.
public float $total_products
- Visibility: public
- Source: classes/order/Order.php line 98.
public float $total_products_wt
- Visibility: public
- Source: classes/order/Order.php line 101.
public float $total_shipping
- Visibility: public
- Source: classes/order/Order.php line 104.
public float $total_shipping_tax_excl
- Visibility: public
- Source: classes/order/Order.php line 110.
public float $total_shipping_tax_incl
- Visibility: public
- Source: classes/order/Order.php line 107.
public float $total_wrapping
- Visibility: public
- Source: classes/order/Order.php line 116.
public float $total_wrapping_tax_excl
- Visibility: public
- Source: classes/order/Order.php line 122.
public float $total_wrapping_tax_incl
- Visibility: public
- Source: classes/order/Order.php line 119.
public boolean $valid
- Visibility: public
- Source: classes/order/Order.php line 137.
protected mixed $webserviceParameters = array('objectMethods' => array('add' => 'addWs'), 'objectNodeName' => 'order', 'objectsNodeName' => 'orders', 'fields' => array('id_address_delivery' => array('xlink_resource' => 'addresses'), 'id_address_invoice' => array('xlink_resource' => 'addresses'), 'id_cart' => array('xlink_resource' => 'carts'), 'id_currency' => array('xlink_resource' => 'currencies'), 'id_lang' => array('xlink_resource' => 'languages'), 'id_customer' => array('xlink_resource' => 'customers'), 'id_carrier' => array('xlink_resource' => 'carriers'), 'module' => array('required' => true), 'invoice_number' => array(), 'invoice_date' => array(), 'delivery_number' => array(), 'delivery_date' => array(), 'valid' => array(), 'current_state' => array('getter' => 'getCurrentState', 'setter' => 'setCurrentState', 'xlink_resource' => 'order_states'), 'date_add' => array(), 'date_upd' => array()), 'associations' => array('order_rows' => array('resource' => 'order_row', 'setter' => false, 'virtual_entity' => true, 'fields' => array('id' => array(), 'product_id' => array('required' => true), 'product_attribute_id' => array('required' => true), 'product_quantity' => array('required' => true), 'product_name' => array('setter' => false), 'product_price' => array('setter' => false)))))
- Visibility: protected
- Source: classes/order/Order.php line 192.
protected mixed $_cache = array()
- Visibility: protected
- This property is static.
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 75.
protected \fieldsRequiredDatabase $fieldsRequiredDatabase = null
- Visibility: protected
- This property is static.
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 50.
protected array $fieldsRequiredLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 59.
protected array $fieldsSize = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 53.
protected array $fieldsSizeLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 62.
protected array $fieldsValidateLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 65.
public integer $id
- Visibility: public
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 31.
protected string $image_dir = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 78.
protected string $image_format = 'jpg'
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 81.
protected mixed $langMultiShop = false
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 67.
mixed OrderCore::__construct($id, $id_lang)
- Visibility: public
- Source: classes/order/Order.php line 288
- $id mixed
- $id_lang mixed
mixed OrderCore::_deleteProduct($orderDetail, $quantity)
- Visibility: protected
- Source: classes/order/Order.php line 327
- $orderDetail mixed
- $quantity mixed
mixed ObjectModelCore::add($autodate, $nullValues)
Add current object to database
return boolean Insertion result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 202
- $autodate mixed
- $nullValues mixed
mixed OrderCore::addCartRule($id_cart_rule, $name, $value)
- Visibility: public
- Source: classes/order/Order.php line 959
- $id_cart_rule mixed
- $name mixed
- $value mixed
mixed OrderCore::addDiscount($id_cart_rule, $name, $value)
- Visibility: public
- Source: classes/order/Order.php line 953
- $id_cart_rule mixed
- $name mixed
- $value mixed
mixed ObjectModelCore::addFieldsRequiredDatabase($fields)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 780
- $fields mixed
boolean OrderCore::addOrderPayment(float $amount_paid, string $payment_method, string $payment_transaction_id, \Currency $currency, string $date)
This method allows to add a payment to the current order
- Visibility: public
- Source: classes/order/Order.php line 1285
- $amount_paid float
- $payment_method string
- $payment_transaction_id string
- $currency Currency
- $date string
mixed OrderCore::addWs($autodate, $nullValues)
- Visibility: public
- Source: classes/order/Order.php line 1167
- $autodate mixed
- $nullValues mixed
boolean ObjectModelCore::associateTo(integer|array $id_shops, string $type)
This function associate an item to its context
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 828
- $id_shops integer|array
- $type string
mixed ObjectModelCore::clearCache($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 794
- $all mixed
mixed ObjectModelCore::delete()
Delete current object from database
return boolean Deletion result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 349
mixed OrderCore::deleteAssociations()
- Visibility: public
- Source: classes/order/Order.php line 1176
mixed OrderCore::deleteCustomization($id_customization, $quantity, $orderDetail)
- Visibility: public
- Source: classes/order/Order.php line 403
- $id_customization mixed
- $quantity mixed
- $orderDetail mixed
boolean ObjectModelCore::deleteImage()
Delete images associated with the object
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 898
mixed OrderCore::deleteProduct($order, $orderDetail, $quantity)
- Visibility: public
- Source: classes/order/Order.php line 306
- $order mixed
- $orderDetail mixed
- $quantity mixed
mixed ObjectModelCore::deleteSelection($selection)
Delete several objects from database
return boolean Deletion result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 387
- $selection mixed
mixed ObjectModelCore::displayFieldName($field, $className, $htmlentities, \Context $context)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 558
- $field mixed
- $className mixed
- $htmlentities mixed
- $context Context
mixed ObjectModelCore::duplicateShops($id)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 868
- $id mixed
boolean ObjectModelCore::existsInDatabase($id_entity, $table)
Specify if an ObjectModel is already in database
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 931
- $id_entity mixed - entity id
- $table mixed
String OrderCore::generateReference()
Gennerate a unique reference for orders generated with the same cart id This references, is usefull for check payment
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1226
mixed OrderCore::getByDelivery($id_delivery)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1073
- $id_delivery mixed
integer OrderCore::getCartIdStatic(integer $id_order, integer $id_customer)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1126
- $id_order integer
- $id_customer integer - optionnal
mixed OrderCore::getCartRules()
- Visibility: public
- Source: classes/order/Order.php line 684
array OrderCore::getCurrentState()
Get current order state (eg. Awaiting payment, Delivered.
..)
- Visibility: public
- Source: classes/order/Order.php line 707
array OrderCore::getCurrentStateFull($id_lang)
Get current order state name (eg. Awaiting payment, Delivered.
..)
- Visibility: public
- Source: classes/order/Order.php line 720
- $id_lang mixed
array OrderCore::getCustomerNbOrders(integer $id_customer)
Get customer orders number
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 922
- $id_customer integer - Customer id
array OrderCore::getCustomerOrders(integer $id_customer, boolean $showHiddenStatus, \Context $context)
Get customer orders
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 758
- $id_customer integer - Customer id
- $showHiddenStatus boolean - Display or not hidden order statuses
- $context Context
mixed OrderCore::getDiscounts($details)
- Visibility: public
- Source: classes/order/Order.php line 678
- $details mixed
mixed OrderCore::getDiscountsCustomer($id_customer, $id_cart_rule)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 693
- $id_customer mixed
- $id_cart_rule mixed
array OrderCore::getDocuments()
Returns the correct product taxes breakdown.
Get all documents linked to the current order
- Visibility: public
- Source: classes/order/Order.php line 1315
array OrderCore::getEcoTaxTaxesBreakdown()
Returns the ecotax taxes breakdown
- Visibility: public
- Source: classes/order/Order.php line 1514
mixed OrderCore::getFields()
- Visibility: public
- Source: classes/order/Order.php line 235
mixed ObjectModelCore::getFieldsRequiredDatabase($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 772
- $all mixed
array ObjectModelCore::getFieldsValidateLang()
Get list of fields related to language to validate
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 975
mixed OrderCore::getFirstMessage()
- Visibility: public
- Source: classes/order/Order.php line 460
array OrderCore::getHistory(integer $id_lang, $id_order_state, $no_hidden)
Get order history
- Visibility: public
- Source: classes/order/Order.php line 426
- $id_lang integer - Language id
- $id_order_state mixed
- $no_hidden mixed
string ObjectModelCore::getIdentifier()
Get object identifier name
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 964
mixed OrderCore::getInvoice(integer $id_invoice)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1098
- $id_invoice integer
array OrderCore::getInvoicesCollection()
Get all invoices for the current order
- Visibility: public
- Source: classes/order/Order.php line 1351
mixed OrderCore::getLastInvoiceNumber()
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 988
integer OrderCore::getNextOrderId()
This method return the ID of the next order
- Visibility: public
- Source: classes/order/Order.php line 1202
mixed OrderCore::getNumberOfDays()
- Visibility: public
- Source: classes/order/Order.php line 964
array OrderCore::getOrderByCartId(integer $id_cart)
Get an order by its cart id
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 939
- $id_cart integer - Cart id
array OrderCore::getOrderDetailList()
Get the an order detail list of the current order
- Visibility: public
- Source: classes/order/Order.php line 1215
mixed OrderCore::getOrderIdsByStatus($id_order_state)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 846
- $id_order_state mixed
array OrderCore::getOrderPaymentCollection()
This method allows to get all Order Payment for the current order
- Visibility: public
- Source: classes/order/Order.php line 1265
mixed OrderCore::getOrdersIdByDate($date_from, $date_to, $id_customer, $type)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 790
- $date_from mixed
- $date_to mixed
- $id_customer mixed
- $type mixed
mixed OrderCore::getOrdersIdInvoiceByDate($date_from, $date_to, $id_customer, $type)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 829
- $date_from mixed
- $date_to mixed
- $id_customer mixed
- $type mixed
mixed OrderCore::getOrdersWithInformations($limit, \Context $context)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 806
- $limit mixed
- $context Context
integer OrderCore::getPreviousOrderId()
This method return the ID of the previous order
- Visibility: public
- Source: classes/order/Order.php line 1188
array OrderCore::getProductTaxesBreakdown()
Returns the correct product taxes breakdown.
- Visibility: public
- Source: classes/order/Order.php line 1421
array OrderCore::getProducts($products, $selectedProducts, $selectedQty)
Get order products
- Visibility: public
- Source: classes/order/Order.php line 536
- $products mixed
- $selectedProducts mixed
- $selectedQty mixed
mixed OrderCore::getProductsDetail()
- Visibility: public
- Source: classes/order/Order.php line 452
mixed OrderCore::getReturn()
- Visibility: public
- Source: classes/order/Order.php line 1323
mixed OrderCore::getShipping()
- Visibility: public
- Source: classes/order/Order.php line 1328
array OrderCore::getShippingTaxesBreakdown()
Returns the shipping taxes breakdown
- Visibility: public
- Source: classes/order/Order.php line 1480
mixed OrderCore::getTaxCalculationMethod()
- Visibility: public
- Source: classes/order/Order.php line 300
mixed OrderCore::getTaxesAverageUsed()
- Visibility: public
- Source: classes/order/Order.php line 628
float OrderCore::getTotalPaid(\Currency $currency)
Get total paid
- Visibility: public
- Source: classes/order/Order.php line 1367
- $currency Currency - currency used for the total paid of the current order
\Product OrderCore::getTotalProductsWithTaxes($products)
Get product total with taxes
- Visibility: public
- Source: classes/order/Order.php line 882
- $products mixed
\Product OrderCore::getTotalProductsWithoutTaxes($products)
Get product total without taxes
- Visibility: public
- Source: classes/order/Order.php line 872
- $products mixed
mixed OrderCore::getTotalWeight()
- Visibility: public
- Source: classes/order/Order.php line 1083
mixed ObjectModelCore::getTranslationsFields(array $fieldsArray)
Prepare multilingual fields for database insertion
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 430
- $fieldsArray array - Multilingual fields to prepare return array Prepared fields for database insertion
array ObjectModelCore::getValidationRules(string $className)
Returns object validation rules (fields validity)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 89
- $className string - Child class name for static use (optional)
integer OrderCore::getVirtualProducts()
Count virtual products in order
- Visibility: public
- Source: classes/order/Order.php line 638
mixed ObjectModelCore::getWebserviceObjectList($sql_join, $sql_filter, $sql_sort, $sql_limit)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 747
- $sql_join mixed
- $sql_filter mixed
- $sql_sort mixed
- $sql_limit mixed
mixed ObjectModelCore::getWebserviceParameters($wsParamsAttributeName)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 617
- $wsParamsAttributeName mixed
array OrderCore::getWrappingTaxesBreakdown()
Returns the wrapping taxes breakdown
- Visibility: public
- Source: classes/order/Order.php line 1502
mixed OrderCore::getWsOrderRows()
- Visibility: public
- Source: classes/order/Order.php line 1135
mixed OrderCore::hasBeenDelivered()
- Visibility: public
- Source: classes/order/Order.php line 731
mixed OrderCore::hasBeenPaid()
- Visibility: public
- Source: classes/order/Order.php line 736
mixed OrderCore::hasBeenShipped()
- Visibility: public
- Source: classes/order/Order.php line 741
mixed ObjectModelCore::hydrate(array $data, integer $id_lang)
Fill an object with given data. Data must be an array with this syntax: array(objProperty => value, objProperty2 => value, etc.)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 987
- $data array
- $id_lang integer
array ObjectModelCore::hydrateCollection(string $class, array $datas, integer $id_lang)
Fill (hydrate) a list of objects in order to get a collection of these objects
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1006
- $class string - Class of objects to hydrate
- $datas array - List of data (multi-dimensional array)
- $id_lang integer
mixed OrderCore::isAssociatedAtGuest($email)
- Visibility: public
- Source: classes/order/Order.php line 1107
- $email mixed
boolean ObjectModelCore::isAssociatedToGroupShop(integer $id_group_shop)
Check if current object is associated to a group shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 854
- $id_group_shop integer
boolean ObjectModelCore::isAssociatedToShop(integer $id_shop)
Check if current object is associated to a shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 809
- $id_shop integer
boolean ObjectModelCore::isCurrentlyUsed(string $table, boolean $has_active_column)
This method is allow to know if a entity is currently used
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 948
- $table string - name of table linked to entity
- $has_active_column boolean - true if the table has an active column
mixed OrderCore::isInPreparation()
- Visibility: public
- Source: classes/order/Order.php line 746
mixed ObjectModelCore::isLangMultishop()
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 888
mixed OrderCore::isReturnable()
- Visibility: public
- Source: classes/order/Order.php line 978
boolean OrderCore::isVirtual(boolean $strict)
Check if order contains (only) virtual products
- Visibility: public
- Source: classes/order/Order.php line 655
- $strict boolean - If false return true if there are at least one product virtual
mixed ObjectModelCore::makeTranslationFields($fields, $fieldsArray, $id_language)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 447
- $fields mixed
- $fieldsArray mixed
- $id_language mixed
mixed OrderCore::orderContainProduct($id_product)
- Visibility: public
- Source: classes/order/Order.php line 1233
- $id_product mixed
mixed OrderCore::printPDFIcons($id_order, $tr)
- Visibility: public
- This method is static.
- Source: classes/order/Order.php line 1053
- $id_order mixed
- $tr mixed
mixed ObjectModelCore::save($nullValues, $autodate)
Save current object to database (add or update)
return boolean Insertion result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 192
- $nullValues mixed
- $autodate mixed
mixed OrderCore::setCurrentState(integer $id_order_state, integer $id_employee)
Set current order state
- Visibility: public
- Source: classes/order/Order.php line 1148
- $id_order_state integer
- $id_employee integer - (/!\ not optional except for Webservice.
mixed OrderCore::setDelivery()
- Visibility: public
- Source: classes/order/Order.php line 1037
mixed OrderCore::setInvoice()
- Visibility: public
- Source: classes/order/Order.php line 996
mixed OrderCore::setProductCurrentStock($product)
This method allow to add stock information on a product detail
- Visibility: protected
- Source: classes/order/Order.php line 596
- $product mixed
mixed OrderCore::setProductCustomizedDatas($product, $customized_datas)
- Visibility: protected
- Source: classes/order/Order.php line 582
- $product mixed
- $customized_datas mixed
mixed OrderCore::setProductImageInformations($product)
This method allow to add image information on a product detail
- Visibility: protected
- Source: classes/order/Order.php line 606
- $product mixed
mixed OrderCore::setProductPrices($row)
- Visibility: public
- Source: classes/order/Order.php line 475
- $row mixed
mixed ObjectModelCore::toggleStatus()
Toggle object status in database
return boolean Update result
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 405
boolean ObjectModelCore::update($nullValues)
Update current object to database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 274
- $nullValues mixed
boolean OrderCore::updateShippingCost(float $amount)
This method allows to change the shipping cost of the current order
- Visibility: public
- Source: classes/order/Order.php line 1399
- $amount float
boolean OrderCore::useOneAfterAnotherTaxComputationMethod()
This method returns true if at least one order details uses the One After Another tax computation method.
- Visibility: public
- Source: classes/order/Order.php line 1248
mixed ObjectModelCore::validateControler($htmlentities)
TODO: refactor rename all calls to this to validateController
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 571
- $htmlentities mixed
mixed ObjectModelCore::validateController($htmlentities)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 577
- $htmlentities mixed
mixed ObjectModelCore::validateFields($die, $errorReturn)
Check for fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 481
- $die mixed
- $errorReturn mixed
mixed ObjectModelCore::validateFieldsLang($die, $errorReturn)
Check for multilingual fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 514
- $die mixed
- $errorReturn mixed