- Class name: OrderDetailCore
- Parent class: ObjectModel
- Source: classes/order/OrderDetail.php line 27
- $context
- $customer
- $definition
- $discount_quantity_applied
- $download_deadline
- $download_hash
- $download_nb
- $ecotax
- $ecotax_tax_rate
- $group_reduction
- $id_order
- $id_order_detail
- $id_order_invoice
- $id_shop
- $id_warehouse
- $original_product_price
- $outOfStock
- $product_attribute_id
- $product_ean13
- $product_id
- $product_name
- $product_price
- $product_quantity
- $product_quantity_discount
- $product_quantity_in_stock
- $product_quantity_refunded
- $product_quantity_reinjected
- $product_quantity_return
- $product_reference
- $product_supplier_reference
- $product_upc
- $product_weight
- $purchase_supplier_price
- $reduction_amount
- $reduction_amount_tax_excl
- $reduction_amount_tax_incl
- $reduction_percent
- $specificPrice
- $tax_calculator
- $tax_computation_method
- $tax_name
- $tax_rate
- $total_price_tax_excl
- $total_price_tax_incl
- $total_shipping_price_tax_excl
- $total_shipping_price_tax_incl
- $unit_price_tax_excl
- $unit_price_tax_incl
- $vat_address
- $webserviceParameters
- $db
- $def
- $fieldsRequired
- $fieldsRequiredDatabase
- $fieldsRequiredLang
- $fieldsSize
- $fieldsSizeLang
- $fieldsValidate
- $fieldsValidateLang
- $get_shop_from_context
- $id
- $id_lang
- $id_shop_list
- $identifier
- $image_dir
- $image_format
- $table
- $tables
- $update_fields
- __construct
- add
- addFieldsRequiredDatabase
- associateTo
- cacheFieldsRequiredDatabase
- checkProductStock
- clearCache
- create
- createList
- delete
- deleteImage
- deleteSelection
- displayFieldName
- duplicateObject
- duplicateShops
- existsInDatabase
- formatFields
- formatValue
- getAssociatedShops
- getCrossSells
- getDefinition
- getDownloadFromHash
- getFieldByLang
- getFields
- getFieldsLang
- getFieldsRequiredDatabase
- getFieldsShop
- getList
- getStockState
- getTaxCalculator
- getTaxCalculatorStatic
- getTranslationsFields
- getValidationRules
- getWebserviceObjectList
- getWebserviceParameters
- getWsTaxes
- hasMultishopEntries
- hydrate
- hydrateCollection
- incrementDownload
- isAssociatedToShop
- isCurrentlyUsed
- isLangMultishop
- isMultiShopField
- isMultishop
- makeTranslationFields
- save
- saveTaxCalculator
- setContext
- setDefinitionRetrocompatibility
- setDetailProductPrice
- setFieldsToUpdate
- setProductTax
- setShippingCost
- setSpecificPrice
- setVirtualProductInformation
- toggleStatus
- update
- updateMultishopTable
- updateTaxAmount
- validateControler
- validateController
- validateField
- validateFields
- validateFieldsLang
- validateFieldsRequiredDatabase
protected \Context $context = null
- Visibility: protected
- Source: classes/order/OrderDetail.php line 238.
protected \Customer $customer = null
- Visibility: protected
- Source: classes/order/OrderDetail.php line 235.
public mixed $definition = array('table' => 'order_detail', 'primary' => 'id_order_detail', 'fields' => array('id_order' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_order_invoice' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'id_warehouse' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true), 'product_id' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'product_attribute_id' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'product_name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true), 'product_quantity' => array('type' => self::TYPE_INT, 'validate' => 'isInt', 'required' => true), 'product_quantity_in_stock' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), 'product_quantity_return' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'product_quantity_refunded' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'product_quantity_reinjected' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'product_price' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice', 'required' => true), 'reduction_percent' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'reduction_amount' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'reduction_amount_tax_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'reduction_amount_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'group_reduction' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'product_quantity_discount' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'product_ean13' => array('type' => self::TYPE_STRING, 'validate' => 'isEan13'), 'product_upc' => array('type' => self::TYPE_STRING, 'validate' => 'isUpc'), 'product_reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference'), 'product_supplier_reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference'), 'product_weight' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'tax_name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'tax_rate' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'tax_computation_method' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'ecotax' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'ecotax_tax_rate' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'discount_quantity_applied' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), 'download_hash' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'download_nb' => array('type' => self::TYPE_INT, 'validate' => 'isInt'), 'download_deadline' => array('type' => self::TYPE_DATE, 'validate' => 'isDateFormat'), 'unit_price_tax_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'unit_price_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_price_tax_incl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'total_price_tax_excl' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'purchase_supplier_price' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice'), 'original_product_price' => array('type' => self::TYPE_FLOAT, 'validate' => 'isPrice')))
- Visibility: public
- This property is static.
- Source: classes/order/OrderDetail.php line 158.
public integer $discount_quantity_applied
- Visibility: public
- Source: classes/order/OrderDetail.php line 123.
public \date $download_deadline
- Visibility: public
- Source: classes/order/OrderDetail.php line 132.
public string $download_hash
- Visibility: public
- Source: classes/order/OrderDetail.php line 126.
public integer $download_nb
- Visibility: public
- Source: classes/order/OrderDetail.php line 129.
public float $ecotax
- Visibility: public
- Source: classes/order/OrderDetail.php line 117.
public float $ecotax_tax_rate
- Visibility: public
- Source: classes/order/OrderDetail.php line 120.
public float $group_reduction
- Visibility: public
- Source: classes/order/OrderDetail.php line 96.
public integer $id_order
- Visibility: public
- Source: classes/order/OrderDetail.php line 33.
public integer $id_order_detail
- Visibility: public
- Source: classes/order/OrderDetail.php line 30.
public integer $id_order_invoice
- Visibility: public
- Source: classes/order/OrderDetail.php line 36.
public integer $id_shop
- Visibility: public
- Source: classes/order/OrderDetail.php line 42.
public integer $id_warehouse
- Visibility: public
- Source: classes/order/OrderDetail.php line 144.
public float $original_product_price
- Visibility: public
- Source: classes/order/OrderDetail.php line 69.
protected boolean $outOfStock = false
- Visibility: protected
- Source: classes/order/OrderDetail.php line 223.
public integer $product_attribute_id
- Visibility: public
- Source: classes/order/OrderDetail.php line 45.
public string $product_ean13
- Visibility: public
- Source: classes/order/OrderDetail.php line 102.
public integer $product_id
- Visibility: public
- Source: classes/order/OrderDetail.php line 39.
public string $product_name
- Visibility: public
- Source: classes/order/OrderDetail.php line 48.
public float $product_price
- Visibility: public
- Source: classes/order/OrderDetail.php line 66.
public integer $product_quantity
- Visibility: public
- Source: classes/order/OrderDetail.php line 51.
public float $product_quantity_discount
- Visibility: public
- Source: classes/order/OrderDetail.php line 99.
public integer $product_quantity_in_stock
- Visibility: public
- Source: classes/order/OrderDetail.php line 54.
public integer $product_quantity_refunded
- Visibility: public
- Source: classes/order/OrderDetail.php line 60.
public integer $product_quantity_reinjected
- Visibility: public
- Source: classes/order/OrderDetail.php line 63.
public integer $product_quantity_return
- Visibility: public
- Source: classes/order/OrderDetail.php line 57.
public string $product_reference
- Visibility: public
- Source: classes/order/OrderDetail.php line 108.
public string $product_supplier_reference
- Visibility: public
- Source: classes/order/OrderDetail.php line 111.
public string $product_upc
- Visibility: public
- Source: classes/order/OrderDetail.php line 105.
public float $product_weight
- Visibility: public
- Source: classes/order/OrderDetail.php line 114.
public float $purchase_supplier_price
- Visibility: public
- Source: classes/order/OrderDetail.php line 153.
public float $reduction_amount
- Visibility: public
- Source: classes/order/OrderDetail.php line 87.
public float $reduction_amount_tax_excl
- Visibility: public
- Source: classes/order/OrderDetail.php line 90.
public float $reduction_amount_tax_incl
- Visibility: public
- Source: classes/order/OrderDetail.php line 93.
public float $reduction_percent
- Visibility: public
- Source: classes/order/OrderDetail.php line 84.
protected \Address $specificPrice = null
- Visibility: protected
- Source: classes/order/OrderDetail.php line 232.
protected \TaxCalculator $tax_calculator = null
- Visibility: protected
- Source: classes/order/OrderDetail.php line 226.
public float $tax_computation_method
- Visibility: public
- Source: classes/order/OrderDetail.php line 141.
public string $tax_name
- Visibility: public
- Source: classes/order/OrderDetail.php line 135.
public float $tax_rate
- Visibility: public
- Source: classes/order/OrderDetail.php line 138.
public float $total_price_tax_excl
- Visibility: public
- Source: classes/order/OrderDetail.php line 81.
public float $total_price_tax_incl
- Visibility: public
- Source: classes/order/OrderDetail.php line 78.
public float $total_shipping_price_tax_excl
- Visibility: public
- Source: classes/order/OrderDetail.php line 147.
public float $total_shipping_price_tax_incl
- Visibility: public
- Source: classes/order/OrderDetail.php line 150.
public float $unit_price_tax_excl
- Visibility: public
- Source: classes/order/OrderDetail.php line 75.
public float $unit_price_tax_incl
- Visibility: public
- Source: classes/order/OrderDetail.php line 72.
protected \Address $vat_address = null
- Visibility: protected
- Source: classes/order/OrderDetail.php line 229.
protected mixed $webserviceParameters = array('fields' => array('id_order' => array('xlink_resource' => 'orders'), 'product_id' => array('xlink_resource' => 'products'), 'product_attribute_id' => array('xlink_resource' => 'combinations'), 'product_quantity_reinjected' => array(), 'group_reduction' => array(), 'discount_quantity_applied' => array(), 'download_hash' => array(), 'download_deadline' => array()), 'hidden_fields' => array('tax_rate', 'tax_name'), 'associations' => array('taxes' => array('resource' => 'tax', 'getter' => 'getWsTaxes', 'setter' => false, 'fields' => array('id' => array()))))
- Visibility: protected
- Source: classes/order/OrderDetail.php line 204.
protected \Db $db = false
- Visibility: protected
- This property is static.
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 140.
protected array $def
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 130.
protected mixed $fieldsRequired = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 80.
protected mixed $fieldsRequiredDatabase = null
- Visibility: protected
- This property is static.
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 65.
protected mixed $fieldsRequiredLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 95.
protected mixed $fieldsSize = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 85.
protected mixed $fieldsSizeLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 100.
protected mixed $fieldsValidate = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 90.
protected mixed $fieldsValidateLang = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 105.
protected mixed $get_shop_from_context = true
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 63.
public integer $id
- Visibility: public
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 54.
protected integer $id_lang = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 57.
public mixed $id_shop_list = null
- Visibility: public
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 61.
protected mixed $identifier
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 75.
protected string $image_dir = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 116.
protected string $image_format = 'jpg'
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 119.
protected mixed $table
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 70.
protected mixed $tables = array()
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 110.
protected array $update_fields = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 135.
mixed OrderDetailCore::__construct($id, $id_lang, $context)
- Visibility: public
- Source: classes/order/OrderDetail.php line 240
- $id mixed
- $id_lang mixed
- $context mixed
boolean ObjectModelCore::add(boolean $autodate, boolean $null_values)
Add current object to database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 430
- $autodate boolean
- $null_values boolean
mixed ObjectModelCore::addFieldsRequiredDatabase($fields)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1212
- $fields mixed
boolean ObjectModelCore::associateTo(integer|array $id_shops)
This function associate an item to its context
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1264
- $id_shops integer|array
mixed ObjectModelCore::cacheFieldsRequiredDatabase()
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1199
mixed OrderDetailCore::checkProductStock(array $product, integer $id_order_state)
Check the order status
- Visibility: protected
- Source: classes/order/OrderDetail.php line 412
- $product array
- $id_order_state integer
mixed ObjectModelCore::clearCache($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1226
- $all mixed
mixed OrderDetailCore::create(object $order, object $cart, array $product, $id_order_state, integer $id_order_invoice, boolean $use_taxes, $id_warehouse)
Create an order detail liable to an id_order
- Visibility: protected
- Source: classes/order/OrderDetail.php line 549
- $order object
- $cart object
- $product array
- $id_order_state mixed
- $id_order_invoice integer
- $use_taxes boolean - set to false if you don't want to use taxes
- $id_warehouse mixed
mixed OrderDetailCore::createList(object $order, object $cart, $id_order_state, $product_list, integer $id_order_invoice, boolean $use_taxes, $id_warehouse)
Create a list of order detail for a specified id_order using cart
- Visibility: public
- Source: classes/order/OrderDetail.php line 604
- $order object
- $cart object
- $id_order_state mixed
- $product_list mixed
- $id_order_invoice integer
- $use_taxes boolean - set to false if you don't want to use taxes
- $id_warehouse mixed
mixed OrderDetailCore::delete()
- Visibility: public
- Source: classes/order/OrderDetail.php line 253
boolean ObjectModelCore::deleteImage($force_delete)
Delete images associated with the object
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1395
- $force_delete mixed
boolean ObjectModelCore::deleteSelection(array $selection)
Delete several objects from database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 737
- $selection array
mixed ObjectModelCore::displayFieldName($field, $class, $htmlentities, \Context $context)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 982
- $field mixed
- $class mixed
- $htmlentities mixed
- $context Context
\new ObjectModelCore::duplicateObject()
Duplicate current object to database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 521
mixed ObjectModelCore::duplicateShops($id)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1308
- $id mixed
boolean ObjectModelCore::existsInDatabase(integer $id_entity, string $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 1432
- $id_entity integer
- $table string
array ObjectModelCore::formatFields(integer $type, integer $id_lang)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 325
- $type integer - FORMAT_COMMON or FORMAT_LANG or FORMAT_SHOP
- $id_lang integer - If this parameter is given, only take lang fields
mixed ObjectModelCore::formatValue(mixed $value, integer $type, $with_quotes, $purify)
Format a data
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 372
- $value mixed
- $type integer
- $with_quotes mixed
- $purify mixed
array ObjectModelCore::getAssociatedShops()
Get the list of associated id_shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1293
mixed OrderDetailCore::getCrossSells($id_product, $id_lang, $limit)
- Visibility: public
- This method is static.
- Source: classes/order/OrderDetail.php line 658
- $id_product mixed
- $id_lang mixed
- $limit mixed
array ObjectModelCore::getDefinition(string $class, string $field)
Get object definition
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1538
- $class string - Name of object
- $field string - Name of field if we want the definition of one field only
mixed OrderDetailCore::getDownloadFromHash($hash)
- Visibility: public
- This method is static.
- Source: classes/order/OrderDetail.php line 269
- $hash mixed
mixed ObjectModelCore::getFieldByLang($field_name, null $id_lang)
Return the field value for the specified language if the field is multilang, else the field value.
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1645
- $field_name mixed
- $id_lang null
array ObjectModelCore::getFields()
Prepare fields for ObjectModel class (add, update) All fields are verified (pSQL, intval.
..)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 253
array ObjectModelCore::getFieldsLang()
Prepare multilang fields
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 290
mixed ObjectModelCore::getFieldsRequiredDatabase($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1191
- $all mixed
array ObjectModelCore::getFieldsShop()
Prepare fields for multishop Fields are not validated here, we considere they are already validated in getFields() method, this not the best solution but this is the only one possible for retro compatibility.
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 276
array OrderDetailCore::getList(integer $id_order)
Get a detailed order list of an id_order
- Visibility: public
- This method is static.
- Source: classes/order/OrderDetail.php line 382
- $id_order integer
array OrderDetailCore::getStockState()
Get the state of the current stock product
- Visibility: public
- Source: classes/order/OrderDetail.php line 624
\TaxCalculator OrderDetailCore::getTaxCalculator()
Returns the tax calculator associated to this order detail.
- Visibility: public
- Source: classes/order/OrderDetail.php line 294
\TaxCalculator OrderDetailCore::getTaxCalculatorStatic(integer $id_order_detail)
Return the tax calculator associated to this order_detail
- Visibility: public
- This method is static.
- Source: classes/order/OrderDetail.php line 305
- $id_order_detail integer
mixed ObjectModelCore::getTranslationsFields($fields_array)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 772
- $fields_array mixed
array ObjectModelCore::getValidationRules(string $class)
Returns object validation rules (fields validity)
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 148
- $class string - Child class name for static use (optional)
mixed ObjectModelCore::getWebserviceObjectList($sql_join, $sql_filter, $sql_sort, $sql_limit)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1132
- $sql_join mixed
- $sql_filter mixed
- $sql_sort mixed
- $sql_limit mixed
mixed ObjectModelCore::getWebserviceParameters($ws_params_attribute_name)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1054
- $ws_params_attribute_name mixed
mixed OrderDetailCore::getWsTaxes()
- Visibility: public
- Source: classes/order/OrderDetail.php line 648
boolean ObjectModelCore::hasMultishopEntries()
Check if there is more than one entries in associated shop table for current entity
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1333
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 1470
- $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 1489
- $class string - Class of objects to hydrate
- $datas array - List of data (multi-dimensional array)
- $id_lang integer
mixed OrderDetailCore::incrementDownload($id_order_detail, $increment)
- Visibility: public
- This method is static.
- Source: classes/order/OrderDetail.php line 280
- $id_order_detail mixed
- $increment mixed
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 1241
- $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 1450
- $table string - name of table linked to entity
- $has_active_column boolean - true if the table has an active column
mixed ObjectModelCore::isLangMultishop()
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1350
mixed ObjectModelCore::isMultiShopField($field)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1345
- $field mixed
mixed ObjectModelCore::isMultishop()
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1340
mixed ObjectModelCore::makeTranslationFields($fields, $fields_array, $id_language)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 788
- $fields mixed
- $fields_array mixed
- $id_language mixed
boolean ObjectModelCore::save(boolean $null_values, boolean $autodate)
Save current object to database (add or update)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 418
- $null_values boolean
- $autodate boolean
boolean OrderDetailCore::saveTaxCalculator(\Order $order, $replace)
Save the tax calculator
- Visibility: public
- Source: classes/order/OrderDetail.php line 330
- $order Order
- $replace mixed
mixed OrderDetailCore::setContext($id_shop)
- Visibility: protected
- Source: classes/order/OrderDetail.php line 263
- $id_shop mixed
mixed ObjectModelCore::setDefinitionRetrocompatibility()
Retrocompatibility for classes without $definition static Remove this in 1.6 !
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1576
mixed OrderDetailCore::setDetailProductPrice(object $order, object $cart, array $product)
Set detailed product price to the order detail
- Visibility: protected
- Source: classes/order/OrderDetail.php line 496
- $order object
- $cart object
- $product array
mixed ObjectModelCore::setFieldsToUpdate(array $fields)
Set a list of specific fields to update array(field1 => true, field2 => false, langfield1 => array(1 => true, 2 => false))
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1671
- $fields array
mixed OrderDetailCore::setProductTax(object $order, array $product)
Apply tax to the product
- Visibility: protected
- Source: classes/order/OrderDetail.php line 434
- $order object
- $product array
mixed OrderDetailCore::setShippingCost(\Order $order, $product)
Set the additional shipping information
- Visibility: public
- Source: classes/order/OrderDetail.php line 635
- $order Order
- $product mixed
mixed OrderDetailCore::setSpecificPrice(object $order, $product)
Set specific price of the product
- Visibility: protected
- Source: classes/order/OrderDetail.php line 460
- $order object
- $product mixed
mixed OrderDetailCore::setVirtualProductInformation($product)
- Visibility: protected
- Source: classes/order/OrderDetail.php line 391
- $product mixed
boolean ObjectModelCore::toggleStatus()
Toggle object status in database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 753
boolean ObjectModelCore::update(boolean $null_values)
Update current object to database
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 577
- $null_values boolean
boolean ObjectModelCore::updateMultishopTable(string $classname, array $data, string $where, string $specific_where)
Update a table and splits the common datas and the shop datas
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1365
- $classname string
- $data array
- $where string
- $specific_where string - Only executed for common table
mixed OrderDetailCore::updateTaxAmount($order)
- Visibility: public
- Source: classes/order/OrderDetail.php line 367
- $order mixed
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 1000
- $htmlentities mixed
mixed ObjectModelCore::validateController($htmlentities)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1006
- $htmlentities mixed
boolean|string ObjectModelCore::validateField(string $field, mixed $value, integer $id_lang, $skip, $human_errors)
Validate a single field
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 899
- $field string - Field name
- $value mixed - Field value
- $id_lang integer
- $skip mixed
- $human_errors mixed
boolean|string ObjectModelCore::validateFields(boolean $die, boolean $error_return)
Check for fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 826
- $die boolean
- $error_return boolean
boolean|string ObjectModelCore::validateFieldsLang(boolean $die, boolean $error_return)
Check for multilingual fields validity before database interaction
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 855
- $die boolean
- $error_return boolean
mixed ObjectModelCore::validateFieldsRequiredDatabase($htmlentities)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1168
- $htmlentities mixed