- Class name: CarrierCore
- Parent class: ObjectModel
- Source: classes/Carrier.php line 27
- ALL_CARRIERS
- CARRIERS_MODULE
- CARRIERS_MODULE_NEED_RANGE
- PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE
- PS_CARRIERS_ONLY
- SHIPPING_METHOD_DEFAULT
- SHIPPING_METHOD_FREE
- SHIPPING_METHOD_PRICE
- SHIPPING_METHOD_WEIGHT
- SORT_BY_ASC
- SORT_BY_DESC
- SORT_BY_POSITION
- SORT_BY_PRICE
- $active
- $cache_tax_rule
- $definition
- $delay
- $deleted
- $external_module_name
- $grade
- $id_reference
- $is_free
- $is_module
- $max_depth
- $max_height
- $max_weight
- $max_width
- $name
- $need_range
- $position
- $price_by_price
- $price_by_price2
- $price_by_weight
- $price_by_weight2
- $range_behavior
- $shipping_external
- $shipping_handling
- $shipping_method
- $url
- $webserviceParameters
- $db
- $def
- $fieldsRequired
- $fieldsRequiredDatabase
- $fieldsRequiredLang
- $fieldsSize
- $fieldsSizeLang
- $fieldsValidate
- $fieldsValidateLang
- $get_shop_from_context
- $id
- $id_lang
- $id_shop
- $id_shop_list
- $identifier
- $image_dir
- $image_format
- $table
- $tables
- $update_fields
- __construct
- add
- addDeliveryPrice
- addFieldsRequiredDatabase
- addZone
- assignGroupToAllCarriers
- associateTo
- checkCarrierZone
- checkDeliveryPriceByPrice
- checkDeliveryPriceByWeight
- cleanPositions
- clearCache
- copyCarrierData
- delete
- deleteDeliveryPrice
- deleteImage
- deleteSelection
- deleteTaxRulesGroup
- deleteZone
- displayFieldName
- duplicateObject
- duplicateShops
- existsInDatabase
- formatFields
- formatValue
- getAssociatedShops
- getAvailableCarrierList
- getCarrierByReference
- getCarriers
- getCarriersForOrder
- getDefaultCarrierSelection
- getDefinition
- getDeliveredCountries
- getDeliveryPriceByPrice
- getDeliveryPriceByRanges
- getDeliveryPriceByWeight
- getFieldByLang
- getFields
- getFieldsLang
- getFieldsRequiredDatabase
- getFieldsShop
- getGroups
- getHigherPosition
- getIdTaxRulesGroup
- getIdTaxRulesGroupByIdCarrier
- getMaxDeliveryPriceByPrice
- getMaxDeliveryPriceByWeight
- getRangeObject
- getRangeSuffix
- getRangeTable
- getShippingMethod
- getTaxCalculator
- getTaxesRate
- getTranslationsFields
- getValidationRules
- getWebserviceObjectList
- getWebserviceParameters
- getZone
- getZones
- hasMultishopEntries
- hydrate
- hydrateCollection
- isAssociatedToShop
- isCurrentlyUsed
- isLangMultishop
- isMultishop
- isUsed
- makeTranslationFields
- save
- setConfiguration
- setDefinitionRetrocompatibility
- setFieldsToUpdate
- setTaxRulesGroup
- sqlDeliveryRangeShop
- toggleStatus
- update
- updateMultishopTable
- updatePosition
- validateControler
- validateController
- validateField
- validateFields
- validateFieldsLang
- validateFieldsRequiredDatabase
const ALL_CARRIERS = 5
- Source: classes/Carrier.php line 36.
const CARRIERS_MODULE = 2
- Source: classes/Carrier.php line 33.
const CARRIERS_MODULE_NEED_RANGE = 3
- Source: classes/Carrier.php line 34.
const PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE = 4
- Source: classes/Carrier.php line 35.
const PS_CARRIERS_ONLY = 1
getCarriers method filter
- Source: classes/Carrier.php line 32.
const SHIPPING_METHOD_DEFAULT = 0
- Source: classes/Carrier.php line 38.
const SHIPPING_METHOD_FREE = 3
- Source: classes/Carrier.php line 41.
const SHIPPING_METHOD_PRICE = 2
- Source: classes/Carrier.php line 40.
const SHIPPING_METHOD_WEIGHT = 1
- Source: classes/Carrier.php line 39.
const SORT_BY_ASC = 0
- Source: classes/Carrier.php line 46.
const SORT_BY_DESC = 1
- Source: classes/Carrier.php line 47.
const SORT_BY_POSITION = 1
- Source: classes/Carrier.php line 44.
const SORT_BY_PRICE = 0
- Source: classes/Carrier.php line 43.
public boolean $active = true
- Visibility: public
- Source: classes/Carrier.php line 62.
protected mixed $cache_tax_rule = array()
- Visibility: protected
- This property is static.
- Source: classes/Carrier.php line 149.
public mixed $definition = array('table' => 'carrier', 'primary' => 'id_carrier', 'multilang' => true, 'multilang_shop' => true, 'fields' => array('id_reference' => array('type' => self::TYPE_INT), 'name' => array('type' => self::TYPE_STRING, 'validate' => 'isCarrierName', 'required' => true, 'size' => 64), 'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'required' => true), 'is_free' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'url' => array('type' => self::TYPE_STRING, 'validate' => 'isAbsoluteUrl'), 'shipping_handling' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'shipping_external' => array('type' => self::TYPE_BOOL), 'range_behavior' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'shipping_method' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'max_width' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'max_height' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'max_depth' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'), 'max_weight' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat'), 'grade' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'size' => 1), 'external_module_name' => array('type' => self::TYPE_STRING, 'size' => 64), 'is_module' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'need_range' => array('type' => self::TYPE_BOOL), 'position' => array('type' => self::TYPE_INT), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'delay' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isGenericName', 'required' => true, 'size' => 128)))
- Visibility: public
- This property is static.
- Source: classes/Carrier.php line 112.
public string $delay
- Visibility: public
- Source: classes/Carrier.php line 59.
public boolean $deleted
- Visibility: public
- Source: classes/Carrier.php line 65.
public string $external_module_name = null
- Visibility: public
- Source: classes/Carrier.php line 86.
public integer $grade
- Visibility: public
- Source: classes/Carrier.php line 107.
public integer $id_reference
- Visibility: public
- Source: classes/Carrier.php line 50.
public boolean $is_free = false
- Visibility: public
- Source: classes/Carrier.php line 77.
public boolean $is_module
- Visibility: public
- Source: classes/Carrier.php line 74.
public integer $max_depth
- Visibility: public
- Source: classes/Carrier.php line 101.
public integer $max_height
- Visibility: public
- Source: classes/Carrier.php line 98.
public integer $max_weight
- Visibility: public
- Source: classes/Carrier.php line 104.
public integer $max_width
- Visibility: public
- Source: classes/Carrier.php line 95.
public string $name
- Visibility: public
- Source: classes/Carrier.php line 53.
public boolean $need_range
- Visibility: public
- Source: classes/Carrier.php line 89.
public integer $position
- Visibility: public
- Source: classes/Carrier.php line 92.
protected mixed $price_by_price = array()
- Visibility: protected
- This property is static.
- Source: classes/Carrier.php line 146.
protected mixed $price_by_price2 = array()
- Visibility: protected
- This property is static.
- Source: classes/Carrier.php line 147.
protected mixed $price_by_weight = array()
- Visibility: protected
- This property is static.
- Source: classes/Carrier.php line 144.
protected mixed $price_by_weight2 = array()
- Visibility: protected
- This property is static.
- Source: classes/Carrier.php line 145.
public integer $range_behavior
- Visibility: public
- Source: classes/Carrier.php line 71.
public boolean $shipping_external
- Visibility: public
- Source: classes/Carrier.php line 83.
public boolean $shipping_handling = true
- Visibility: public
- Source: classes/Carrier.php line 68.
public integer $shipping_method
- Visibility: public
- Source: classes/Carrier.php line 80.
public string $url
- Visibility: public
- Source: classes/Carrier.php line 56.
protected mixed $webserviceParameters = array('fields' => array('deleted' => array(), 'is_module' => array(), 'id_tax_rules_group' => array('getter' => 'getIdTaxRulesGroup', 'setter' => 'setTaxRulesGroup', 'xlink_resource' => array('resourceName' => 'tax_rules_group'))))
- Visibility: protected
- Source: classes/Carrier.php line 151.
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.
protected mixed $id_shop = null
- Visibility: protected
- This property is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 59.
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 CarrierCore::__construct($id, $id_lang)
- Visibility: public
- Source: classes/Carrier.php line 165
- $id mixed
- $id_lang mixed
mixed CarrierCore::add($autodate, $null_values)
- Visibility: public
- Source: classes/Carrier.php line 179
- $autodate mixed
- $null_values mixed
boolean CarrierCore::addDeliveryPrice($price_list)
Add new delivery prices
- Visibility: public
- Source: classes/Carrier.php line 731
- $price_list mixed
mixed ObjectModelCore::addFieldsRequiredDatabase($fields)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1146
- $fields mixed
mixed CarrierCore::addZone($id_zone)
Add zone
- Visibility: public
- Source: classes/Carrier.php line 642
- $id_zone mixed
mixed CarrierCore::assignGroupToAllCarriers(integer|array $id_group_list, array $exception)
Assign one (ore more) group to all carriers
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 1222
- $id_group_list integer|array - group id or list of group ids
- $exception array - list of id carriers to ignore
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 1193
- $id_shops integer|array
mixed CarrierCore::checkCarrierZone($id_carrier, $id_zone)
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 596
- $id_carrier mixed
- $id_zone mixed
float CarrierCore::checkDeliveryPriceByPrice($id_carrier, $order_total, integer $id_zone, integer $id_currency)
Check delivery prices for a given order
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 327
- $id_carrier mixed
- $order_total mixed
- $id_zone integer - Zone id (for customer delivery address)
- $id_currency integer
mixed CarrierCore::checkDeliveryPriceByWeight($id_carrier, $total_weight, $id_zone)
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 250
- $id_carrier mixed
- $total_weight mixed
- $id_zone mixed
boolean CarrierCore::cleanPositions()
Reorders carrier positions.
Called after deleting a carrier.
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 1092
mixed ObjectModelCore::clearCache($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1160
- $all mixed
mixed CarrierCore::copyCarrierData($old_id)
Copy old carrier informations when update carrier
- Visibility: public
- Source: classes/Carrier.php line 772
- $old_id mixed
mixed CarrierCore::delete()
- Visibility: public
- Source: classes/Carrier.php line 200
boolean CarrierCore::deleteDeliveryPrice($range_table)
Clean delivery prices (weight/price)
- Visibility: public
- Source: classes/Carrier.php line 711
- $range_table mixed
boolean ObjectModelCore::deleteImage($force_delete)
Delete images associated with the object
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1319
- $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 CarrierCore::deleteTaxRulesGroup(array $shops)
- Visibility: public
- Source: classes/Carrier.php line 954
- $shops array
mixed CarrierCore::deleteZone($id_zone)
Delete zone
- Visibility: public
- Source: classes/Carrier.php line 675
- $id_zone mixed
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 939
- $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 528
mixed ObjectModelCore::duplicateShops($id)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1237
- $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 1356
- $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 335
- $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)
Format a data
- Visibility: public
- This method is static.
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 381
- $value mixed
- $type integer
- $with_quotes mixed
array ObjectModelCore::getAssociatedShops()
Get the list of associated id_shop
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1222
array CarrierCore::getAvailableCarrierList(\Product $product, $id_warehouse, $id_address_delivery, $id_shop, $cart)
For a given {product, warehouse}, gets the carrier available
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 1134
- $product Product - The id of the product, or an array with at least the package size and weight
- $id_warehouse mixed
- $id_address_delivery mixed
- $id_shop mixed
- $cart mixed
mixed CarrierCore::getCarrierByReference($id_reference)
Get carrier using the reference id
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 860
- $id_reference mixed
array CarrierCore::getCarriers(integer $id_lang, boolean $active, $delete, $id_zone, $ids_group, $modules_filters)
Get all carriers in a given language
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 398
- $id_lang integer - Language id
- $active boolean - Returns only active carriers when true
- $delete mixed
- $id_zone mixed
- $ids_group mixed
- $modules_filters mixed
Array CarrierCore::getCarriersForOrder(integer $id_zone, Array $groups, $cart)
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 520
- $id_zone integer
- $groups Array - group of the customer
- $cart mixed
\number CarrierCore::getDefaultCarrierSelection(array $carriers, $default_carrier)
Return the default carrier to use
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 498
- $carriers array
- $default_carrier 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 1462
- $class string - Name of object
- $field string - Name of field if we want the definition of one field only
mixed CarrierCore::getDeliveredCountries($id_lang, $active_countries, $active_carriers, $contain_states)
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 459
- $id_lang mixed
- $active_countries mixed
- $active_carriers mixed
- $contain_states mixed
float CarrierCore::getDeliveryPriceByPrice($order_total, integer $id_zone, $id_currency)
Get delivery prices for a given order
- Visibility: public
- Source: classes/Carrier.php line 292
- $order_total mixed
- $id_zone integer - Zone id (for customer delivery address)
- $id_currency mixed
array CarrierCore::getDeliveryPriceByRanges($range_table, $id_carrier)
Get delivery prices for a given shipping method (price/weight)
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 371
- $range_table mixed
- $id_carrier mixed
float CarrierCore::getDeliveryPriceByWeight($total_weight, integer $id_zone)
Get delivery prices for a given order
- Visibility: public
- Source: classes/Carrier.php line 227
- $total_weight mixed
- $id_zone integer - Zone id (for customer delivery address)
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 1569
- $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 263
array ObjectModelCore::getFieldsLang()
Prepare multilang fields
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 300
mixed ObjectModelCore::getFieldsRequiredDatabase($all)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1138
- $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 286
array CarrierCore::getGroups()
Gets a specific group
- Visibility: public
- Source: classes/Carrier.php line 697
integer CarrierCore::getHigherPosition()
Gets the highest carrier position
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 1118
mixed CarrierCore::getIdTaxRulesGroup(\Context $context)
- Visibility: public
- Source: classes/Carrier.php line 934
- $context Context
mixed CarrierCore::getIdTaxRulesGroupByIdCarrier($id_carrier, \Context $context)
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 939
- $id_carrier mixed
- $context Context
mixed CarrierCore::getMaxDeliveryPriceByPrice($id_zone)
- Visibility: public
- Source: classes/Carrier.php line 350
- $id_zone mixed
mixed CarrierCore::getMaxDeliveryPriceByWeight($id_zone)
- Visibility: public
- Source: classes/Carrier.php line 270
- $id_zone mixed
mixed CarrierCore::getRangeObject()
- Visibility: public
- Source: classes/Carrier.php line 914
mixed CarrierCore::getRangeSuffix($currency)
- Visibility: public
- Source: classes/Carrier.php line 924
- $currency mixed
mixed CarrierCore::getRangeTable()
- Visibility: public
- Source: classes/Carrier.php line 904
mixed CarrierCore::getShippingMethod()
- Visibility: public
- Source: classes/Carrier.php line 885
CarrierCore::getTaxCalculator(\Address $address)
Returns the taxes calculator associated to the carrier
- Visibility: public
- Source: classes/Carrier.php line 1008
- $address Address
CarrierCore::getTaxesRate(\Address $address)
Returns the taxes rate associated to the carrier
- Visibility: public
- Source: classes/Carrier.php line 995
- $address Address
mixed ObjectModelCore::getTranslationsFields($fields_array)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 769
- $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 1080
- $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 1006
- $ws_params_attribute_name mixed
array CarrierCore::getZone($id_zone)
Get a specific zones
- Visibility: public
- Source: classes/Carrier.php line 630
- $id_zone mixed
array CarrierCore::getZones()
Get all zones
- Visibility: public
- Source: classes/Carrier.php line 616
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 1262
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 1394
- $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 1413
- $class string - Class of objects to hydrate
- $datas array - List of data (multi-dimensional array)
- $id_lang 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 1175
- $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 1374
- $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 1274
mixed ObjectModelCore::isMultishop()
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1269
integer CarrierCore::isUsed()
Check if carrier is used (at least one order placed)
- Visibility: public
- Source: classes/Carrier.php line 875
mixed ObjectModelCore::makeTranslationFields($fields, $fields_array, $id_language)
- Visibility: protected
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 785
- $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 425
- $null_values boolean
- $autodate boolean
mixed CarrierCore::setConfiguration(integer $id_old)
Change carrier id in delivery prices when updating a carrier
- Visibility: public
- Source: classes/Carrier.php line 215
- $id_old integer - Old id carrier
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 1500
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 1595
- $fields array
mixed CarrierCore::setTaxRulesGroup($id_tax_rules_group, $all_shops)
- Visibility: public
- Source: classes/Carrier.php line 965
- $id_tax_rules_group mixed
- $all_shops mixed
string CarrierCore::sqlDeliveryRangeShop($range_table, $alias)
This tricky method generates a sql clause to check if ranged data are overloaded by multishop
- Visibility: public
- This method is static.
- Source: classes/Carrier.php line 1021
- $range_table mixed
- $alias 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 1289
- $classname string
- $data array
- $where string
- $specific_where string - Only executed for common table
boolean CarrierCore::updatePosition(boolean $way, integer $position)
Moves a carrier
- Visibility: public
- Source: classes/Carrier.php line 1052
- $way boolean - Up (1) or Down (0)
- $position integer
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 954
- $htmlentities mixed
mixed ObjectModelCore::validateController($htmlentities)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 960
- $htmlentities mixed
boolean|string ObjectModelCore::validateField(string $field, mixed $value, integer $id_lang)
Validate a single field
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 892
- $field string - Field name
- $value mixed - Field value
- $id_lang integer
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 823
- $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 852
- $die boolean
- $error_return boolean
mixed ObjectModelCore::validateFieldsRequiredDatabase($htmlentities)
- Visibility: public
- This method is defined by ObjectModelCore.
- Source: classes/ObjectModel.php line 1116
- $htmlentities mixed