# Indice de Classes y métodos de Prestashop **Publicado:** 2018-01-26 · **Categoría:** PHP, Otros **Enlace:** [https://gmartos.es/indice-de-classes-y-metodos-de-prestashop](https://gmartos.es/indice-de-classes-y-metodos-de-prestashop) Una de las grandes herramientas y opciones que tenemos es el uso de Classes incluidas en nuestra tienda Prestashop. Debemos tener un listado para saber que classes podemos usar para aprovechar este codigo ya añadido y por lo tanto no tener que escribir mas codigo del necesario. - [./classes/Address.php](#ancre1) - [./classes/AddressFormat.php](#ancre2) - [./classes/Alias.php](#ancre3) - [./classes/Attachment.php](#ancre4) - [./classes/Attribute.php](#ancre5) - [./classes/AttributeGroup.php](#ancre6) - [./classes/Autoload.php](#ancre7) - [./classes/Backup.php](#ancre8) - [./classes/Blowfish.php](#ancre9) - [./classes/Carrier.php](#ancre10) - [./classes/Cart.php](#ancre11) - [./classes/CartRule.php](#ancre12) - [./classes/Category.php](#ancre13) - [./classes/Chart.php](#ancre14) - [./classes/CMS.php](#ancre15) - [./classes/CMSCategory.php](#ancre16) - [./classes/Collection.php](#ancre17) - [./classes/Combination.php](#ancre18) - [./classes/CompareProduct.php](#ancre19) - [./classes/Configuration.php](#ancre20) - [./classes/ConfigurationTest.php](#ancre21) - [./classes/Connection.php](#ancre22) - [./classes/ConnectionsSource.php](#ancre23) - [./classes/Contact.php](#ancre24) - [./classes/Context.php](#ancre25) - [./classes/ControllerFactory.php](#ancre26) - [./classes/Cookie.php](#ancre27) - [./classes/Country.php](#ancre28) - [./classes/County.php](#ancre29) - [./classes/CSV.php](#ancre30) - [./classes/Currency.php](#ancre31) - [./classes/Customer.php](#ancre32) - [./classes/CustomerMessage.php](#ancre33) - [./classes/CustomerThread.php](#ancre34) - [./classes/Customization.php](#ancre35) - [./classes/DateRange.php](#ancre36) - [./classes/Delivery.php](#ancre37) - [./classes/Discount.php](#ancre38) - [./classes/Dispatcher.php](#ancre39) - [./classes/Employee.php](#ancre40) - [./classes/Feature.php](#ancre41) - [./classes/FeatureValue.php](#ancre42) - [./classes/FileUploader.php](#ancre43) - [./classes/Gender.php](#ancre44) - [./classes/Group.php](#ancre45) - [./classes/GroupReduction.php](#ancre46) - [./classes/Guest.php](#ancre47) - [./classes/HelpAccess.php](#ancre48) - [./classes/Hook.php](#ancre49) - [./classes/Image.php](#ancre50) - [./classes/ImageManager.php](#ancre51) - [./classes/ImageType.php](#ancre52) - [./classes/Language.php](#ancre53) - [./classes/Link.php](#ancre54) - [./classes/LocalizationPack.php](#ancre55) - [./classes/Logger.php](#ancre56) - [./classes/Mail.php](#ancre57) - [./classes/Manufacturer.php](#ancre58) - [./classes/Media.php](#ancre59) - [./classes/Message.php](#ancre60) - [./classes/Meta.php](#ancre61) - [./classes/Notification.php](#ancre62) - [./classes/Pack.php](#ancre63) - [./classes/Page.php](#ancre64) - [./classes/PaymentCC.php](#ancre65) - [./classes/Product.php](#ancre66) - [./classes/ProductDownload.php](#ancre67) - [./classes/ProductSale.php](#ancre68) - [./classes/ProductSupplier.php](#ancre69) - [./classes/Profile.php](#ancre70) - [./classes/QuickAccess.php](#ancre71) - [./classes/Referrer.php](#ancre72) - [./classes/RequestSql.php](#ancre73) - [./classes/Rijndael.php](#ancre74) - [./classes/Risk.php](#ancre75) - [./classes/Scene.php](#ancre76) - [./classes/Search.php](#ancre77) - [./classes/SearchEngine.php](#ancre78) - [./classes/SpecificPrice.php](#ancre79) - [./classes/SpecificPriceRule.php](#ancre80) - [./classes/State.php](#ancre81) - [./classes/Store.php](#ancre82) - [./classes/Supplier.php](#ancre83) - [./classes/Tab.php](#ancre84) - [./classes/Tag.php](#ancre85) - [./classes/Theme.php](#ancre86) - [./classes/Tools.php](#ancre87) - [./classes/Translate.php](#ancre88) - [./classes/TranslatedConfiguration.php](#ancre89) - [./classes/Upgrader.php](#ancre90) - [./classes/Validate.php](#ancre91) - [./classes/Zone.php](#ancre92) - [./classes/webservice\\WebserviceException.php](#ancre93) - [./classes/webservice\\WebserviceKey.php](#ancre94) - [./classes/webservice\\WebserviceOutputBuilder.php](#ancre95) - [./classes/webservice\\WebserviceOutputXML.php](#ancre96) - [./classes/webservice\\WebserviceRequest.php](#ancre97) - [./classes/webservice\\WebserviceSpecificManagementImages.php](#ancre98) - [./classes/webservice\\WebserviceSpecificManagementSearch.php](#ancre99) - [./classes/tax\\Tax.php](#ancre100) - [./classes/tax\\TaxCalculator.php](#ancre101) - [./classes/tax\\TaxManagerFactory.php](#ancre102) - [./classes/tax\\TaxRule.php](#ancre103) - [./classes/tax\\TaxRulesGroup.php](#ancre104) - [./classes/tax\\TaxRulesTaxManager.php](#ancre105) - [./classes/stock\\Stock.php](#ancre106) - [./classes/stock\\StockAvailable.php](#ancre107) - [./classes/stock\\StockManager.php](#ancre108) - [./classes/stock\\StockManagerFactory.php](#ancre109) - [./classes/stock\\StockMvt.php](#ancre110) - [./classes/stock\\StockMvtReason.php](#ancre111) - [./classes/stock\\StockMvtWS.php](#ancre112) - [./classes/stock\\SupplyOrder.php](#ancre113) - [./classes/stock\\SupplyOrderDetail.php](#ancre114) - [./classes/stock\\SupplyOrderHistory.php](#ancre115) - [./classes/stock\\SupplyOrderReceiptHistory.php](#ancre116) - [./classes/stock\\SupplyOrderState.php](#ancre117) - [./classes/stock\\Warehouse.php](#ancre118) - [./classes/stock\\WarehouseProductLocation.php](#ancre119) - [./classes/shop\\Shop.php](#ancre120) - [./classes/shop\\ShopGroup.php](#ancre121) - [./classes/shop\\ShopUrl.php](#ancre122) - [./classes/range\\RangePrice.php](#ancre123) - [./classes/range\\RangeWeight.php](#ancre124) - [./classes/pdf\\HTMLTemplateDeliverySlip.php](#ancre125) - [./classes/pdf\\HTMLTemplateInvoice.php](#ancre126) - [./classes/pdf\\HTMLTemplateOrderReturn.php](#ancre127) - [./classes/pdf\\HTMLTemplateOrderSlip.php](#ancre128) - [./classes/pdf\\HTMLTemplateSupplyOrderForm.php](#ancre129) - [./classes/pdf\\PDF.php](#ancre130) - [./classes/pdf\\PDFGenerator.php](#ancre131) - [./classes/order\\Order.php](#ancre132) - [./classes/order\\OrderCarrier.php](#ancre133) - [./classes/order\\OrderCartRule.php](#ancre134) - [./classes/order\\OrderDetail.php](#ancre135) - [./classes/order\\OrderDiscount.php](#ancre136) - [./classes/order\\OrderHistory.php](#ancre137) - [./classes/order\\OrderInvoice.php](#ancre138) - [./classes/order\\OrderMessage.php](#ancre139) - [./classes/order\\OrderPayment.php](#ancre140) - [./classes/order\\OrderReturn.php](#ancre141) - [./classes/order\\OrderReturnState.php](#ancre142) - [./classes/order\\OrderSlip.php](#ancre143) - [./classes/order\\OrderState.php](#ancre144) - [./classes/log\\FileLogger.php](#ancre145) - [./classes/helper\\Helper.php](#ancre146) - [./classes/helper\\HelperForm.php](#ancre147) - [./classes/helper\\HelperHelpAccess.php](#ancre148) - [./classes/helper\\HelperList.php](#ancre149) - [./classes/helper\\HelperOptions.php](#ancre150) - [./classes/helper\\HelperView.php](#ancre151) - [./classes/exception\\PrestaShopDatabaseException.php](#ancre152) - [./classes/exception\\PrestaShopException.php](#ancre153) - [./classes/exception\\PrestaShopModuleException.php](#ancre154) - [./classes/exception\\PrestaShopPaymentException.php](#ancre155) - [./classes/db\\DbMySQLi.php](#ancre156) - [./classes/db\\DbPDO.php](#ancre157) - [./classes/db\\DbQuery.php](#ancre158) - [./classes/db\\MySQL.php](#ancre159) - [./classes/controller\\AdminController.php](#ancre160) - [./classes/controller\\FrontController.php](#ancre161) - [./classes/controller\\ModuleFrontController.php](#ancre162) - [./classes/cache\\CacheApc.php](#ancre163) - [./classes/cache\\CacheFs.php](#ancre164) - [./classes/cache\\CacheMemcache.php](#ancre165) - [./classes/cache\\CacheXcache.php](#ancre166) # class AddressCore extends ObjectModel ./classes/Address.php - public function **\_\_construct**($id\_address = null, $id\_lang = null) */\*\* Build an address \* @param integer $id\_address Existing address id in order to load object (optional) \*/* - public function **add**($autodate = true, $null\_values = false) */\*\* @see ObjectModel::add() \*/* - public function **update**($null\_values = false) - public function **delete**() */\*\* @see ObjectModel::delete() \*/* - public static function **getFieldsValidate**() */\*\* Returns fields required for an address in an array hash @return array hash values \*/* - public function **validateController**($htmlentities = true) */\*\* @see ObjectModel::validateController() \*/* - public static function **getZoneById**($id\_address) */\*\* Get zone id for a given address \* @param integer $id\_address Address id for which we want to get zone id @return integer Zone id \*/* - public static function **isCountryActiveById**($id\_address) */\*\* Check if country is active for a given address \* @param integer $id\_address Address id for which we want to get country status @return integer Country status \*/* - public function **isUsed**() */\*\* Check if address is used (at least one order placed) \* @return integer Order count for this address \*/* - public static function **getCountryAndState**($id\_address) - public static function **addressExists**($id\_address) */\*\* Specify if an address is already in base \* @param $id\_address Address id @return boolean \*/* - public static function **getFirstCustomerAddressId**($id\_customer, $active = true) - public static function **initialize**($id\_address = null) */\*\* Initiliaze an address corresponding to the specified id address or if empty to the default shop configuration \* @param int $id\_address @return Address address \*/* - public static function **getAddressIdBySupplierId**($id\_supplier) */\*\* Returns id\_address for a given id\_supplier @since 1.5.0 @param int $id\_supplier @return int $id\_address \*/* # class AddressFormatCore extends ObjectModel ./classes/AddressFormat.php - public function **checkFormatFields**() */\* Check if the set fields are valide \*/* - public function **getErrorList**() */\* Returns the error list \*/* - public static function **cleanOrderedAddress**(&$orderedAddressField) */\* \* Cleaned the layout set by the user \*/* - public static function **getFormattedAddressFieldsValues**($address, $addressFormat, $id\_lang = null) */\* Returns the formatted fields with associated values \* @address is an instancied Address object @addressFormat is the format @return double Array \*/* - public static function **generateAddress**(Address $address, $patternRules = array(), $newLine = « \\r\\n », $separator = ‘ ‘, $style = array()) */\*\* Generates the full address text @param address is an instanciate object of Address class @param patternrules is a defined rules array to avoid some pattern @param newLine is a string containing the newLine format @param separator is a string containing the separator format @return string \*/* - public static function **generateAddressSmarty**($params, &$smarty) - public static function **getValidateFields**($className) */\*\* Returns selected fields required for an address in an array according to a selection hash @return array String values \*/* - public static function **getLiableClass**($className) */\* Return a list of liable class of the className \*/* - public static function **getOrderedAddressFields**($id\_country = 0, $split\_all = false, $cleaned = false) */\*\* Returns address format fields in array by country \* @param Integer PS\_COUNTRY.id if null using default country @return Array String field address format \*/* - public static function **getFormattedLayoutData**($address) */\* \* Return a data array containing ordered, formatedValue and object fields \*/* - public static function **getAddressCountryFormat**($id\_country = 0) */\*\* Returns address format by country if not defined using default country \* @param Integer PS\_COUNTRY.id @return String field address format \*/* - public function **getFormat**($id\_country) */\*\* Returns address format by country \* @param Integer PS\_COUNTRY.id @return String field address format \*/* # class AliasCore extends ObjectModel ./classes/Alias.php - public function **\_\_construct**($id = null, $alias = null, $search = null, $id\_lang = null) - public function **add**($autodate = true, $nullValues = false) - public function **delete**() - public function **getAliases**() - public static function **isFeatureActive**() */\*\* This method is allow to know if a feature is used or active @since 1.5.0.1 @return bool \*/* # class AttachmentCore extends ObjectModel ./classes/Attachment.php - public function **delete**() - public function **deleteSelection**($attachments) - public static function **getAttachments**($id\_lang, $id\_product, $include = true) - public static function **deleteProductAttachments**($id\_product) */\*\* deassociate $id\_product from the current object \* @static @param $id\_product int @return bool \*/* - public function **attachProduct**($id\_product) */\*\* associate $id\_product to the current object.*@param int $id\_product id of the product to associate @return boolean true if succed \*/ - public static function **attachToProduct**($id\_product, $array) */\*\* associate an array of id\_attachment $array to the product $id\_product and remove eventual previous association \* @static @param $id\_product @param $array @return bool \*/* - public static function **getProductAttached**($id\_lang, $list) # class AttributeCore extends ObjectModel ./classes/Attribute.php - public function **\_\_construct**($id = null, $id\_lang = null, $id\_shop = null) - public function **delete**() - public function **update**($null\_values = false) - public function **add**($autodate = true, $null\_values = false) - public static function **getAttributes**($id\_lang, $not\_null = false) */\*\* Get all attributes for a given language \* @param integer $id\_lang Language id @param boolean $notNull Get only not null fields if true @return array Attributes \*/* - public static function **checkAttributeQty**($id\_product\_attribute, $qty, Shop $shop = null) */\*\* Get quantity for a given attribute combination Check if quantity is enough to deserve customer \* @param integer $id\_product\_attribute Product attribute combination id @param integer $qty Quantity needed @return boolean Quantity is available or not \*/* - public static function **getAttributeQty**($id\_product) */\*\* @deprecated 1.5.0, use StockAvailable::getQuantityAvailableByProduct() \*/* - public static function **updateQtyProduct**(&$arr) */\*\* Update array with veritable quantity \* @deprecated since 1.5.0 @param array &$arr @return bool \*/* - public function **isColorAttribute**() */\*\* Return true if attribute is color type \* @acces public @return bool \*/* - public static function **getAttributeMinimalQty**($id\_product\_attribute) */\*\* Get minimal quantity for product with attributes quantity \* @acces public static @param integer $id\_product\_attribute @return mixed Minimal Quantity or false \*/* - public function **updatePosition**($way, $position) */\*\* Move an attribute inside its group @param boolean $way Up (1) or Down (0) @param integer $position @return boolean Update result \*/* - public function **cleanPositions**($id\_attribute\_group, $use\_last\_attribute = true) */\*\* Reorder attribute position in group $id\_attribute\_group. Call it after deleting an attribute from a group. \* @param int $id\_attribute\_group @param bool $use\_last\_attribute @return bool $return \*/* - public static function **getHigherPosition**($id\_attribute\_group) */\*\* getHigherPosition \* Get the higher attribute position from a group attribute \* @param integer $id\_attribute\_group @return integer $position \*/* # class AttributeGroupCore extends ObjectModel ./classes/AttributeGroup.php - public function **add**($autodate = true, $nullValues = false) - public function **update**($nullValues = false) - public static function **cleanDeadCombinations**() - public function **delete**() - public static function **getAttributes**($id\_lang, $id\_attribute\_group) */\*\* Get all attributes for a given language / group \* @param integer $id\_lang Language id @param boolean $id\_attribute\_group Attribute group id @return array Attributes \*/* - public static function **getAttributesGroups**($id\_lang) */\*\* Get all attributes groups for a given language \* @param integer $id\_lang Language id @return array Attributes groups \*/* - public function **deleteSelection**($selection) */\*\* Delete several objects from database \* return boolean Deletion result \*/* - public function **setWsProductOptionValues**($values) - public function **getWsProductOptionValues**() - public function **updatePosition**($way, $position) */\*\* Move a group attribute @param boolean $way Up (1) or Down (0) @param integer $position @return boolean Update result \*/* - public static function **cleanPositions**() */\*\* Reorder group attribute position Call it after deleting a group attribute. \* @return bool $return \*/* - public static function **getHigherPosition**() */\*\* getHigherPosition \* Get the higher group attribute position \* @return integer $position \*/* # class Autoload ./classes/Autoload.php - public static function **getInstance**() */\*\* Get instance of autoload (singleton) \* @return Autoload \*/* - public function **load**($classname) */\*\* Retrieve informations about a class in classes index and load it \* @param string $classname \*/* - public function **generateIndex**() */\*\* Generate classes index \*/* - public function **getClassPath**($classname) # class BackupCore ./classes/Backup.php - public function **\_\_construct**($filename = null) */\*\* Creates a new backup object \* @param string $filename Filename of the backup file \*/* - public function **setCustomBackupPath**($dir) */\*\* you can set a different path with that function*@TODO include the prefix name @param string $dir @return boolean bo \*/ - public function **getRealBackupPath**($filename = null) */\*\* get the path to use for backup (customBackupDir if specified, or default)*@param string $filename filename to use @return string full path \*/ - public static function **getBackupPath**($filename) */\*\* Get the full path of the backup file \* @param string $filename prefix of the backup file (datetime will be the second part) @return The full path of the backup file, or false if the backup file does not exists \*/* - public function **getBackupURL**() */\*\* Get the URL used to retreive this backup file \* @return The url used to request the backup file \*/* - public function **delete**() */\*\* Delete the current backup file \* @return boolean Deletion result, true on success \*/* - public function **deleteSelection**($list) */\*\* Deletes a range of backup files \* @return boolean True on success \*/* - public function **add**() */\*\* Creates a new backup file \* @return boolean true on successful backup \*/* # class Crypt\_Blowfish ./classes/Blowfish.php # class CarrierCore extends ObjectModel ./classes/Carrier.php - public function **\_\_construct**($id = null, $id\_lang = null) - public function **add**($autodate = true, $null\_values = false) - public function **delete**() */\*\* @since 1.5.0 @see ObjectModel::delete() \*/* - public function **setConfiguration**($id\_old) */\*\* Change carrier id in delivery prices when updating a carrier \* @param integer $id\_old Old id carrier \*/* - public function **getDeliveryPriceByWeight**($total\_weight, $id\_zone) */\*\* Get delivery prices for a given order \* @param floatval $totalWeight Order total weight @param integer $id\_zone Zone id (for customer delivery address) @return float Delivery price \*/* - public static function **checkDeliveryPriceByWeight**($id\_carrier, $total\_weight, $id\_zone) - public function **getMaxDeliveryPriceByWeight**($id\_zone) - public function **getDeliveryPriceByPrice**($order\_total, $id\_zone, $id\_currency = null) */\*\* Get delivery prices for a given order \* @param floatval $orderTotal Order total to pay @param integer $id\_zone Zone id (for customer delivery address) @return float Delivery price \*/* - public static function **checkDeliveryPriceByPrice**($id\_carrier, $order\_total, $id\_zone, $id\_currency = null) */\*\* Check delivery prices for a given order \* @param id\_carrier @param floatval $orderTotal Order total to pay @param integer $id\_zone Zone id (for customer delivery address) @param integer $id\_currency @return float Delivery price \*/* - public function **getMaxDeliveryPriceByPrice**($id\_zone) - public static function **getDeliveryPriceByRanges**($range\_table, $id\_carrier) */\*\* Get delivery prices for a given shipping method (price/weight) \* @param string $rangeTable Table name (price or weight) @return array Delivery prices \*/* - public static function **getCarriers**($id\_lang, $active = false, $delete = false, $id\_zone = false, $ids\_group = null, $modules\_filters = self::PS\_CARRIERS\_ONLY) */\*\* Get all carriers in a given language \* @param integer $id\_lang Language id @param $modules\_filters, possible values: PS\_CARRIERS\_ONLY CARRIERS\_MODULE CARRIERS\_MODULE\_NEED\_RANGE PS\_CARRIERS\_AND\_CARRIER\_MODULES\_NEED\_RANGE ALL\_CARRIERS @param boolean $active Returns only active carriers when true @return array Carriers \*/* - public static function **getDeliveredCountries**($id\_lang, $active\_countries = false, $active\_carriers = false, $contain\_states = null) - public static function **getDefaultCarrierSelection**($carriers, $default\_carrier = 0) */\*\* Return the default carrier to use \* @param array $carriers @param array $defaultCarrier the last carrier selected @return number the id of the default carrier \*/* - public static function **getCarriersForOrder**($id\_zone, $groups = null, $cart = null) */\*\* \* @param int $id\_zone @param Array $groups group of the customer @return Array \*/* - public static function **checkCarrierZone**($id\_carrier, $id\_zone) - public function **getZones**() */\*\* Get all zones \* @return array Zones \*/* - public function **getZone**($id\_zone) */\*\* Get a specific zones \* @return array Zone \*/* - public function **addZone**($id\_zone) */\*\* Add zone \*/* - public function **deleteZone**($id\_zone) */\*\* Delete zone \*/* - public function **getGroups**() */\*\* Gets a specific group \* @since 1.5.0 @return array Group \*/* - public function **deleteDeliveryPrice**($range\_table) */\*\* Clean delivery prices (weight/price) \* @param string $rangeTable Table name to clean (weight or price according to shipping method) @return boolean Deletion result \*/* - public function **addDeliveryPrice**($price\_list) */\*\* Add new delivery prices \* @param array $priceList Prices list in multiple arrays (changed to array since 1.5.0) @return boolean Insertion result \*/* - public function **copyCarrierData**($old\_id) */\*\* Copy old carrier informations when update carrier \* @param integer $oldId Old id carrier (copy from that id) \*/* - public static function **getCarrierByReference**($id\_reference) */\*\* Get carrier using the reference id \*/* - public function **isUsed**() */\*\* Check if carrier is used (at least one order placed) \* @return integer Order count for this carrier \*/* - public function **getShippingMethod**() - public function **getRangeTable**() - public function **getRangeObject**() - public function **getRangeSuffix**($currency = null) - public function **getIdTaxRulesGroup**(Context $context = null) - public static function **getIdTaxRulesGroupByIdCarrier**($id\_carrier, Context $context = null) - public function **deleteTaxRulesGroup**(array $shops = null) - public function **setTaxRulesGroup**($id\_tax\_rules\_group, $all\_shops = false) - public function **getTaxesRate**(Address $address) */\*\* Returns the taxes rate associated to the carrier \* @since 1.5 @param Address $address @return \*/* - public function **getTaxCalculator**(Address $address) */\*\* Returns the taxes calculator associated to the carrier \* @since 1.5 @param Address $address @return \*/* - public static function **sqlDeliveryRangeShop**($range\_table, $alias = ‘d’) */\*\* This tricky method generates a sql clause to check if ranged data are overloaded by multishop \* @since 1.5.0 @param string $rangeTable @return string \*/* - public function **updatePosition**($way, $position) */\*\* Moves a carrier \* @since 1.5.0 @param boolean $way Up (1) or Down (0) @param integer $position @return boolean Update result \*/* - public static function **cleanPositions**() */\*\* Reorders carrier positions. Called after deleting a carrier. \* @since 1.5.0 @return bool $return \*/* - public static function **getHigherPosition**() */\*\* Gets the highest carrier position \* @since 1.5.0 @return int $position \*/* - public static function **getAvailableCarrierList**(Product $product, $id\_warehouse, $id\_address\_delivery = null, $id\_shop = null, $cart = null) */\*\* For a given {product, warehouse}, gets the carrier available \* @since 1.5.0 @param Product $product The id of the product, or an array with at least the package size and weight @return array \*/* - public static function **assignGroupToAllCarriers**($id\_group\_list, $exception = null) */\*\* Assign one (ore more) group to all carriers*@since 1.5.0 @param int|array $id\_group\_list group id or list of group ids @param array $exception list of id carriers to ignore \*/ # class CartCore extends ObjectModel ./classes/Cart.php - public function **\_\_construct**($id = null, $id\_lang = null) - public function **add**($autodate = true, $null\_values = false) - public function **update**($null\_values = false) - public function **updateAddressId**($id\_address, $id\_address\_new) */\*\* Update the address id of the cart*@param int $id\_address Current address id to change @param int $id\_address\_new New address id \*/ - public function **delete**() - public static function **getTaxesAverageUsed**($id\_cart) - public function **getDiscounts**($lite = false, $refresh = false) */\*\* @deprecated 1.5.0, use Cart-\>getCartRules() \*/* - public function **getCartRules**($filter = CartRule::FILTER\_ACTION\_ALL) - public function **getDiscountsCustomer**($id\_cart\_rule) - public function **getLastProduct**() - public function **getProducts**($refresh = false, $id\_product = false, $id\_country = null) */\*\* Return cart products \* @result array Products \*/* - public static function **cacheSomeAttributesLists**($ipa\_list, $id\_lang) - public function **nbProducts**() */\*\* Return cart products quantity \* @result integer Products quantity \*/* - public static function **getNbProducts**($id) - public function **addDiscount**($id\_cart\_rule) */\*\* @deprecated 1.5.0, use Cart-\>addCartRule() \*/* - public function **addCartRule**($id\_cart\_rule) - public function **containsProduct**($id\_product, $id\_product\_attribute = 0, $id\_customization = false, $id\_address\_delivery = 0) - public function **updateQty**($quantity, $id\_product, $id\_product\_attribute = null, $id\_customization = false, */\*\* Update product quantity \* @param integer $quantity Quantity to add (or substract) @param integer $id\_product Product ID @param integer $id\_product\_attribute Attribute ID if needed @param string $operator Indicate if quantity must be increased or decreased \*/* - public function **\_addCustomization**($id\_product, $id\_product\_attribute, $index, $type, $field, $quantity) */\*\* Add customization item to database \* @param int $id\_product @param int $id\_product\_attribute @param int $index @param int $type @param string $field @param int $quantity @return boolean success \*/* - public function **orderExists**() */\*\* Check if order has already been placed \* @return boolean result \*/* - public function **deleteDiscount**($id\_cart\_rule) */\*\* @deprecated 1.5.0, use Cart-\>removeCartRule() \*/* - public function **removeCartRule**($id\_cart\_rule) - public function **deleteProduct**($id\_product, $id\_product\_attribute = null, $id\_customization = null, $id\_address\_delivery = 0) */\*\* Delete a product from the cart \* @param integer $id\_product Product ID @param integer $id\_product\_attribute Attribute ID if needed @param integer $id\_customization Customization id @return boolean result \*/* - public static function **getTotalCart**($id\_cart, $use\_tax\_display = false, $type = CART::BOTH) - public static function **getOrderTotalUsingTaxCalculationMethod**($id\_cart) - public function **getOrderTotal**($with\_taxes = true, $type = Cart::BOTH, $products = null, $id\_carrier = null, $use\_cache = true) */\*\* This function returns the total cart amount \* Possible values for $type: Cart::ONLY\_PRODUCTS Cart::ONLY\_DISCOUNTS Cart::BOTH Cart::BOTH\_WITHOUT\_SHIPPING Cart::ONLY\_SHIPPING Cart::ONLY\_WRAPPING Cart::ONLY\_PRODUCTS\_WITHOUT\_SHIPPING Cart::ONLY\_PHYSICAL\_PRODUCTS\_WITHOUT\_SHIPPING \* @param boolean $withTaxes With or without taxes @param integer $type Total type @param boolean $use\_cache Allow using cache of the method CartRule::getContextualValue @return float Order total \*/* - public function **getGiftWrappingPrice**($with\_taxes = true, $id\_address = null) */\*\* Get the gift wrapping price @param boolean $with\_taxes With or without taxes @return gift wrapping price \*/* - public function **getNbOfPackages**() */\*\* Get the number of packages*@return int number of packages \*/ - public function **getPackageList**($flush = false) */\*\* Get products grouped by package and by addresses to be sent individualy (one package = one shipping cost). \* @return array array( 0 =\> array( // First address 0 =\> array( // First package ‘product\_list’ =\> array(…), ‘carrier\_list’ =\> array(…), ‘id\_warehouse’ =\> array(…), ), ), ); @todo Add avaibility check \*/* - public function **getPackageIdWarehouse**($package, $id\_carrier = null) - public function **getDeliveryOptionList**(Country $default\_country = null, $flush = false) */\*\* Get all deliveries options available for the current cart @param Country $default\_country @param boolean $flush Force flushing cache \* @return array array( 0 =\> array( // First address ’12,’ =\> array( // First delivery option available for this address carrier\_list =\> array( 12 =\> array( // First carrier for this option ‘instance’ =\> Carrier Object, ‘logo’ =\> , ‘price\_with\_tax’ =\> 12.4, ‘price\_without\_tax’ =\> 12.4, ‘package\_list’ =\> array( 1, 3, ), ), ), is\_best\_grade =\> true, // Does this option have the biggest grade (quick shipping) for this shipping address is\_best\_price =\> true, // Does this option have the lower price for this shipping address unique\_carrier =\> true, // Does this option use a unique carrier total\_price\_with\_tax =\> 12.5, total\_price\_without\_tax =\> 12.5, position =\> 5, // Average of the carrier position ), ), ); If there are no carriers available for an address, return an empty array \*/* - public static function **sortDeliveryOptionList**($option1, $option2) */\*\**Sort list of option delivery by parameters define in the BO @param $option1 @param $option2 @return int -1 if $option 1 must be placed before and 1 if the $option1 must be placed after the $option2 \*/ - public function **carrierIsSelected**($id\_carrier, $id\_address) - public function **simulateCarriersOutput**(Country $default\_country = null, $flush = false) */\*\* Get all deliveries options available for the current cart formated like Carriers::getCarriersForOrder This method was wrote for retrocompatibility with 1.4 theme New theme need to use Cart::getDeliveryOptionList() to generate carriers option in the checkout process \* @since 1.5.0 \* @param Country $default\_country @param boolean $flush Force flushing cache \* \*/* - public function **simulateCarrierSelectedOutput**() - public static function **intifier**($string, $delimiter = ‘,’) */\*\* Translate a string option\_delivery identifier (‘24,3,’) in a int (3240002000) \* The option\_delivery identifier is a list of integers separated by a ‘,’. This method replace the delimiter by a sequence of ‘0’. The size of this sequence is fixed by the first digit of the return \* @return int \*/* - public static function **desintifier**($int, $delimiter = ‘,’) */\*\* Translate a int option\_delivery identifier (3240002000) in a string (‘24,3,’) \*/* - public function **isMultiAddressDelivery**() */\*\* Does the cart use multiple address @return boolean \*/* - public function **getAddressCollection**() */\*\* Get all delivery addresses object for the current cart \*/* - public function **setDeliveryOption**($delivery\_option = null) */\*\* Set the delivery option and id\_carrier, if there is only one carrier \*/* - public function **getDeliveryOption**($default\_country = null, $dontAutoSelectOptions = false, $use\_cache = true) */\*\* Get the delivery option seleted, or if no delivery option was selected, the cheapest option for each address @return array delivery option \*/* - public function **getTotalShippingCost**($delivery\_option = null, $use\_tax = true, Country $default\_country = null) */\*\* Return shipping total for the cart \* @param array $delivery\_option Array of the delivery option for each address @param booleal $use\_tax @param Country $default\_country @return float Shipping total \*/* - public function **getCarrierCost**($id\_carrier, $useTax = true, Country $default\_country = null, $delivery\_option = null) */\*\* Return shipping total of a specific carriers for the cart \* @param int $id\_carrier @param array $delivery\_option Array of the delivery option for each address @param booleal $useTax @param Country $default\_country @return float Shipping total \*/* - public function **getOrderShippingCost**($id\_carrier = null, $use\_tax = true, Country $default\_country = null, $product\_list = null) */\*\* @deprecated 1.5.0, use Cart-\>getPackageShippingCost() \*/* - public function **getPackageShippingCost**($id\_carrier = null, $use\_tax = true, Country $default\_country = null, $product\_list = null, $id\_zone = null) */\*\* Return package shipping cost \* @param integer $id\_carrier Carrier ID (default : current carrier) @param booleal $use\_tax @param Country $default\_country @param Array $product\_list @param array $product\_list List of product concerned by the shipping. If null, all the product of the cart are used to calculate the shipping cost \* @return float Shipping total \*/* - public function **getTotalWeight**($products = null) */\*\* Return cart weight @return float Cart weight \*/* - public function **checkDiscountValidity**($obj, $discounts, $order\_total, $products, $check\_cart\_discount = false) */\*\* @deprecated 1.5.0 \*/* - public function **getSummaryDetails**($id\_lang = null, $refresh = false) */\*\* Return useful informations for cart \* @return array Cart details \*/* - public function **checkQuantities**() - public static function **lastNoneOrderedCart**($id\_customer) - public function **isVirtualCart**($strict = false) */\*\* Check if cart contains only virtual products \* @return boolean true if is a virtual cart or false \*/* - public static function **getCartByOrderId**($id\_order) */\*\* Build cart object from provided id\_order \* @param int $id\_order @return Cart|bool \*/* - public static function **getCartIdByOrderId**($id\_order) - public function **addTextFieldToProduct**($id\_product, $index, $type, $text\_value) */\*\* Add customer’s text \* @params int $id\_product @params int $index @params int $type @params string $textValue \* @return bool Always true \*/* - public function **addPictureToProduct**($id\_product, $index, $type, $file) */\*\* Add customer’s pictures \* @return bool Always true \*/* - public function **deletePictureToProduct**($id\_product, $index) - public function **deleteCustomizationToProduct**($id\_product, $index) */\*\* Remove a customer’s customization \* @param int $id\_product @param int $index @return bool \*/* - public function **getProductCustomization**($id\_product, $type = null, $not\_in\_cart = false) */\*\* Return custom pictures in this cart for a specified product \* @param int $id\_product @param int $type only return customization of this type @param bool $not\_in\_cart only return customizations that are not in cart already @return array result rows \*/* - public static function **getCustomerCarts**($id\_customer, $with\_order = true) - public static function **replaceZeroByShopName**($echo, $tr) - public function **duplicate**() - public function **getWsCartRows**() - public function **setWsCartRows**($values) - public function **setProductAddressDelivery**($id\_product, $id\_product\_attribute, $old\_id\_address\_delivery, $new\_id\_address\_delivery) - public function **duplicateProduct**($id\_product, $id\_product\_attribute, $id\_address\_delivery, - public function **setNoMultishipping**() */\*\* Update products cart address delivery with the address delivery of the cart \*/* - public function **autosetProductAddress**() */\*\* Set an address to all products on the cart without address delivery \*/* - public function **deleteAssociations**() - public static function **isGuestCartByCartId**($id\_cart) */\*\* isGuestCartByCartId \* @param int $id\_cart @return bool true if cart has been made by a guest customer \*/* - public function **isCarrierInRange**($id\_carrier, $id\_zone) */\*\* isCarrierInRange \* Check if the specified carrier is in range \* @id\_carrier int @id\_zone int \*/* - public function **isAllProductsInStock**($ignore\_virtual = false, $exclusive = false) */\*\* @param bool $ignore\_virtual Ignore virtual product @param bool $exclusive If true, the validation is exclusive : it must be present product in stock and out of stock @since 1.5.0*@return bool false is some products from the cart are out of stock \*/ - public static function **addExtraCarriers**(&$array) */\*\**Execute hook displayCarrierList (extraCarrier) and merge theme to the $array @param array $array \*/ - public function **getDeliveryAddressesWithoutCarriers**($return\_collection = false) */\*\* Get all the ids of the delivery addresses without carriers*@param bool $return\_collection Return a collection@return array Array of address id or of address object \*/ # class CartRuleCore extends ObjectModel ./classes/CartRule.php - public function **add**($autodate = true, $null\_values = false) */\*\* @see ObjectModel::add() \*/* - public function **update**($null\_values = false) - public function **delete**() */\*\* @see ObjectModel::delete() \*/* - public static function **copyConditions**($id\_cart\_rule\_source, $id\_cart\_rule\_destination) */\*\* Copy conditions from one cart rule to an other \* @static @param int $id\_cart\_rule\_source @param int $id\_cart\_rule\_destination \*/* - public static function **getIdByCode**($code) */\*\* Retrieves the id associated to the given code \* @static @param string $code @return int|bool \*/* - public static function **getCustomerCartRules**($id\_lang, $id\_customer, $active = false, $includeGeneric = true, $inStock = false, Cart $cart = null) */\*\* @static @param $id\_lang @param $id\_customer @param bool $active @param bool $includeGeneric @param bool $inStock @param Cart|null $cart @return array \*/* - public function **usedByCustomer**($id\_customer) */\*\* @param $id\_customer @return bool \*/* - public static function **cartRuleExists**($name) */\*\* @static @param $name @return bool \*/* - public static function **deleteByIdCustomer**($id\_customer) */\*\* @static @param $id\_customer @return bool \*/* - public function **getProductRuleGroups**() */\*\* @return array \*/* - public function **getProductRules**($id\_product\_rule\_group) */\*\* @param $id\_product\_rule\_group @return array (‘type’ =\> ? , ‘values’ =\> ?) \*/* - public function **checkValidity**(Context $context, $alreadyInCart = false, $display\_error = true) */\*\* Check if this cart rule can be applied \* @param Context $context @param bool $alreadyInCart Check if the voucher is already on the cart @param bool $display\_error Display error @return bool|mixed|string \*/* - public function **getContextualValue**($use\_tax, Context $context = null, $filter = null, $package = null, $use\_cache = true) */\*\* The reduction value is POSITIVE \* @param bool $use\_tax @param Context $context @param boolean $use\_cache Allow using cache to avoid multiple free gift using multishipping @return float|int|string \*/* - public static function **cleanCache**() */\*\* Make sure caches are empty Must be called before calling multiple time getContextualValue() \*/* - public function **getAssociatedRestrictions**($type, $active\_only, $i18n) - public static function **autoRemoveFromCart**($context = null) - public static function **autoAddToCart**(Context $context = null) */\*\* @static @param Context|null $context @return mixed \*/* - public static function **isFeatureActive**() */\*\* @static @return bool \*/* - public static function **cleanProductRuleIntegrity**($type, $list) */ When an entity associated to a product rule (product, category, attribute, supplier, manufacturer…) is deleted, the product rules must be updated \*/* - public static function **getCartsRuleByCode**($name, $id\_lang) */\*\* @static @param $name @param $id\_lang @return array \*/* # class CategoryCore extends ObjectModel ./classes/Category.php - public function **\_\_construct**($id\_category = null, $id\_lang = null, $id\_shop = null) - public static function **getDescriptionClean**($description) */\*\* Allows to display the category description without HTML tags and slashes \* @return string \*/* - public function **add**($autodate = true, $null\_values = false) - public function **update**($null\_values = false) */\*\* update category positions in parent \* @param mixed $null\_values @return void \*/* - public function **toggleStatus**() */\*\* @see ObjectModel::toggleStatus() \*/* - public function **recurseLiteCategTree**($max\_depth = 3, $current\_depth = 0, $id\_lang = null, $excluded\_ids\_array = null) */\*\* Recursive scan of subcategories \* @param integer $max\_depth Maximum depth of the tree (i.e. 2 =\> 3 levels depth) @param integer $current\_depth specify the current depth in the tree (don’t use it, only for rucursivity!) @param integer $id\_lang Specify the id of the language used @param array $excluded\_ids\_array specify a list of ids to exclude of results \* @return array Subcategories lite tree \*/* - public static function **recurseCategory**($categories, $current, $id\_category = 1, $id\_selected = 1) - public function **deleteLite**() - public function **delete**() - public function **deleteSelection**($categories) */\*\* Delete several categories from database \* return boolean Deletion result \*/* - public function **calcLevelDepth**() */\*\* Get the depth level for the category \* @return integer Depth level \*/* - public static function **regenerateEntireNtree**() */\*\* Re-calculate the values of all branches of the nested tree \*/* - public function **recalculateLevelDepth**($id\_category) */\*\* Updates level\_depth for all children of the given id\_category \* @param integer $id\_category parent category \*/* - public static function **getCategories**($id\_lang = false, $active = true, $order = true, $sql\_filter = », $sql\_sort = », $sql\_limit = ») */\*\* Return available categories \* @param integer $id\_lang Language ID @param boolean $active return only active categories @return array Categories \*/* - public static function **getSimpleCategories**($id\_lang) - public function **getShopID**() - public function **getSubCategories**($id\_lang, $active = true) */\*\* Return current category childs \* @param integer $id\_lang Language ID @param boolean $active return only active categories @return array Categories \*/* - public function **getProducts**($id\_lang, $p, $n, $order\_by = null, $order\_way = null, $get\_total = false, $active = true, $random = false, $random\_number\_products = 1, $check\_access = true, Context $context = null) */\*\* Return current category products \* @param integer $id\_lang Language ID @param integer $p Page number @param integer $n Number of products per page @param boolean $get\_total return the number of results instead of the results themself @param boolean $active return only active products @param boolean $random active a random filter for returned products @param int $random\_number\_products number of products to return if random is activated @param boolean $check\_access set to false to return all products (even if customer hasn’t access) @return mixed Products or number of products \*/* - public static function **getHomeCategories**($id\_lang, $active = true) */\*\* Return main categories \* @param integer $id\_lang Language ID @param boolean $active return only active categories @return array categories \*/* - public static function **getRootCategory**($id\_lang = null, Shop $shop = null) - public static function **getChildren**($id\_parent, $id\_lang, $active = true, $id\_shop = false) */\*\* \* @param int $id\_parent @param int $id\_lang @param bool $active @return array \*/* - public function **getAllChildren**($id\_lang = null) */\*\* Return an array of all children of the current category \* @param int $id\_lang @return Collection \*/* - public static function **getChildrenWithNbSelectedSubCat**($id\_parent, $selected\_cat, $id\_lang, Shop $shop = null, $use\_shop\_context = true) */\*\* This method allow to return children categories with the number of sub children selected for a product \* @param int $id\_parent @param int $id\_product @param int $id\_lang @return array \*/* - public static function **duplicateProductCategories**($id\_old, $id\_new) */\*\* Copy products from a category to another \* @param integer $id\_old Source category ID @param boolean $id\_new Destination category ID @return boolean Duplication result \*/* - public static function **checkBeforeMove**($id\_category, $id\_parent) */\*\* Check if category can be moved in another one. The category cannot be moved in a child category. \* @param integer $id\_category current category @param integer $id\_parent Parent candidate @return boolean Parent validity \*/* - public static function **getLinkRewrite**($id\_category, $id\_lang) - public function **getLink**(Link $link = null) - public function **getName**($id\_lang = null) - public static function **searchByName**($id\_lang, $query, $unrestricted = false) */\*\* Light back office search for categories \* @param integer $id\_lang Language ID @param string $query Searched string @param boolean $unrestricted allows search without lang and includes first category and exact match @return array Corresponding categories \*/* - public static function **searchByNameAndParentCategoryId**($id\_lang, $category\_name, $id\_parent\_category) */\*\* Retrieve category by name and parent category id \* @param integer $id\_lang Language ID @param string $category\_name Searched category name @param integer $id\_parent\_category parent category ID @return array Corresponding category \*/* - public function **getParentsCategories**($id\_lang = null) */\*\* Get Each parent category of this category until the root category \* @param integer $id\_lang Language ID @return array Corresponding categories \*/* - public static function **categoryExists**($id\_category) */\*\* Specify if a category already in base \* @param $id\_category Category id @return boolean \*/* - public function **cleanGroups**() - public function **cleanAssoProducts**() - public function **addGroups**($groups) - public function **getGroups**() - public function **addGroupsIfNoExist**($id\_group) - public function **checkAccess**($id\_customer) */\*\* checkAccess return true if id\_customer is in a group allowed to see this category. \* @param mixed $id\_customer @access public @return boolean true if access allowed for customer $id\_customer \*/* - public function **updateGroup**($list) */\*\* Update customer groups associated to the object \* @param array $list groups \*/* - public static function **setNewGroupForHome**($id\_group) - public function **updatePosition**($way, $position) - public static function **cleanPositions**($id\_category\_parent = null) */\*\* cleanPositions keep order of category in $id\_category\_parent, but remove duplicate position. Should not be used if positions are clean at the beginning ! \* @param mixed $id\_category\_parent @return boolean true if succeed \*/* - public static function **getLastPosition**($id\_category\_parent, $id\_shop) */\* this function return the number of category + 1 having $id\_category\_parent as parent. \* @todo rename that function to make it understandable (getNewLastPosition for example) @param int $id\_category\_parent the parent category @param int $id\_shop @return int \*/* - public static function **getUrlRewriteInformations**($id\_category) - public static function **getInterval**($id) */\*\* Return nleft and nright fields for a given category \* @since 1.5.0 @param int $id @return array \*/* - public function **inShop**(Shop $shop = null) */\*\* Check if current category is a child of shop root category \* @since 1.5.0 @param Shop $shop @return bool \*/* - public static function **inShopStatic**($id\_category, Shop $shop = null) - public function **getChildrenWs**() - public function **getProductsWs**() - public function **getDuplicatePosition**() */\*\* Search for another category with the same parent and the same position \* @return array first category found \*/* - public function **getWsNbProductsRecursive**() - public static function **getCategoryInformations**($ids\_category, $id\_lang = null) */\*\* \* @param Array $ids\_category @param int $id\_lang @return Array \*/* - public function **isParentCategoryAvailable**($id\_shop) */\*\* @param $id\_shop @return bool \*/* - public function **addShop**($id\_shop) */\*\* Add association between shop and cateogries @param int $id\_shop @return bool \*/* - public static function **getRootCategories**($id\_lang = null, $active = true) - public static function **getCategoriesWithoutParent**() - public function **isRootCategoryForAShop**() - public static function **getTopCategory**($id\_lang = null) */\*\* @static @param null $id\_lang @return Category \*/* - public function **addPosition**($position, $id\_shop = null) - public static function **getShopsByCategory**($id\_category) - public static function **updateFromShop**($categories, $id\_shop) */\*\* Update categories for a shop \* @param string $categories Categories list to associate a shop @param string $id\_shop Categories list to associate a shop @return array Update/insertion result \*/* - public function **deleteFromShop**($id\_shop) */\*\* Delete category from shop $id\_shop @param int $id\_shop @return bool \*/* - public static function **deleteCategoriesFromShop**($id\_shop) */\*\* Delete every categories @return bool \*/* - public static function **addToShop**(array $categories, $id\_shop) */\*\* Add some categories to a shop @param array $categories @return bool \*/* - public function **existsInShop**($id\_shop) # class Curve ./classes/Chart.php - /\*\* @prototype void public static function **init**(void) \*/ - public static function **init**() */\* @prototype void public static function **init**(void) \*/* - /\*\* @prototype void public function **\_\_construct**() \*/ - public function **\_\_construct**() */\* @prototype void public function **\_\_construct**() \*/* - /\*\* @prototype void public function **setSize**(int $width, int $height) \*/ - public function **setSize**($width, $height) */\* @prototype void public function **setSize**(int $width, int $height) \*/* - /\*\* @prototype void public function **setTimeMode**($from, $to, $granularity) \*/ - public function **setTimeMode**($from, $to, $granularity) */\* @prototype void public function **setTimeMode**($from, $to, $granularity) \*/* - public function **getCurve**($i) - /\*\* @prototype void public function **display**() \*/ - public function **display**() */\* @prototype void public function **display**() \*/* - public function **fetch**() - /\*\* @prototype void public function **setValues**($values) \*/ - public function **setValues**($values) */\* @prototype void public function **setValues**($values) \*/* - public function **getValues**($time\_mode = false) - /\*\* @prototype void public function **setPoint**(float $x, float $y) \*/ - public function **setPoint**($x, $y) */\* @prototype void public function **setPoint**(float $x, float $y) \*/* - public function **setLabel**($label) - public function **setType**($type) - public function **getPoint**($x) # class CMSCore extends ObjectModel ./classes/CMS.php - public function **add**($autodate = true, $null\_values = false) - public function **update**($null\_values = false) - public function **delete**() - public static function **getLinks**($id\_lang, $selection = null, $active = true, Link $link = null) - public static function **listCms**($id\_lang = null, $id\_block = false, $active = true) - public function **updatePosition**($way, $position) - public static function **cleanPositions**($id\_category) - public static function **getLastPosition**($id\_category) - public static function **getCMSPages**($id\_lang = null, $id\_cms\_category = null, $active = true) - public static function **getUrlRewriteInformations**($id\_cms) # class CMSCategoryCore extends ObjectModel ./classes/CMSCategory.php - public function **add**($autodate = true, $null\_values = false) - public function **update**($null\_values = false) - public function **recurseLiteCategTree**($max\_depth = 3, $currentDepth = 0, $id\_lang = null, $excluded\_ids\_array = null, Link $link = null) */\*\* Recursive scan of subcategories \* @param integer $max\_depth Maximum depth of the tree (i.e. 2 =\> 3 levels depth) @param integer $currentDepth specify the current depth in the tree (don’t use it, only for rucursivity!) @param array $excluded\_ids\_array specify a list of ids to exclude of results @param integer $idLang Specify the id of the language used*@return array Subcategories lite tree \*/ - public static function **getRecurseCategory**($id\_lang = null, $current = 1, $active = 1, $links = 0, Link $link = null) - public static function **recurseCMSCategory**($categories, $current, $id\_cms\_category = 1, $id\_selected = 1, $is\_html = 0) - public function **delete**() - public function **deleteSelection**($categories) */\*\* Delete several categories from database \* return boolean Deletion result \*/* - public function **calcLevelDepth**() */\*\* Get the number of parent categories \* @return integer Level depth \*/* - public static function **getCategories**($id\_lang, $active = true, $order = true) */\*\* Return available categories \* @param integer $id\_lang Language ID @param boolean $active return only active categories @return array Categories \*/* - public static function **getSimpleCategories**($id\_lang) - public function **getSubCategories**($id\_lang, $active = true) */\*\* Return current CMSCategory childs \* @param integer $id\_lang Language ID @param boolean $active return only active categories @return array Categories \*/* - public static function **hideCMSCategoryPosition**($name) */\*\* Hide CMSCategory prefix used for position \* @param string $name CMSCategory name @return string Name without position \*/* - public static function **getHomeCategories**($id\_lang, $active = true) */\*\* Return main categories \* @param integer $id\_lang Language ID @param boolean $active return only active categories @return array categories \*/* - public static function **getChildren**($id\_parent, $id\_lang, $active = true) - public static function **checkBeforeMove**($id\_cms\_category, $id\_parent) */\*\* Check if CMSCategory can be moved in another one \* @param integer $id\_parent Parent candidate @return boolean Parent validity \*/* - public static function **getLinkRewrite**($id\_cms\_category, $id\_lang) - public function **getLink**(Link $link = null) - public function **getName**($id\_lang = null) - public static function **searchByName**($id\_lang, $query, $unrestricted = false) */\*\* Light back office search for categories \* @param integer $id\_lang Language ID @param string $query Searched string @param boolean $unrestricted allows search without lang and includes first CMSCategory and exact match @return array Corresponding categories \*/* - public static function **searchByNameAndParentCMSCategoryId**($id\_lang, $CMSCategory\_name, $id\_parent\_CMSCategory) */\*\* Retrieve CMSCategory by name and parent CMSCategory id \* @param integer $id\_lang Language ID @param string $CMSCategory\_name Searched CMSCategory name @param integer $id\_parent\_CMSCategory parent CMSCategory ID @return array Corresponding CMSCategory \* @deprecated \*/* - public function **getParentsCategories**($id\_lang = null) */\*\* Get Each parent CMSCategory of this CMSCategory until the root CMSCategory \* @param integer $id\_lang Language ID @return array Corresponding categories \*/* - public function **updatePosition**($way, $position) - public static function **cleanPositions**($id\_category\_parent) - public static function **getLastPosition**($id\_category\_parent) - public static function **getUrlRewriteInformations**($id\_category) # class CollectionCore implements Iterator, ArrayAccess, Countable ./classes/Collection.php - public function **\_\_construct**($classname, $id\_lang = null) */\*\* @param string $classname @param int $id\_lang \*/* - public function **join**($association, $on = », $type = null) */\*\* Join current entity to an associated entity \* @param $association Association name @param string $on @param int $type @return Collection \*/* - public function **where**($field, $operator, $value, $method = ‘where’) */\*\* Add WHERE restriction on query \* @param string $field Field name @param string $operator List of operators : =, !=, \<\>, \<, \<=, \>, \>=, like, notlike, regexp, notregexp @param mixed $value @param string $type where|having @return Collection \*/* - public function **sqlWhere**($sql) */\*\* Add WHERE restriction on query using real SQL syntax \* @param string $sql @return Collection \*/* - public function **having**($field, $operator, $value) */\*\* Add HAVING restriction on query \* @param string $field Field name @param string $operator List of operators : =, !=, \<\>, \<, \<=, \>, \>=, like, notlike, regexp, notregexp @param mixed $value @return Collection \*/* - public function **sqlHaving**($sql) */\*\* Add HAVING restriction on query using real SQL syntax \* @param string $sql @return Collection \*/* - public function **orderBy**($field, $order = ‘asc’) */\*\* Add ORDER BY restriction on query \* @param string $field Field name @param string $order asc|desc @return Collection \*/* - public function **sqlOrderBy**($sql) */\*\* Add ORDER BY restriction on query using real SQL syntax \* @param string $sql @return Collection \*/* - public function **groupBy**($field) */\*\* Add GROUP BY restriction on query \* @param string $field Field name @return Collection \*/* - public function **sqlGroupBy**($sql) */\*\* Add GROUP BY restriction on query using real SQL syntax \* @param string $sql @return Collection \*/* - public function **getAll**($display\_query = false) */\*\* Launch sql query to create collection of objects \* @param bool $display\_query If true, query will be displayed (for debug purpose) @return Collection \*/* - public function **getFirst**() */\*\* Retrieve the first result \* @return ObjectModel \*/* - public function **getResults**() */\*\* Get results array \* @return array \*/* - public function **rewind**() */\*\* This method is called when a foreach begin \* @see Iterator::rewind() \*/* - public function **current**() */\*\* Get current result \* @see Iterator::current() @return ObjectModel \*/* - public function **valid**() */\*\* Check if there is a current result \* @see Iterator::valid() @return bool \*/* - public function **key**() */\*\* Get current result index \* @see Iterator::key() @return int \*/* - public function **next**() */\*\* Go to next result \* @see Iterator::next() \*/* - public function **count**() */\*\* Get total of results \* @see Countable::count() @return int \*/* - public function **offsetExists**($offset) */\*\* Check if a result exist \* @see ArrayAccess::offsetExists() @param $offset @return bool \*/* - public function **offsetGet**($offset) */\*\* Get a result by offset \* @see ArrayAccess::offsetGet() @param $offset @return ObjectModel \*/* - public function **offsetSet**($offset, $value) */\*\* Add an element in the collection \* @see ArrayAccess::offsetSet() @param $offset @param $value \*/* - public function **offsetUnset**($offset) */\*\* Delete an element from the collection \* @see ArrayAccess::offsetUnset() @param $offset \*/* # class CombinationCore extends ObjectModel ./classes/Combination.php - public function **delete**() - public function **add**($autodate = true, $null\_values = false) - public function **deleteAssociations**() - public function **setAttributes**($ids\_attribute) - public function **setWsProductOptionValues**($values) - public function **getWsProductOptionValues**() - public function **getWsImages**() - public function **setImages**($ids\_image) - public function **setWsImages**($values) - public function **getAttributesName**($id\_lang) - public static function **isFeatureActive**() */\*\* This method is allow to know if a feature is active @since 1.5.0.1 @return bool \*/* - public static function **isCurrentlyUsed**($table = null, $has\_active\_column = false) */\*\* This method is allow to know if a Combination entity is currently used @since 1.5.0.1 @param $table @param $has\_active\_column @return bool \*/* - public static function **getIdByReference**($id\_product, $reference) */\*\* For a given product\_attribute reference, returns the corresponding id \* @param int $id\_product @param string $reference @return int id \*/* - public static function **getPrice**($id\_product\_attribute) */\*\* Retrive the price of combination \* @since 1.5.0 @param int $id\_product\_attribute @return float mixed \*/* # class CompareProductCore extends ObjectModel ./classes/CompareProduct.php - public static function **getCompareProducts**($id\_compare) */\*\* Get all compare products of the customer @param int $id\_customer @return array \*/* - public static function **addCompareProduct**($id\_compare, $id\_product) */\*\* Add a compare product for the customer @param int $id\_customer, int $id\_product @return boolean \*/* - public static function **removeCompareProduct**($id\_compare, $id\_product) */\*\* Remove a compare product for the customer @param int $id\_compare @param int $id\_product @return boolean \*/* - public static function **getNumberProducts**($id\_compare) */\*\* Get the number of compare products of the customer @param int $id\_compare @return int \*/* - public static function **cleanCompareProducts**($period = ‘week’) */\*\* Clean entries which are older than the period @param string $period @return void \*/* - public static function **getIdCompareByIdCustomer**($id\_customer) */\*\* Get the id\_compare by id\_customer @param integer $id\_customer @return integer $id\_compare \*/* # class ConfigurationCore extends ObjectModel ./classes/Configuration.php - public function **getFieldsLang**() */\*\* @see ObjectModel::getFieldsLang() @return array Multilingual fields \*/* - public static function **getIdByName**($key, $id\_shop\_group = null, $id\_shop = null) */\*\* Return ID a configuration key \* @param string $key @param int $id\_shop\_group @param int $id\_shop \*/* - public static function **loadConfiguration**() */\*\* Load all configuration data \*/* - public static function **get**($key, $id\_lang = null, $id\_shop\_group = null, $id\_shop = null) */\*\* Get a single configuration value (in one language only) \* @param string $key Key wanted @param integer $id\_lang Language ID @return string Value \*/* - public static function **getGlobalValue**($key, $id\_lang = null) - public static function **getInt**($key, $id\_shop\_group = null, $id\_shop = null) */\*\* Get a single configuration value (in multiple languages) \* @param string $key Key wanted @param int $id\_shop\_group @param int $id\_shop @return array Values in multiple languages \*/* - public static function **getMultiple**($keys, $id\_lang = null, $id\_shop\_group = null, $id\_shop = null) */\*\* Get several configuration values (in one language only) \* @param array $keys Keys wanted @param integer $id\_lang Language ID @return array Values \*/* - public static function **hasKey**($key, $id\_lang = null, $id\_shop\_group = null, $id\_shop = null) */\*\* Check if key exists in configuration \* @param string $key @param int $id\_lang @param int $id\_shop\_group @param int $id\_shop @return bool \*/* - public static function **set**($key, $values, $id\_shop\_group = null, $id\_shop = null) */\*\* Set TEMPORARY a single configuration value (in one language only) \* @param string $key Key wanted @param mixed $values $values is an array if the configuration is multilingual, a single string else. @param int $id\_shop\_group @param int $id\_shop \*/* - public static function **updateGlobalValue**($key, $values, $html = false) */\*\* Update configuration key for global context only \* @param string $key @param mixed $values @param bool $html @return bool \*/* - public static function **updateValue**($key, $values, $html = false, $id\_shop\_group = null, $id\_shop = null) */\*\* Update configuration key and value into database (automatically insert if key does not exist) \* @param string $key Key @param mixed $values $values is an array if the configuration is multilingual, a single string else. @param boolean $html Specify if html is authorized in value @param int $id\_shop\_group @param int $id\_shop @return boolean Update result \*/* - public static function **deleteByName**($key) */\*\* Delete a configuration key in database (with or without language management) \* @param string $key Key to delete @return boolean Deletion result \*/* - public static function **deleteFromContext**($key) */\*\* Delete configuration key from current context. \* @param string $key \*/* - public static function **hasContext**($key, $id\_lang, $context) */\*\* Check if configuration var is defined in given context \* @param string $key @param int $id\_lang @param int $context \*/* - public static function **isOverridenByCurrentContext**($key) - public static function **isLangKey**($key) */\*\* Check if a key was loaded as multi lang \* @param string $key @return bool \*/* - public function **getWebserviceObjectList**($sql\_join, $sql\_filter, $sql\_sort, $sql\_limit) */\*\* This method is override to allow TranslatedConfiguration entity \* @param $sql\_join @param $sql\_filter @param $sql\_sort @param $sql\_limit @return array \*/* # class ConfigurationTestCore ./classes/ConfigurationTest.php - public static function **getDefaultTests**() */\*\* getDefaultTests return an array of tests to executes. key are method name, value are parameters (false for no parameter) all path are \_PS\_ROOT\_DIR\_ related \* @return array \*/* - public static function **getDefaultTestsOp**() */\*\* getDefaultTestsOp return an array of tests to executes. key are method name, value are parameters (false for no parameter) \* @return array \*/* - public static function **check**($tests) */\*\* run all test defined in $tests \* @param array $tests @return array results of tests \*/* - public static function **run**($ptr, $arg = 0) - public static function **test\_phpversion**() - public static function **test\_mysql\_support**() - public static function **test\_pdo\_mysql**() - public static function **test\_magicquotes**() - public static function **test\_upload**() - public static function **test\_fopen**() - public static function **test\_system**($funcs) - public static function **test\_gd**() - public static function **test\_register\_globals**() - public static function **test\_gz**() - public static function **test\_dir**($relative\_dir, $recursive = false, &$full\_report = null) - public static function **test\_file**($file\_relative) - public static function **test\_config\_dir**($dir) - public static function **test\_sitemap**($dir) - public static function **test\_root\_dir**($dir) - public static function **test\_log\_dir**($dir) - public static function **test\_admin\_dir**($dir) - public static function **test\_img\_dir**($dir) - public static function **test\_module\_dir**($dir) - public static function **test\_cache\_dir**($dir) - public static function **test\_tools\_v2\_dir**($dir) - public static function **test\_cache\_v2\_dir**($dir) - public static function **test\_download\_dir**($dir) - public static function **test\_mails\_dir**($dir) - public static function **test\_translations\_dir**($dir) - public static function **test\_theme\_lang\_dir**($dir) - public static function **test\_theme\_pdf\_lang\_dir**($dir) - public static function **test\_theme\_cache\_dir**($dir) - public static function **test\_customizable\_products\_dir**($dir) - public static function **test\_virtual\_products\_dir**($dir) - public static function **test\_mbstring**() - public static function **test\_mcrypt**() - public static function **test\_sessions**() - public static function **test\_dom**() # class ConnectionCore extends ObjectModel ./classes/Connection.php - public function **getFields**() */\*\* @see ObjectModel::getFields() @return array \*/* - public static function **setPageConnection**($cookie, $full = true) - public static function **setNewConnection**($cookie) - public static function **setPageTime**($id\_connections, $id\_page, $time\_start, $time) - public static function **cleanConnectionsPages**() # class ConnectionsSourceCore extends ObjectModel ./classes/ConnectionsSource.php - public function **add**($autodate = true, $nullValues = false) - public static function **logHttpReferer**(Cookie $cookie = null) - public static function **getOrderSources**($id\_order) # class ContactCore extends ObjectModel ./classes/Contact.php - public static function **getContacts**($id\_lang) */\*\* Return available contacts \* @param integer $id\_lang Language ID @param Context @return array Contacts \*/* - public static function **getCategoriesContacts**() */\*\* Return available categories contacts @return array Contacts \*/* # class ContextCore ./classes/Context.php - public function **getMobileDevice**() - public static function **getContext**() */\*\* Get a singleton context \* @return Context \*/* - public function **cloneContext**() */\*\* Clone current context*@return Context \*/ # class ControllerFactoryCore ./classes/ControllerFactory.php - public static function **includeController**($className) */\*\* @deprecated since 1.5.0 \*/* - public static function **getController**($className, $auth = false, $ssl = false) */\*\* @deprecated since 1.5.0 \*/* # class CookieCore ./classes/Cookie.php - public function **\_\_construct**($name, $path = », $expire = null, $shared\_urls = null) */\*\* Get data if the cookie exists and else initialize an new one \* @param $name Cookie name before encrypting @param $path \*/* - public function **disallowWriting**() - public function **setExpire**($expire) */\*\* Set expiration date \* @param integer $expire Expiration time from now \*/* - public function **\_\_get**($key) */\*\* Magic method wich return cookie data from \_content array \* @param $key key wanted @return string value corresponding to the key \*/* - public function **\_\_isset**($key) */\*\* Magic method which check if key exists in the cookie \* @param $key key wanted @return boolean key existence \*/* - public function **\_\_set**($key, $value) */\*\* Magic method wich add data into \_content array \* @param $key key desired @param $value value corresponding to the key \*/* - public function **\_\_unset**($key) */\*\* Magic method wich delete data into \_content array \* @param $key key wanted \*/* - public function **isLogged**($withGuest = false) */\*\* Check customer informations saved into cookie and return customer validity \* @deprecated as of version 1.5 use Customer::isLogged() instead @return boolean customer validity \*/* - public function **isLoggedBack**() */\*\* Check employee informations saved into cookie and return employee validity \* @deprecated as of version 1.5 use Employee::isLoggedBack() instead @return boolean employee validity \*/* - public function **logout**() */\*\* Delete cookie As of version 1.5 don’t call this function, use Customer::logout() or Employee::logout() instead; \*/* - public function **mylogout**() */\*\* Soft logout, delete everything links to the customer but leave there affiliate’s informations. As of version 1.5 don’t call this function, use Customer::mylogout() instead; \*/* - public function **makeNewLog**() - public function **update**($nullValues = false) */\*\* Get cookie content \*/* - public function **\_\_destruct**() - public function **write**() */\*\* Save cookie with setcookie() \*/* - public function **getFamily**($origin) */\*\* Get a family of variables (e.g. « filter\_ ») \*/* - public function **unsetFamily**($origin) */\*\* \* \*/* - public function **getName**() */\*\* @return String name of cookie \*/* - public function **exists**() */\*\* Check if the cookie exists \* @since 1.5.0 @return bool \*/* # class CountryCore extends ObjectModel ./classes/Country.php - public function **delete**() - public static function **getCountries**($id\_lang, $active = false, $contain\_states = false, $list\_states = true) */\*\* @brief Return available countries \* @param integer $id\_lang Language ID @param boolean $active return only active coutries @param boolean $contain\_states return only country with states @param boolean $list\_states Include the states list with the returned list \* @return Array Countries and corresponding zones \*/* - public static function **getCountriesByIdShop**($id\_shop, $id\_lang) - public static function **getByIso**($iso\_code) */\*\* Get a country ID with its iso code \* @param string $iso\_code Country iso code @return integer Country ID \*/* - public static function **getIdZone**($id\_country) - public static function **getNameById**($id\_lang, $id\_country) */\*\* Get a country name with its ID \* @param integer $id\_lang Language ID @param integer $id\_country Country ID @return string Country name \*/* - public static function **getIsoById**($id\_country) */\*\* Get a country iso with its ID \* @param integer $id\_country Country ID @return string Country iso \*/* - public static function **getIdByName**($id\_lang = null, $country) */\*\* Get a country id with its name \* @param integer $id\_lang Language ID @param string $country Country Name @return intval Country id \*/* - public static function **getNeedZipCode**($id\_country) - public static function **getZipCodeFormat**($id\_country) - public static function **getDefaultCountryId**() */\*\* Returns the default country Id \* @deprecated as of 1.5 use $context-\>country-\>id instead @return integer default country id \*/* - public static function **getCountriesByZoneId**($id\_zone, $id\_lang) - public function **isNeedDni**() - public static function **isNeedDniByCountryId**($id\_country) - public static function **containsStates**($id\_country) - public function **affectZoneToSelection**($ids\_countries, $id\_zone) */\*\* @param $ids\_countries @param $id\_zone @return bool \*/* - public function **checkZipCode**($zip\_code) */\*\* Replace letters of zip code format And check this format on the zip code @param $zip\_code @return (bool) \*/* - public static function **addModuleRestrictions**(array $shops = array(), array $countries = array(), array $modules = array()) # class CountyCore extends ObjectModel ./classes/County.php - public function **delete**() - public static function **getCounties**($id\_state) */\*\* @deprecated since 1.5 \*/* - public function **getZipCodes**() */\*\* @deprecated since 1.5 \*/* - public function **addZipCodes**($zip\_codes) */\*\* @deprecated since 1.5 \*/* - public function **removeZipCodes**($zip\_codes) */\*\* @deprecated since 1.5 \*/* - public function **breakDownZipCode**($zip\_codes) */\*\* @deprecated since 1.5 \*/* - public static function **getIdCountyByZipCode**($id\_state, $zip\_code) */\*\* @deprecated since 1.5 \*/* - public function **isZipCodeRangePresent**($zip\_codes) */\*\* @deprecated since 1.5 \*/* - public function **isZipCodePresent**($zip\_code) */\*\* @deprecated since 1.5 \*/* - public static function **deleteZipCodeByIdCounty**($id\_county) */\*\* @deprecated since 1.5 \*/* - public static function **getIdCountyByNameAndIdState**($name, $id\_state) */\*\* @deprecated since 1.5 \*/* # class CSVCore ./classes/CSV.php - public function **\_\_construct**($collection, $filename, $delimiter = ‘;’) */\** Loads objects, filename and optionnaly a delimiter. @param Collection $collection collection of objects / array (of non-objects) @param string $filename : used later to save the file @param string $delimiter Optional : delimiter used \*/ - public function **export**() */\*\* Main function Adds headers Outputs \*/* - public function **output**($data) */\*\* Wraps data and echoes Uses defined delimiter \*/* - public static function **wrap**($data) */\*\* Escapes data @param string $data @return string $data \*/* - public function **headers**() */\**Adds headers \*/ # class CurrencyCore extends ObjectModel ./classes/Currency.php - public function **\_\_construct**($id = null, $id\_lang = null, $id\_shop = null) - public function **add**($autodate = true, $nullValues = false) */\*\* Overriding check if currency with the same iso code already exists. If it’s true, currency is doesn’t added. \* @see ObjectModelCore::add() \*/* - public static function **exists**($iso\_code, $iso\_code\_num, $id\_shop = 0) */\*\* Check if a curency already exists. \* @param int|string $iso\_code int for iso code number string for iso code @return boolean \*/* - public function **deleteSelection**($selection) - public function **delete**() - public function **getSign**($side = null) */\*\* Return formated sign \* @param string $side left or right @return string formated sign \*/* - public static function **getCurrencies**($object = false, $active = 1) */\*\* Return available currencies \* @return array Currencies \*/* - public static function **getCurrenciesByIdShop**($id\_shop = 0) - public static function **getPaymentCurrenciesSpecial**($id\_module, $id\_shop = null) - public static function **getPaymentCurrencies**($id\_module, $id\_shop = null) - public static function **checkPaymentCurrencies**($id\_module, $id\_shop = null) - public static function **getCurrency**($id\_currency) - public static function **getIdByIsoCode**($iso\_code, $id\_shop = 0) */\*\* @static @param $iso\_code @param int $id\_shop @return int \*/* - public static function **getIdByIsoCodeNum**($iso\_code\_num, $id\_shop = 0) */\**@static @param $iso\_code @param int $id\_shop @return int \*/ - public static function **getIdByQuery**($id\_shop = 0) */\*\* @static @param int $id\_shop @return DbQuery \*/* - public function **refreshCurrency**($data, $isoCodeSource, $defaultCurrency) */\*\* Refresh the currency conversion rate The XML file define conversion rate for each from a default currency ($isoCodeSource). \* @param $data XML content which contains all the conversion rates @param $isoCodeSource The default currency used in the XML file @param $defaultCurrency The default currency object \*/* - public static function **getDefaultCurrency**() - public static function **refreshCurrencies**() - public static function **getCurrent**() */\*\* Get current currency \* @deprecated as of 1.5 use $context-\>currency instead @return Currency \*/* - public static function **getCurrencyInstance**($id) # class CustomerCore extends ObjectModel ./classes/Customer.php - public function **\_\_construct**($id = null) - public function **add**($autodate = true, $null\_values = true) - public function **update**($nullValues = false) - public function **delete**() - public static function **getCustomers**() */\*\* Return customers list \* @return array Customers \*/* - public function **getByEmail**($email, $passwd = null, $ignore\_guest = true) */\*\* Return customer instance from its e-mail (optionnaly check password) \* @param string $email e-mail @param string $passwd Password is also checked if specified @return Customer instance \*/* - public static function **getCustomersByEmail**($email) */\*\* Retrieve customers by email address \* @static @param $email @return array \*/* - public static function **isBanned**($id\_customer) */\*\* Check id the customer is active or not \* @return boolean customer validity \*/* - public static function **customerExists**($email, $return\_id = false, $ignore\_guest = true) */\*\* Check if e-mail is already registered in database \* @param string $email e-mail @param $return\_id boolean @param $ignore\_guest boolean, to exclude guest customer @return Customer ID if found, false otherwise \*/* - public static function **customerHasAddress**($id\_customer, $id\_address) */\*\* Check if an address is owned by a customer \* @param integer $id\_customer Customer ID @param integer $id\_address Address ID @return boolean result \*/* - public static function **resetAddressCache**($id\_customer) - public function **getAddresses**($id\_lang) */\*\* Return customer addresses \* @param integer $id\_lang Language ID @return array Addresses \*/* - public static function **getAddressesTotalById**($id\_customer) */\*\* Count the number of addresses for a customer \* @param integer $id\_customer Customer ID @return integer Number of addresses \*/* - public static function **checkPassword**($id\_customer, $passwd) */\*\* Check if customer password is the right one \* @param string $passwd Password @return boolean result \*/* - public static function **searchByName**($query) */\*\* Light back office search for customers \* @param string $query Searched string @return array Corresponding customers \*/* - public static function **searchByIp**($ip) */\*\* Search for customers by ip address \* @param string $ip Searched string \*/* - public function **getStats**() */\*\* Return several useful statistics about customer \* @return array Stats \*/* - public function **getLastConnections**() - public function **customerIdExists**($id\_customer) - public static function **customerIdExistsStatic**($id\_customer) - public function **updateGroup**($list) */\*\* Update customer groups associated to the object \* @param array $list groups \*/* - public function **cleanGroups**() - public function **addGroups**($groups) - public static function **getGroupsStatic**($id\_customer) - public function **getGroups**() - public function **isUsed**() */\*\* @deprecated since 1.5 \*/* - public function **getBoughtProducts**() - public static function **getDefaultGroupId**($id\_customer) - public static function **getCurrentCountry**($id\_customer, Cart $cart = null) - public function **toggleStatus**() - public function **isGuest**() - public function **transformToCustomer**($id\_lang, $password = null) - public function **setWsPasswd**($passwd) - public function **isLogged**($with\_guest = false) */\*\* Check customer informations and return customer validity \* @since 1.5.0 @param boolean $with\_guest @return boolean customer validity \*/* - public function **logout**() */\*\* Logout \* @since 1.5.0 \*/* - public function **mylogout**() */\*\* Soft logout, delete everything links to the customer but leave there affiliate’s informations \* @since 1.5.0 \*/* - public function **getLastCart**($with\_order = true) - public function **getOutstanding**() - public function **getWsGroups**() - public function **setWsGroups**($result) - public function **getWebserviceObjectList**($sql\_join, $sql\_filter, $sql\_sort, $sql\_limit) */\*\* @see ObjectModel::getWebserviceObjectList() \*/* # class CustomerMessageCore extends ObjectModel ./classes/CustomerMessage.php - public static function **getMessagesByOrderId**($id\_order, $private = true) - public static function **getTotalCustomerMessages**($where = null) # class CustomerThreadCore extends ObjectModel ./classes/CustomerThread.php - public function **getWsCustomerMessages**() - public function **delete**() - public static function **getCustomerMessages**($id\_customer, $read = null) - public static function **getIdCustomerThreadByEmailAndIdOrder**($email, $id\_order) - public static function **getContacts**() - public static function **getTotalCustomerThreads**($where = null) - public static function **getMessageCustomerThreads**($id\_customer\_thread) - public static function **getNextThread**($id\_customer\_thread) # class CustomizationCore ./classes/Customization.php - public static function **getReturnedCustomizations**($id\_order) - public static function **getOrderedCustomizations**($id\_cart) - public static function **countCustomizationQuantityByProduct**($customizations) - public static function **getLabel**($id\_customization, $id\_lang) - public static function **retrieveQuantitiesFromIds**($ids\_customizations) - public static function **countQuantityByCart**($id\_cart) - public static function **isFeatureActive**() */\*\* This method is allow to know if a feature is used or active @since 1.5.0.1 @return bool \*/* - public static function **isCurrentlyUsed**($table = null, $has\_active\_column = false) */\*\* This method is allow to know if a Customization entity is currently used @since 1.5.0.1 @param $table @param $has\_active\_column @return bool \*/* # class DateRangeCore extends ObjectModel ./classes/DateRange.php - public static function **getCurrentRange**() # class DeliveryCore extends ObjectModel ./classes/Delivery.php - public function **getFields**() # class DiscountCore extends CartRule ./classes/Discount.php - public function **\_\_get**($key) - public function **\_\_set**($key, $value) - public function **\_\_call**($method, $args) - public function **add**($autodate = true, $nullValues = false, $categories = null) */\*\* @deprecated 1.5.0.1 \*/* - public function **update**($autodate = true, $nullValues = false, $categories = null) */\*\* @deprecated 1.5.0.1 \*/* - public static function **getIdByName**($code) */\*\* @deprecated 1.5.0.1 \*/* - public static function **getCustomerDiscounts**($id\_lang, $id\_customer, $active = false, $includeGenericOnes = true, $hasStock = false, Cart $cart = null) */\*\* @deprecated 1.5.0.1 \*/* - public static function **getVouchersToCartDisplay**($id\_lang, $id\_customer) */\*\* @deprecated 1.5.0.1 \*/* - public function **getValue**($nb\_discounts = 0, $order\_total\_products = 0, $shipping\_fees = 0, $id\_cart = false, $useTax = true, Currency $currency = null, Shop $shop = null) */\*\* @deprecated 1.5.0.1 \*/* - public static function **discountExists**($discountName, $id\_discount = 0) */\*\* @deprecated 1.5.0.1 \*/* - public static function **createOrderDiscount**($order, $productList, $qtyList, $name, $shipping\_cost = false, $id\_category = 0, $subcategory = 0) */\*\* @deprecated 1.5.0.1 \*/* - public static function **display**($value, $type, $currency = null) */\*\* @deprecated 1.5.0.1 \*/* # class DispatcherCore ./classes/Dispatcher.php - public static function **getInstance**() */\*\* Get current instance of dispatcher (singleton) \* @return Dispatcher \*/* - public function **dispatch**() */\*\* Find the controller and instantiate it \*/* - public function **addRoute**($route\_id, $rule, $controller, $id\_lang = null, array $keywords = array(), array $params = array()) */\*\* \* @param string $route\_id Name of the route (need to be uniq, a second route with same name will override the first) @param string $rule Url rule @param string $controller Controller to call if request uri match the rule @param int $id\_lang \*/* - public function **hasRoute**($route\_id, $id\_lang = null) */\*\* Check if a route exists \* @param string $route\_id @param int $id\_lang @return bool \*/* - public function **hasKeyword**($route\_id, $id\_lang, $keyword) */\*\* Check if a keyword is written in a route rule \* @param string $route\_id @param int $id\_lang @param string $keyword @return bool \*/* - public function **validateRoute**($route\_id, $rule, &$errors = array()) */\*\* Check if a route rule contain all required keywords of default route definition \* @param string $route\_id @param string $rule Rule to verify @param array $errors List of missing keywords \*/* - public function **createUrl**($route\_id, $id\_lang = null, array $params = array(), $force\_routes = false, $anchor = ») */\*\* Create an url from \* @param string $route\_id Name the route @param int $id\_lang @param array $params @param bool $use\_routes If false, don’t use to create this url @param string $anchor Optional anchor to add at the end of this url \*/* - public function **getController**() */\*\* Retrieve the controller from url or request uri if routes are activated \* @return string \*/* - public static function **getControllers**($dirs) */\*\* Get list of all available FO controllers \* @var mixed $dirs @return array \*/* - public static function **getControllersInDirectory**($dir) */\*\* Get list of available controllers from the specified dir \* @param string dir directory to scan (recursively) @return array \*/* # class EmployeeCore extends ObjectModel ./classes/Employee.php - public function **\_\_construct**($id = null, $id\_lang = null, $id\_shop = null) - public function **getFields**() */\*\* @see ObjectModel::getFields() @return array \*/* - public function **add**($autodate = true, $null\_values = true) - public static function **getEmployees**() */\*\* Return list of employees \*/* - public function **getByEmail**($email, $passwd = null) */\*\* Return employee instance from its e-mail (optionnaly check password) \* @param string $email e-mail @param string $passwd Password is also checked if specified @return Employee instance \*/* - public static function **employeeExists**($email) - public static function **checkPassword**($id\_employee, $passwd) */\*\* Check if employee password is the right one \* @param string $passwd Password @return boolean result \*/* - public static function **countProfile**($id\_profile, $active\_only = false) - public function **isLastAdmin**() - public function **setWsPasswd**($passwd) - public function **isLoggedBack**() */\*\* Check employee informations saved into cookie and return employee validity \* @return boolean employee validity \*/* - public function **logout**() */\*\* Logout \*/* - public function **hasAuthOnShop**($id\_shop) */\*\* Check if the employee is associated to a specific shop \* @since 1.5.0 @param int $id\_shop @return bool \*/* - public function **hasAuthOnShopGroup**($id\_shop\_group) */\*\* Check if the employee is associated to a specific shop group \* @since 1.5.0 @param int $id\_shop\_shop @return bool \*/* - public function **getDefaultShopID**() */\*\* Get default id\_shop with auth for current employee \* @since 1.5.0 @return int \*/* - public static function **getEmployeesByProfile**($id\_profile, $active\_only = false) - public function **isSuperAdmin**() */\*\* Check if current employee is super administrator \* @return bool \*/* # class FeatureCore extends ObjectModel ./classes/Feature.php - public static function **getFeature**($id\_lang, $id\_feature) */\*\* Get a feature data for a given id\_feature and id\_lang \* @param integer $id\_lang Language id @param integer $id\_feature Feature id @return array Array with feature’s data @static \*/* - public static function **getFeatures**($id\_lang, $with\_shop = true) */\*\* Get all features for a given language \* @param integer $id\_lang Language id @return array Multiple arrays with feature’s data @static \*/* - public function **deleteSelection**($selection) */\*\* Delete several objects from database \* @param array $selection Array with items to delete @return boolean Deletion result \*/* - public function **add**($autodate = true, $nullValues = false) - public function **delete**() - public function **update**($nullValues = false) - public static function **nbFeatures**($id\_lang) */\*\* Count number of features for a given language \* @param integer $id\_lang Language id @return int Number of feature @static \*/* - public static function **addFeatureImport**($name, $position = false) */\*\* Create a feature from import \* @param integer $id\_feature Feature id @param integer $id\_product Product id @param array $value Feature Value \*/* - public static function **getFeaturesForComparison**($list\_ids\_product, $id\_lang) - public static function **isFeatureActive**() */\*\* This metohd is allow to know if a feature is used or active @since 1.5.0.1 @return bool \*/* - public function **updatePosition**($way, $position, $id\_feature = null) */\*\* Move a feature @param boolean $way Up (1) or Down (0) @param integer $position @return boolean Update result \*/* - public static function **cleanPositions**() */\*\* Reorder feature position Call it after deleting a feature. \* @return bool $return \*/* - public static function **getHigherPosition**() */\*\* getHigherPosition \* Get the higher feature position \* @return integer $position \*/* # class FeatureValueCore extends ObjectModel ./classes/FeatureValue.php - public static function **getFeatureValues**($id\_feature) */\*\* Get all values for a given feature \* @param boolean $id\_feature Feature id @return array Array with feature’s values @static \*/* - public static function **getFeatureValuesWithLang**($id\_lang, $id\_feature, $custom = false) */\*\* Get all values for a given feature and language \* @param integer $id\_lang Language id @param boolean $id\_feature Feature id @return array Array with feature’s values @static \*/* - public static function **getFeatureValueLang**($id\_feature\_value) */\*\* Get all language for a given value \* @param boolean $id\_feature\_value Feature value id @return array Array with value’s languages @static \*/* - public static function **selectLang**($lang, $id\_lang) */\*\* Select the good lang in tab \* @param array $lang Array with all language @param integer $id\_lang Language id @return string String value name selected @static \*/* - public static function **addFeatureValueImport**($id\_feature, $name) - public function **add**($autodate = true, $nullValues = false) - public function **delete**() - public function **update**($nullValues = false) # class QqUploadedFileXhr ./classes/FileUploader.php - public function **\_\_construct**(array $allowedExtensions = array(), $sizeLimit = 10485760) - public function **handleUpload**() */\*\* Returns array(‘success’=\>true) or array(‘error’=\>’error message’) \*/* - public function **save**() */\**Save the file to the specified path @return boolean TRUE on success \*/ - public function **copyImage**($id\_product, $id\_image, $method = ‘auto’) - public function **getName**() - public function **getSize**() - public function **upload**($path) */\*\* Save the file to the specified path @return boolean TRUE on success \*/* - public function **save**() - public function **copyImage**($id\_product, $id\_image, $method = ‘auto’) - public function **getName**() - public function **getSize**() # class GenderCore extends ObjectModel ./classes/Gender.php - public function **\_\_construct**($id = null, $id\_lang = null, $id\_shop = null) - public static function **getGenders**($id\_lang = null) - public function **getImage**($use\_unknown = false) # class GroupCore extends ObjectModel ./classes/Group.php - public static function **getGroups**($id\_lang, $id\_shop = false) - public function **getCustomers**($count = false, $start = 0, $limit = 0, $shop\_filtering = false) - public static function **getReduction**($id\_customer = null) - public static function **getReductionByIdGroup**($id\_group) - public static function **getPriceDisplayMethod**($id\_group) - public static function **getDefaultPriceDisplayMethod**() - public function **add**($autodate = true, $null\_values = false) - public function **delete**() - public static function **isFeatureActive**() */\*\* This method is allow to know if a feature is used or active @since 1.5.0.1 @return bool \*/* - public static function **isCurrentlyUsed**($table = null, $has\_active\_column = false) */\*\* This method is allow to know if a Discount entity is currently used @since 1.5.0.1 @param $table @param $has\_active\_column @return bool \*/* - public static function **truncateModulesRestrictions**($id\_group) */\*\* Truncate all modules restrictions for the group @param integer id\_group @return boolean result \*/* - public static function **truncateRestrictionsByModule**($id\_module) */\*\* Truncate all restrictions by module @param integer id\_module @return boolean result \*/* - public static function **addModulesRestrictions**($id\_group, $modules, $shops = array(1)) */\*\* Adding restrictions modules to the group with id $id\_group @param $id\_group @param $modules @param array $shops @return bool \*/* - public static function **addRestrictionsForModule**($id\_module, $shops = array(1)) */\*\* Add restrictions for a new module We authorize every groups to the new module @param integer id\_module @param array $shops \*/* - public static function **getCurrent**() */\*\* Return current group object Use context @static @return Group Group object \*/* # class GroupReductionCore extends ObjectModel ./classes/GroupReduction.php - public function **add**($autodate = true, $null\_values = false) - public function **update**($null\_values = false) - public function **delete**() - public static function **getGroupReductions**($id\_group, $id\_lang) - public static function **getValueForProduct**($id\_product, $id\_group) - public static function **doesExist**($id\_group, $id\_category) - public static function **getGroupsByCategoryId**($id\_category) - public static function **getGroupByCategoryId**($id\_category) - public static function **getGroupsReductionByCategoryId**($id\_category) - public static function **getGroupReductionByCategoryId**($id\_category) - public static function **setProductReduction**($id\_product, $id\_group = null, $id\_category, $reduction = null) - public static function **deleteProductReduction**($id\_product) - public static function **duplicateReduction**($id\_product\_old, $id\_product) - public static function **deleteCategory**($id\_category) # class GuestCore extends ObjectModel ./classes/Guest.php - public function **userAgent**() - public static function **getFromCustomer**($id\_customer) - public function **mergeWithCustomer**($id\_guest, $id\_customer) - public static function **setNewGuest**($cookie) # class HelpAccessCore ./classes/HelpAccess.php - public static function **trackClick**($label, $version) */\** Store in the local database that the user has seen a specific help page @static @param $label @param $version \*/ - public static function **getVersion**($label) */\**Returns the last version seen of a help page seen by the user@static @param $label @return mixed \*/ - public static function **retrieveInfos**($label, $iso\_lang, $country, $version) */\**Fetch information from the help website in order to know: – if the help page exists – his version – the associated tooltip@static @param $label @param $iso\_lang @param $country @param $version@return array \*/ # class HookCore extends ObjectModel ./classes/Hook.php - public function **add**($autodate = true, $null\_values = false) - public static function **getHooks**($position = false) */\*\* Return Hooks List \* @param bool $position @return array Hooks List \*/* - public static function **getIdByName**($hook\_name) */\*\* Return hook ID from name \* @param string $hook\_name Hook name @return int Hook ID \*/* - public static function **getHookAliasList**() */\*\* Get list of hook alias \* @since 1.5.0 @return array \*/* - public static function **getRetroHookName**($hook\_name) */\*\* Return retrocompatible hook name \* @since 1.5.0 @param string $hook\_name Hook name @return int Hook ID \*/* - public static function **getHookModuleList**() */\*\* Get list of all registered hooks with modules \* @since 1.5.0 @return array \*/* - public static function **getModulesFromHook**($id\_hook, $id\_module = null) */\*\* Return Hooks List \* @since 1.5.0 @param int $id\_hook @param int $id\_module @return array Modules List \*/* - public static function **getHookModuleExecList**($hook\_name = null) */\*\* Get list of modules we can execute per hook \* @since 1.5.0 @param string $hook\_name Get list of modules for this hook if given @return array \*/* - public static function **exec**($hook\_name, $hook\_args = array(), $id\_module = null, $array\_return = false, $check\_exceptions = true) */\*\* Execute modules for specified hook \* @param string $hook\_name Hook Name @param array $hook\_args Parameters for the functions @param int $id\_module Execute hook for this module only @return string modules output \*/* - public static function **wrapLiveEdit**($display, $moduleInstance, $id\_hook) - public static function **updateOrderStatus**($newOrderStatusId, $id\_order) */\*\* @deprecated 1.5.0 \*/* - public static function **postUpdateOrderStatus**($newOrderStatusId, $id\_order) */\*\* @deprecated 1.5.0 \*/* - public static function **orderConfirmation**($id\_order) */\*\* @deprecated 1.5.0 \*/* - public static function **paymentReturn**($id\_order, $id\_module) */\*\* @deprecated 1.5.0 \*/* - public static function **PDFInvoice**($pdf, $id\_order) */\*\* @deprecated 1.5.0 \*/* - public static function **backBeforePayment**($module) */\*\* @deprecated 1.5.0 \*/* - public static function **updateCarrier**($id\_carrier, $carrier) */\*\* @deprecated 1.5.0 \*/* - public static function **preloadHookModulesCache**() */\*\* Preload hook modules cache \* @deprecated 1.5.0 use Hook::getHookModuleList() instead @return boolean preload\_needed \*/* - public static function **get**($hookName) */\*\* Return hook ID from name \* @param string $hookName Hook name @return integer Hook ID \* @deprecated since 1.5.0 use Hook::getIdByName() instead \*/* - public static function **newOrder**($cart, $order, $customer, $currency, $orderStatus) */\*\* Called when quantity of a product is updated. \* @param Product @param Order \*/* - public static function **updateQuantity**($product, $order = null) */\*\* @deprecated 1.5.0 \*/* - public static function **productFooter**($product, $category) */\*\* @deprecated 1.5.0 \*/* - public static function **productOutOfStock**($product) */\*\* @deprecated 1.5.0 \*/* - public static function **addProduct**($product) */\*\* @deprecated 1.5.0 \*/* - public static function **updateProduct**($product) */\*\* @deprecated 1.5.0 \*/* - public static function **deleteProduct**($product) */\*\* @deprecated 1.5.0 \*/* - public static function **updateProductAttribute**($id\_product\_attribute) */\*\* @deprecated 1.5.0 \*/* # class ImageCore extends ObjectModel ./classes/Image.php - public function **\_\_construct**($id = null, $id\_lang = null) - public function **add**($autodate = true, $null\_values = false) - public function **delete**() - public static function **getImages**($id\_lang, $id\_product) */\*\* Return available images for a product \* @param integer $id\_lang Language ID @param integer $id\_product Product ID @return array Images \*/* - public static function **getAllImages**() */\*\* Return Images \* @return array Images \*/* - public static function **getImagesTotal**($id\_product) */\*\* Return number of images for a product \* @param integer $id\_product Product ID @return integer number of images \*/* - public static function **getHighestPosition**($id\_product) */\*\* Return highest position of images for a product \* @param integer $id\_product Product ID @return integer highest position of images \*/* - public static function **deleteCover**($id\_product) */\*\* Delete product cover \* @param integer $id\_product Product ID @return boolean result \*/* - public static function **getCover**($id\_product) */\*\* \*Get product cover \* @param integer $id\_product Product ID @return boolean result \*/* - public static function **duplicateProductImages**($id\_product\_old, $id\_product\_new, $combination\_images) */\*\* Copy images from a product to another \* @param integer $id\_product\_old Source product ID @param boolean $id\_product\_new Destination product ID \*/* - public static function **duplicateAttributeImageAssociations**($combination\_images) */\*\* Duplicate product attribute image associations @param integer $id\_product\_attribute\_old @return boolean \*/* - public function **positionImage**($position, $direction) */\*\* Reposition image \* @param integer $position Position @param boolean $direction Direction @deprecated since version 1.5.0.1 use Image::updatePosition() instead \*/* - public function **updatePosition**($way, $position) */\*\* Change an image position and update relative positions \* @param int $way position is moved up if 0, moved down if 1 @param int $position new position of the moved image @return int success \*/* - public static function **getSize**($type) - public static function **getWidth**($params, &$smarty) - public static function **getHeight**($params, &$smarty) - public static function **clearTmpDir**() */\*\* Clear all images in tmp dir \*/* - public function **deleteProductAttributeImage**() */\*\* Delete Image – Product attribute associations for this image \*/* - public function **deleteImage**($force\_delete = false) */\*\* Delete the product image from disk and remove the containing folder if empty Handles both legacy and new image filesystems \*/* - public static function **deleteAllImages**($path, $format = ‘jpg’) */\*\* Recursively deletes all product images in the given folder tree and removes empty folders. \* @param string $path folder containing the product images to delete @param string $format image format @return bool success \*/* - public function **getExistingImgPath**() */\*\* Returns image path in the old or in the new filesystem \* @ returns string image path \*/* - public function **getImgFolder**() */\*\* Returns the path to the folder containing the image in the new filesystem \* @return string path to folder \*/* - public function **createImgFolder**() */\*\* Create parent folders for the image in the new filesystem \* @return bool success \*/* - public function **getImgPath**() */\*\* Returns the path to the image without file extension \* @return string path \*/* - public static function **getImgFolderStatic**($id\_image) */\*\* Returns the path to the folder containing the image in the new filesystem \* @param mixed $id\_image @return string path to folder \*/* - public static function **moveToNewFileSystem**($max\_execution\_time = 0) */\*\* Move all legacy product image files from the image folder root to their subfolder in the new filesystem. If max\_execution\_time is provided, stops before timeout and returns string « timeout ». If any image cannot be moved, stops and returns « false » \* @param int max\_execution\_time @return mixed success or timeout \*/* - public static function **testFileSystem**() */\*\* Try to create and delete some folders to check if moving images to new file system will be possible \* @return boolean success \*/* - public function **getPathForCreation**() */\*\* Returns the path where a product image should be created (without file format) \* @return string path \*/* # class ImageManagerCore ./classes/ImageManager.php - public static function **thumbnail**($image, $cache\_image, $size, $image\_type = ‘jpg’, $disable\_cache = false) */\*\* Generate a cached thumbnail for object lists (eg. carrier, order states…etc) \* @param string $image Real image filename @param string $cache\_image Cached filename @param int $size Desired size @param string $image\_type Image type @param bool $disable\_cache When turned on a timestamp will be added to the image URI to disable the HTTP cache @return string \*/* - public static function **checkImageMemoryLimit**($image) */\*\* Check if memory limit is too long or not \* @static @param $image @return bool \*/* - public static function **resize**($src\_file, $dst\_file, $dst\_width = null, $dst\_height = null, $file\_type = ‘jpg’, $force\_type = false) */\*\* Resize, cut and optimize image \* @param string $src\_file Image object from $\_FILE @param string $dst\_file Destination filename @param integer $dst\_width Desired width (optional) @param integer $dst\_height Desired height (optional) @param string $file\_type @return boolean Operation result \*/* - public static function **isRealImage**($filename, $file\_mime\_type = null, $mime\_type\_list = null) */\*\* Check if file is a real image \* @param string $filename File path to check @param string $file\_mime\_type File known mime type (generally from $\_FILES) @param array $mime\_type\_list Allowed MIME types @return bool \*/* - public static function **isCorrectImageFileExt**($filename) */\*\* Check if image file extension is correct \* @static @param $filename real filename @return bool true if it’s correct \*/* - public static function **validateUpload**($file, $max\_file\_size = 0) */\*\* Validate image upload (check image type and weight) \* @param array $file Upload $\_FILE value @param integer $max\_file\_size Maximum upload size @return bool|string Return false if no error encountered \*/* - public static function **validateIconUpload**($file, $max\_file\_size = 0) */\*\* Validate icon upload \* @param array $file Upload $\_FILE value @param int $max\_file\_size Maximum upload size @return bool|string Return false if no error encountered \*/* - public static function **cut**($src\_file, $dst\_file, $dst\_width = null, $dst\_height = null, $file\_type = ‘jpg’, $dst\_x = 0, $dst\_y = 0) */\*\* Cut image \* @param array $src\_file Origin filename @param string $dst\_file Destination filename @param integer $dst\_width Desired width @param integer $dst\_height Desired height @param string $file\_type @param int $dst\_x @param int $dst\_y \* @return bool Operation result \*/* - public static function **create**($type, $filename) */\*\* Create an image with GD extension from a given type \* @param string $type @param string $filename @return resource \*/* - public static function **createWhiteImage**($width, $height) */\*\* Create an empty image with white background \* @param int $width @param int $height @return resource \*/* - public static function **write**($type, $resource, $filename) */\*\* Generate and write image \* @param string $type @param resource $resource @param string $filename @return bool \*/* - public static function **getMimeTypeByExtension**($file\_name) */\*\* Return the mime type by the file extension \* @param string $file\_name @return string \*/* # class ImageTypeCore extends ObjectModel ./classes/ImageType.php - public static function **getImagesTypes**($type = null) */\*\* Returns image type definitions \* @param string|null Image type @return array Image type definitions \*/* - public static function **typeAlreadyExists**($typeName) */\*\* Check if type already is already registered in database \* @param string $typeName Name @return integer Number of results found \*/* - public static function **getByNameNType**($name, $type = null) */\*\* Finds image type definition by name and type @param string $name @param string $type \*/* - public static function **getFormatedName**($name) # class LanguageCore extends ObjectModel ./classes/Language.php - public function **\_\_construct**($id = null, $id\_lang = null) - public function **getFields**() */\*\* @see ObjectModel::getFields() @return array \*/* - public function **moveToIso**($newIso) */\*\* Move translations files after editiing language iso code \*/* - public function **add**($autodate = true, $nullValues = false, $only\_add = false) - public function **toggleStatus**() - public function **checkFiles**() - public static function **checkFilesWithIsoCode**($iso\_code) */\*\* This functions checks if every files exists for the language $iso\_code. Concerned files are those located in translations/$iso\_code/ and translations/mails/$iso\_code . \* @param mixed $iso\_code @returntrue if all files exists \*/* - public static function **getFilesList**($iso\_from, $theme\_from, $iso\_to = false, $theme\_to = false, $select = false, $check = false, $modules = false) - public function **loadUpdateSQL**() */\*\* loadUpdateSQL will create default lang values when you create a new lang, based on default id lang \* @return boolean true if succeed \*/* - public static function **recurseDeleteDir**($dir) - public function **delete**() - public function **deleteSelection**($selection) - public static function **getLanguages**($active = true, $id\_shop = false) */\*\* Return available languages \* @param boolean $active Select only active languages @return array Languages \*/* - public static function **getLanguage**($id\_lang) - public static function **getIsoById**($id\_lang) */\*\* Return iso code from id \* @param integer $id\_lang Language ID @return string Iso code \*/* - public static function **getIdByIso**($iso\_code) */\*\* Return id from iso code \* @param string $iso\_code Iso code @return integer Language ID \*/* - public static function **getLanguageCodeByIso**($iso\_code) - public static function **getIsoIds**($active = true) */\*\* Return array (id\_lang, iso\_code) \* @param string $iso\_code Iso code @return array Language (id\_lang, iso\_code) \*/* - public static function **copyLanguageData**($from, $to) - public static function **loadLanguages**() */\*\* Load all languages in memory for caching \*/* - public function **update**($nullValues = false) - public static function **checkAndAddLanguage**($iso\_code, $lang\_pack = false, $only\_add = false, $params\_lang = null) - public static function **isInstalled**($iso\_code) - public static function **countActiveLanguages**() - public static function **downloadAndInstallLanguagePack**($iso, $version = null, $params = null) - public static function **isMultiLanguageActivated**() */\*\* Check if more on than one language is activated \* @since 1.5.0 @return bool \*/* # class LinkCore ./classes/Link.php - public function **\_\_construct**($protocol\_link = null, $protocol\_content = null) */\*\* Constructor (initialization only) \*/* - public function **getProductDeletePictureLink**($product, $id\_picture) */\*\* Create a link to delete a product \* @param mixed $product ID of the product OR a Product object @param int $id\_picture ID of the picture to delete @return string \*/* - public function **getProductLink**($product, $alias = null, $category = null, $ean13 = null, $id\_lang = null, $id\_shop = null, $ipa = 0, $force\_routes = false) */\*\* Create a link to a product \* @param mixed $product Product object (can be an ID product, but deprecated) @param string $alias @param string $category @param string $ean13 @param int $id\_lang @param int $id\_shop (since 1.5.0) ID shop need to be used when we generate a product link for a product in a cart @param int $ipa ID product attribute @return string \*/* - public function **getCategoryLink**($category, $alias = null, $id\_lang = null, $selected\_filters = null) */\*\* Create a link to a category \* @param mixed $category Category object (can be an ID category, but deprecated) @param string $alias @param int $id\_lang @param string $selected\_filters Url parameter to autocheck filters of the module blocklayered @return string \*/* - public function **getCMSCategoryLink**($category, $alias = null, $id\_lang = null) */\*\* Create a link to a CMS category \* @param mixed $category CMSCategory object (can be an ID category, but deprecated) @param string $alias @param int $id\_lang @return string \*/* - public function **getCMSLink**($cms, $alias = null, $ssl = false, $id\_lang = null) */\*\* Create a link to a CMS page \* @param mixed $cms CMS object (can be an ID CMS, but deprecated) @param string $alias @param bool $ssl @param int $id\_lang @return string \*/* - public function **getSupplierLink**($supplier, $alias = null, $id\_lang = null) */\*\* Create a link to a supplier \* @param mixed $supplier Supplier object (can be an ID supplier, but deprecated) @param string $alias @param int $id\_lang @return string \*/* - public function **getManufacturerLink**($manufacturer, $alias = null, $id\_lang = null) */\*\* Create a link to a manufacturer \* @param mixed $manufacturer Manufacturer object (can be an ID supplier, but deprecated) @param string $alias @param int $id\_lang @return string \*/* - public function **getModuleLink**($module, $controller = ‘default’, array $params = array(), $ssl = false, $id\_lang = null) */\*\* Create a link to a module \* @since 1.5.0 @param string $module Module name @param string $process Action name @param int $id\_lang @return string \*/* - public function **getAdminLink**($controller, $with\_token = true) */\*\* Use controller name to create a link \* @param string $controller @param boolean $with\_token include or not the token in the url @return controller url \*/* - public function **getImageLink**($name, $ids, $type = null) */\*\* Returns a link to a product image for display Note: the new image filesystem stores product images in subdirectories of img/p/ \* @param string $name rewrite link of the image @param string $ids id part of the image filename – can be « id\_product-id\_image » (legacy support, recommended) or « id\_image » (new) @param string $type \*/* - public function **getMediaLink**($filepath) - public function **getPageLink**($controller, $ssl = false, $id\_lang = null, $request = null, $request\_url\_encode = false) */\*\* Create a simple link \* @param string $controller @param bool $ssl @param int $id\_lang @param string|array $request @param bool $request\_url\_encode Use URL encode \* @return string Page link \*/* - public function **getCatImageLink**($name, $id\_category, $type = null) - public function **getLanguageLink**($id\_lang, Context $context = null) */\*\* Create link after language change, for the change language block \* @param integer $id\_lang Language ID @return string link \*/* - public function **goPage**($url, $p) - public function **getPaginationLink**($type, $id\_object, $nb = false, $sort = false, $pagination = false, $array = false) */\*\* Get pagination link \* @param string $type Controller name @param int $id\_object @param boolean $nb Show nb element per page attribute @param boolean $sort Show sort attribute @param boolean $pagination Show page number attribute @param boolean $array If false return an url, if true return an array \*/* - public function **addSortDetails**($url, $orderby, $orderway) # class LocalizationPackCore ./classes/LocalizationPack.php - public function **loadLocalisationPack**($file, $selection, $install\_mode = false) - public function **getErrors**() # class LoggerCore extends ObjectModel ./classes/Logger.php - public static function **sendByMail**($log) */\*\* Send e-mail to the shop owner only if the minimal severity level has been reached \* @param Logger @param unknown\_type $log \*/* - public static function **addLog**($message, $severity = 1, $error\_code = null, $object\_type = null, $object\_id = null, $allow\_duplicate = false) */\*\* add a log item to the database and send a mail if configured for this $severity \* @param string $message the log message @param int $severity @param int $error\_code @param string $object\_type @param int $object\_id @param boolean $allow\_duplicate if set to true, can log several time the same information (not recommended) @return boolean true if succeed \*/* - public function **getHash**() */\*\* this function md5($this-\>message.$this-\>severity.$this-\>error\_code.$this-\>object\_type.$this-\>object\_id) \* @return string hash \*/* # class MailCore ./classes/Mail.php - public static function **Send**($id\_lang, $template, $subject, $template\_vars, $to, */\*\* Send Email* @param int $id\_lang Language of the email (to translate the template) @param string $template Template: the name of template not be a var but a string ! @param string $subject @param string $template\_vars @param string $to @param string $to\_name @param string $from @param string $from\_name @param array $file\_attachment Array with three parameters (content, mime and name). You can use an array of array to attach multiple files @param bool $modeSMTP @param string $template\_path @param bool $die \*/ - public static function **sendMailTest**($smtpChecked, $smtpServer, $content, $subject, $type, $to, $from, $smtpLogin, $smtpPassword, $smtpPort = 25, $smtpEncryption) - public static function **l**($string, $id\_lang = null, Context $context = null) */\*\* This method is used to get the translation for email Object. For an object is forbidden to use htmlentities, we have to return a sentence with accents.*@param string $string raw sentence (write directly in file) \*/ # class ManufacturerCore extends ObjectModel ./classes/Manufacturer.php - public function **\_\_construct**($id = null, $id\_lang = null) - public function **delete**() - public function **deleteSelection**($selection) */\*\* Delete several objects from database \* return boolean Deletion result \*/* - public static function **getManufacturers**($get\_nb\_products = false, $id\_lang = 0, $active = true, $p = false, */\*\* Return manufacturers \* @param boolean $get\_nb\_products \[optional\] return products numbers for each @return array Manufacturers \*/* - public static function **getNameById**($id\_manufacturer) - public static function **getIdByName**($name) - public function **getLink**() - public static function **getProducts**($id\_manufacturer, $id\_lang, $p, $n, $order\_by = null, $order\_way = null, - public function **getProductsLite**($id\_lang) - public static function **manufacturerExists**($id\_manufacturer) */\* Specify if a manufacturer already in base \* @param $id\_manufacturer Manufacturer id @return boolean \*/* - public function **getAddresses**($id\_lang) - public function **getWsAddresses**() - public function **setWsAddresses**($id\_addresses) # class MediaCore ./classes/Media.php - public static function **minifyHTML**($html\_content) - public static function **minifyHTMLpregCallback**($preg\_matches) - public static function **packJSinHTML**($html\_content) - public static function **packJSinHTMLpregCallback**($preg\_matches) - public static function **packJS**($js\_content) - public static function **minifyCSS**($css\_content, $fileuri = false, &$import\_url = array()) - public static function **getJSPath**($js\_uri) */\*\* addJS return javascript path \* @param mixed $js\_uri @return string \*/* - public static function **getCSSPath**($css\_uri, $css\_media\_type = ‘all’) */\*\* addCSS return stylesheet path. \* @param mixed $css\_uri @param string $css\_media\_type @return string \*/* - public static function **getJqueryPath**($version = null, $folder = null, $minifier = true) */\*\* return jquery path. \* @param mixed $version @return string \*/* - public static function **getJqueryUIPath**($component, $theme, $check\_dependencies) */\*\* return jqueryUI component path. \* @param mixed $component @return string \*/* - public static function **getJqueryPluginPath**($name, $folder = null) */\*\* return jquery plugin path. \* @param mixed $name @return void \*/* - public static function **getJqueryPluginCSSPath**($name, $folder = null) */\*\* return jquery plugin css path if exist. \* @param mixed $name @return void \*/* - public static function **cccCss**($css\_files) */\*\* Combine Compress and Cache CSS (ccc) calls \* @param array css\_files @return array processed css\_files \*/* - public static function **getBackTrackLimit**() - public static function **cccJS**($js\_files) */\*\* Combine Compress and Cache (ccc) JS calls \* @param array js\_files @return array processed js\_files \*/* # class MessageCore extends ObjectModel ./classes/Message.php - public static function **getMessageByCartId**($id\_cart) */\*\* Return the last message from cart \* @param integer $id\_cart Cart ID @return array Message \*/* - public static function **getMessagesByOrderId**($id\_order, $private = false, Context $context = null) */\*\* Return messages from Order ID \* @param integer $id\_order Order ID @param boolean $private return WITH private messages @return array Messages \*/* - public static function **getMessagesByCartId**($id\_cart, $private = false, Context $context = null) */\*\* Return messages from Cart ID \* @param integer $id\_order Order ID @param boolean $private return WITH private messages @return array Messages \*/* - public static function **markAsReaded**($id\_message, $id\_employee) */\*\* Registered a message ‘readed’ \* @param integer $id\_message Message ID @param integer $id\_emplyee Employee ID \*/* # class MetaCore extends ObjectModel ./classes/Meta.php - public static function **getPages**($exclude\_filled = false, $add\_page = false) - public static function **getMetas**() - public static function **getMetasByIdLang**($id\_lang) - public static function **getMetaByPage**($page, $id\_lang) - public function **update**($null\_values = false) - public function **delete**() - public function **deleteSelection**($selection) - public static function **getEquivalentUrlRewrite**($new\_id\_lang, $id\_lang, $url\_rewrite) - public static function **getMetaTags**($id\_lang, $page\_name, $title = ») */\*\* @since 1.5.0 \*/* - public static function **getHomeMetas**($id\_lang, $page\_name) */\*\* Get meta tags for a given page \* @since 1.5.0 @param int $id\_lang @param string $page\_name @return array Meta tags \*/* - public static function **getProductMetas**($id\_product, $id\_lang, $page\_name) */\*\* Get product meta tags \* @since 1.5.0 @param int $id\_product @param int $id\_lang @param string $page\_name @return array \*/* - public static function **getCategoryMetas**($id\_category, $id\_lang, $page\_name, $title = ») */\*\* Get category meta tags \* @since 1.5.0 @param int $id\_category @param int $id\_lang @param string $page\_name @return array \*/* - public static function **getManufacturerMetas**($id\_manufacturer, $id\_lang, $page\_name) */\*\* Get manufacturer meta tags \* @since 1.5.0 @param int $id\_manufacturer @param int $id\_lang @param string $page\_name @return array \*/* - public static function **getSupplierMetas**($id\_supplier, $id\_lang, $page\_name) */\*\* Get supplier meta tags \* @since 1.5.0 @param int $id\_supplier @param int $id\_lang @param string $page\_name @return array \*/* - public static function **getCmsMetas**($id\_cms, $id\_lang, $page\_name) */\*\* Get CMS meta tags \* @since 1.5.0 @param int $id\_cms @param int $id\_lang @param string $page\_name @return array \*/* - public static function **getCmsCategoryMetas**($id\_cms\_category, $id\_lang, $page\_name) */\*\* Get CMS category meta tags \* @since 1.5.0 @param int $id\_cms\_category @param int $id\_lang @param string $page\_name @return array \*/* - public static function **completeMetaTags**($meta\_tags, $default\_value, Context $context = null) */\*\* @since 1.5.0 \*/* # class NotificationCore ./classes/Notification.php - public function **\_\_construct**() - public function **getLastElements**() */\*\* getLastElements return all the notifications (new order, new customer registration, and new customer message) Get all the notifications \* @return array containing the notifications \*/* - public function **installDb**() - public static function **getLastElementsIdsByType**($type, $id\_last\_element) */\*\* getLastElementsIdsByType return all the element ids to show (order, customer registration, and customer message) Get all the element ids \* @param string $type contains the field name of the Employee table @param integer $id\_last\_element contains the id of the last seen element @return array containing the notifications \*/* - public function **updateEmployeeLastElement**($type) */\*\* updateEmployeeLastElement return 0 if the field doesn’t exists in Employee table. Updates the last seen element by the employee \* @param string $type contains the field name of the Employee table @return boolean if type exists or not \*/* # class PackCore extends Product ./classes/Pack.php - public static function **isPack**($id\_product) */\*\* Is product a pack? \* @static @param $id\_product @return bool \*/* - public static function **isPacked**($id\_product) */\*\* Is product in a pack? \* @static @param $id\_product @return bool \*/* - public static function **noPackPrice**($id\_product) - public static function **getItems**($id\_product, $id\_lang) - public static function **isInStock**($id\_product) - public static function **getItemTable**($id\_product, $id\_lang, $full = false) - public static function **getPacksTable**($id\_product, $id\_lang, $full = false, $limit = null) - public static function **deleteItems**($id\_product) - public static function **addItem**($id\_product, $id\_item, $qty) */\*\* Add an item to the pack \* @param integer $id\_product @param integer $id\_item @param integer $qty @return boolean true if everything was fine \*/* - public static function **duplicate**($id\_product\_old, $id\_product\_new) - public static function **isFeatureActive**() */\*\* This method is allow to know if a feature is used or active @since 1.5.0.1 @return bool \*/* - public static function **isCurrentlyUsed**($table = null, $has\_active\_column = false) */\*\* This method is allow to know if a Pack entity is currently used @since 1.5.0 @param $table @param $has\_active\_column @return bool \*/* - public static function **usesAdvancedStockManagement**($id\_product) */\*\* For a given pack, tells if it has at least one product using the advanced stock management \* @param int $id\_product id\_pack @return bool \*/* # class PageCore extends ObjectModel ./classes/Page.php - public static function **getCurrentId**() */\*\* @return int Current page ID \*/* - public static function **getPageTypeByName**($name) */\*\* Return page type ID from page name \* @param string $name Page name (E.g. product.php) \*/* - public static function **setPageViewed**($id\_page) # class PaymentCCCore extends OrderPayment ./classes/PaymentCC.php - public function **add**($autodate = true, $nullValues = false) */\*\* @deprecated 1.5.0.2 @see OrderPaymentCore \*/* - public static function **getByOrderId**($id\_order) */\*\* Get the detailed payment of an order @param int $id\_order @return array @deprecated 1.5.0.1 @see OrderPaymentCore \*/* # class ProductCore extends ObjectModel ./classes/Product.php - public function **\_\_construct**($id\_product = null, $full = false, $id\_lang = null, $id\_shop = null, Context $context = null) - public function **getFieldsShop**() */\*\* @see ObjectModel::getFieldsShop() @return array \*/* - public function **add**($autodate = true, $null\_values = false) - public function **update**($null\_values = false) - public static function **initPricesComputation**($id\_customer = null) - public static function **getTaxCalculationMethod**($id\_customer = null) - public function **updatePosition**($way, $position) */\*\* Move a product inside its category @param boolean $way Up (1) or Down (0) @param integer $position return boolean Update result \*/* - public static function **cleanPositions**($id\_category) */\* Reorder product position in category $id\_category. Call it after deleting a product from a category. \* @param int $id\_category \*/* - public static function **getDefaultAttribute**($id\_product, $minimum\_quantity = 0) */\*\* Get the default attribute for a product \* @return int Attributes list \*/* - public function **setAvailableDate**($available\_date = ‘0000-00-00’) - public static function **updateIsVirtual**($id\_product) - public function **validateFieldsLang**($die = true, $error\_return = false) */\*\* @see ObjectModel::validateFieldsLang() \*/* - public function **validateField**($field, $value, $id\_lang = null) */\*\* @see ObjectModel::validateField() \*/* - public function **toggleStatus**() - public function **delete**() - public function **deleteSelection**($products) - public function **deleteFromCartRules**() - public function **deleteFromSupplier**() - public function **addToCategories**($categories = array()) */\*\* addToCategories add this product to the category/ies if not exists. \* @param mixed $categories id\_category or array of id\_category @return boolean true if succeed \*/* - public function **updateCategories**($categories, $keeping\_current\_pos = false) */\*\* Update categories to index product into \* @param string $productCategories Categories list to index product into @param boolean $keeping\_current\_pos (deprecated, no more used) @return array Update/insertion result \*/* - public function **deleteCategory**($id\_category, $clean\_positions = true) */\*\* deleteCategory delete this product from the category $id\_category \* @param mixed $id\_category @param mixed $clean\_positions @return boolean \*/* - public function **deleteCategories**($clean\_positions = false) */\*\* Delete all association to category where product is indexed \* @param boolean $clean\_positions clean category positions after deletion @return array Deletion result \*/* - public function **deleteTags**() */\*\* Delete products tags entries \* @return array Deletion result \*/* - public function **deleteCartProducts**() */\*\* Delete product from cart \* @return array Deletion result \*/* - public function **deleteImages**() */\*\* Delete product images from database \* @return bool success \*/* - public static function **getProductAttributePrice**($id\_product\_attribute) */\*\* @deprecated 1.5.0 Use Combination::getPrice() \*/* - public static function **getProducts**($id\_lang, $start, $limit, $order\_by, $order\_way, $id\_category = false, */\*\* Get all available products \* @param integer $id\_lang Language id @param integer $start Start number @param integer $limit Number of products to return @param string $order\_by Field for ordering @param string $order\_way Way for ordering (ASC or DESC) @return array Products details \*/* - public static function **getSimpleProducts**($id\_lang, Context $context = null) - public function **isNew**() - public function **productAttributeExists**($attributes\_list, $current\_product\_attribute = false, Context $context = null, $all\_shops = false, $return\_id = false) - public function **addProductAttribute**($price, $weight, $unit\_impact, $ecotax, $quantity, $id\_images, $reference, */\*\* addProductAttribute is deprecated \* The quantity params now set StockAvailable for the current shop with the specified quantity The supplier\_reference params now set the supplier reference of the default supplier of the product if possible \* @see StockManager if you want to manage real stock @see StockAvailable if you want to manage available quantities for sale on your shop(s) @see ProductSupplier for manage supplier reference(s) \* @deprecated since 1.5.0 \*/* - public function **generateMultipleCombinations**($combinations, $attributes) - public function **addCombinationEntity**($wholesale\_price, $price, $weight, $unit\_impact, $ecotax, $quantity, */\*\* @param integer $quantity DEPRECATED @param string $supplier\_reference DEPRECATED \*/* - public function **addProductAttributeMultiple**($attributes, $set\_default = true) - public function **deleteDefaultAttributes**() */\*\* Del all default attributes for product \*/* - public function **setDefaultAttribute**($id\_product\_attribute) - public static function **updateDefaultAttribute**($id\_product) - public function **updateProductAttribute**($id\_product\_attribute, $wholesale\_price, $price, $weight, $unit, $ecotax, */\*\* Update a product attribute \* @deprecated since 1.5 @see updateAttribute() to use instead @see ProductSupplier for manage supplier reference(s) \* \*/* - public function **addSupplierReference**($id\_supplier, $id\_product\_attribute, $supplier\_reference = null, $price = null, $id\_currency = null) */\*\* Sets Supplier Reference \* @param int $id\_supplier @param int $id\_product\_attribute @param string $supplier\_reference @param float $price @param int $id\_currency \*/* - public function **updateAttribute**($id\_product\_attribute, $wholesale\_price, $price, $weight, $unit, $ecotax, */\*\* Update a product attribute \* @param integer $id\_product\_attribute Product attribute id @param float $wholesale\_price Wholesale price @param float $price Additional price @param float $weight Additional weight @param float $unit @param float $ecotax Additional ecotax @param integer $id\_image Image id @param string $reference Reference @param string $ean13 Ean-13 barcode @param int $default Default On @param string $upc Upc barcode @param string $minimal\_quantity Minimal quantity @return array Update result \*/* - public function **addAttribute**($price, $weight, $unit\_impact, $ecotax, $id\_images, $reference, $ean13, */\*\* Add a product attribute @since 1.5.0.1 \* @param float $price Additional price @param float $weight Additional weight @param float $ecotax Additional ecotax @param integer $id\_images Image ids @param string $reference Reference @param string $location Location @param string $ean13 Ean-13 barcode @param boolean $default Is default attribute for product @param integer $minimal\_quantity Minimal quantity to add to cart @return mixed $id\_product\_attribute or false \*/* - public function **updateQuantityProductWithAttributeQuantity**() */\*\* @deprecated since 1.5.0 \*/* - public function **deleteProductAttributes**() */\*\* Delete product attributes \* @return array Deletion result \*/* - public function **deleteAttributesImpacts**() */\*\* Delete product attributes impacts \* @return Deletion result \*/* - public function **deleteProductFeatures**() */\*\* Delete product features \* @return array Deletion result \*/* - public static function **updateCacheAttachment**($id\_product) - public function **deleteAttachments**() */\*\* Delete product attachments \* @return array Deletion result \*/* - public function **deleteCustomization**() */\*\* Delete product customizations \* @return array Deletion result \*/* - public function **deletePack**() */\*\* Delete product pack details \* @return array Deletion result \*/* - public function **deleteProductSale**() */\*\* Delete product sales \* @return array Deletion result \*/* - public function **deleteSceneProducts**() */\*\* Delete product in its scenes \* @return array Deletion result \*/* - public function **deleteSearchIndexes**() */\*\* Delete product indexed words \* @return array Deletion result \*/* - public function **addAttributeCombinaison**($id\_product\_attribute, $attributes) */\*\* Add a product attributes combinaison \* @param integer $id\_product\_attribute Product attribute id @param array $attributes Attributes to forge combinaison @return array Insertion result @deprecated since 1.5.0.7 \*/* - public function **addAttributeCombinationMultiple**($id\_attributes, $combinations) - public function **deleteAttributeCombination**($id\_product\_attribute) */\*\* Delete a product attributes combination \* @param integer $id\_product\_attribute Product attribute id @return array Deletion result \*/* - public function **deleteFeatures**() */\*\* Delete features \* \*/* - public function **getAttributesResume**($id\_lang, $attribute\_value\_separator = ‘ – ‘, $attribute\_separator = ‘, ‘) */\*\* Get all available product attributes resume \* @param integer $id\_lang Language id @return array Product attributes combinations \*/* - public function **getAttributeCombinations**($id\_lang) */\*\* Get all available product attributes combinations \* @param integer $id\_lang Language id @return array Product attributes combinations \*/* - public function **getAttributeCombinationsById**($id\_product\_attribute, $id\_lang) */\*\* Get product attribute combination by id\_product\_attribute \* @param integer $id\_product\_attribute @param integer $id\_lang Language id @return array Product attribute combination by id\_product\_attribute \*/* - public function **getCombinationImages**($id\_lang) - public function **hasAttributes**() */\*\* Check if product has attributes combinations \* @return integer Attributes combinations number \*/* - public static function **getNewProducts**($id\_lang, $page\_number = 0, $nb\_products = 10, */\*\* Get new products \* @param integer $id\_lang Language id @param integer $pageNumber Start from (optional) @param integer $nbProducts Number of products to return (optional) @return array New products \*/* - public static function **getRandomSpecial**($id\_lang, $beginning = false, $ending = false, Context $context = null) */\*\* Get a random special \* @param integer $id\_lang Language id @return array Special \*/* - public static function **getPricesDrop**($id\_lang, $page\_number = 0, $nb\_products = 10, $count = false, */\*\* Get prices drop \* @param integer $id\_lang Language id @param integer $pageNumber Start from (optional) @param integer $nbProducts Number of products to return (optional) @param boolean $count Only in order to get total number (optional) @return array Prices drop \*/* - public static function **getProductCategories**($id\_product = ») */\*\* getProductCategories return an array of categories which this product belongs to \* @return array of categories \*/* - public static function **getProductCategoriesFull**($id\_product = », $id\_lang = null) - public function **getCategories**() */\*\* getCategories return an array of categories which this product belongs to \* @return array of categories \*/* - public function **getCarriers**() */\*\* Gets carriers assigned to the product \*/* - public function **setCarriers**($carrier\_list) */\*\* Sets carriers assigned to the product \*/* - public function **getImages**($id\_lang, Context $context = null) */\*\* Get product images and legends \* @param integer $id\_lang Language id for multilingual legends @return array Product images and legends \*/* - public static function **getCover**($id\_product, Context $context = null) */\*\* Get product cover image \* @return array Product cover image \*/* - public static function **getPriceStatic**($id\_product, $usetax = true, $id\_product\_attribute = null, $decimals = 6, $divisor = null, */\*\* Get product price \* @param integer $id\_product Product id @param boolean $usetax With taxes or not (optional) @param integer $id\_product\_attribute Product attribute id (optional). If set to false, do not apply the combination price impact. NULL does apply the default combination price impact. @param integer $decimals Number of decimals (optional) @param integer $divisor Useful when paying many time without fees (optional) @param boolean $only\_reduc Returns only the reduction amount @param boolean $usereduc Set if the returned amount will include reduction @param integer $quantity Required for quantity discount application (default value: 1) @param boolean $forceAssociatedTax DEPRECATED – NOT USED Force to apply the associated tax. Only works when the parameter $usetax is true @param integer $id\_customer Customer ID (for customer group reduction) @param integer $id\_cart Cart ID. Required when the cookie is not accessible (e.g., inside a payment module, a cron task…) @param integer $id\_address Customer address ID. Required for price (tax included) calculation regarding the guest localization @param variable\_reference $specificPriceOutput. If a specific price applies regarding the previous parameters, this variable is filled with the corresponding SpecificPrice object @param boolean $with\_ecotax insert ecotax in price output. @return float Product price \*/* - public static function **priceCalculation**($id\_shop, $id\_product, $id\_product\_attribute, $id\_country, $id\_state, $zipcode, $id\_currency, */\*\* Price calculation / Get product price \* @param integer $id\_shop Shop id @param integer $id\_product Product id @param integer $id\_product\_attribute Product attribute id @param integer $id\_country Country id @param integer $id\_state State id @param integer $id\_currency Currency id @param integer $id\_group Group id @param integer $quantity Quantity Required for Specific prices : quantity discount application @param boolean $use\_tax with (1) or without (0) tax @param integer $decimals Number of decimals returned @param boolean $only\_reduc Returns only the reduction amount @param boolean $use\_reduc Set if the returned amount will include reduction @param boolean $with\_ecotax insert ecotax in price output. @param variable\_reference $specific\_price\_output If a specific price applies regarding the previous parameters, this variable is filled with the corresponding SpecificPrice object @return float Product price \*\*/* - public static function **convertAndFormatPrice**($price, $currency = false, Context $context = null) - public static function **isDiscounted**($id\_product, $quantity = 1, Context $context = null) - public function **getPrice**($tax = true, $id\_product\_attribute = null, $decimals = 6, */\*\* Get product price Same as static function getPriceStatic, no need to specify product id \* @param boolean $tax With taxes or not (optional) @param integer $id\_product\_attribute Product attribute id (optional) @param integer $decimals Number of decimals (optional) @param integer $divisor Util when paying many time without fees (optional) @return float Product price in euros \*/* - public function **getPublicPrice**($tax = true, $id\_product\_attribute = null, $decimals = 6, - public function **getIdProductAttributeMostExpensive**() - public function **getDefaultIdProductAttribute**() - public function **getPriceWithoutReduct**($notax = false, $id\_product\_attribute = false) - public static function **convertPrice**($params, &$smarty) */\*\* Display price with right format and currency \* @param array $params Params @param $smarty Smarty object @return string Price with right format and currency \*/* - public static function **convertPriceWithCurrency**($params, &$smarty) */\*\* Convert price with currency \* @param array $params @param object $smarty DEPRECATED @return Ambigous \\> \*/* - public static function **displayWtPrice**($params, &$smarty) - public static function **displayWtPriceWithCurrency**($params, &$smarty) */\*\* Display WT price with currency \* @param array $params @param object DEPRECATED $smarty @return Ambigous \\> \*/* - public static function **getQuantity**($id\_product, $id\_product\_attribute = null, $cache\_is\_pack = null) */\*\* Get available product quantities \* @param integer $id\_product Product id @param integer $id\_product\_attribute Product attribute id (optional) @return integer Available quantities \*/* - public static function **sqlStock**($product\_alias, $product\_attribute = 0, $inner\_join = false, Shop $shop = null) */\*\* Create JOIN query with ‘stock\_available’ table \* @param string $productAlias Alias of product table @param string|int $productAttribute If string : alias of PA table ; if int : value of PA ; if null : nothing about PA @param bool $innerJoin LEFT JOIN or INNER JOIN @param Shop $shop @return string \*/* - public static function **updateQuantity**() */\*\* @deprecated since 1.5.0 \* It’s not possible to use this method with new stockManager and stockAvailable features Now this method do nothing \* @see StockManager if you want to manage real stock @see StockAvailable if you want to manage available quantities for sale on your shop(s) \* @param array $product Array with ordered product (quantity, id\_product\_attribute if applicable) @return mixed Query result \*/* - public static function **reinjectQuantities**() */\*\* @deprecated since 1.5.0 \* It’s not possible to use this method with new stockManager and stockAvailable features Now this method do nothing \* @see StockManager if you want to manage real stock @see StockAvailable if you want to manage available quantities for sale on your shop(s) \* \*/* - public static function **isAvailableWhenOutOfStock**($out\_of\_stock) - public function **checkQty**($qty) */\*\* Check product availability \* @param integer $qty Quantity desired @return boolean True if product is available with this quantity \*/* - public function **checkDefaultAttributes**() */\*\* Check if there is no default attribute and create it if not \*/* - public function **getAttributesGroups**($id\_lang) */\*\* Get all available attribute groups \* @param integer $id\_lang Language id @return array Attribute groups \*/* - public function **deleteAccessories**() */\*\* Delete product accessories \* @return mixed Deletion result \*/* - public function **deleteFromAccessories**() */\*\* Delete product from other products accessories \* @return mixed Deletion result \*/* - public static function **getAccessoriesLight**($id\_lang, $id\_product, Context $context = null) */\*\* Get product accessories (only names) \* @param integer $id\_lang Language id @param integer $id\_product Product id @return array Product accessories \*/* - public function **getAccessories**($id\_lang, $active = true, Context $context = null) */\*\* Get product accessories \* @param integer $id\_lang Language id @return array Product accessories \*/* - public static function **getAccessoryById**($accessory\_id) - public function **changeAccessories**($accessories\_id) */\*\* Link accessories with product \* @param array $accessories\_id Accessories ids \*/* - public function **addFeaturesCustomToDB**($id\_value, $lang, $cust) */\*\* Add new feature to product \*/* - public function **addFeaturesToDB**($id\_feature, $id\_value, $cust = 0) - public static function **addFeatureProductImport**($id\_product, $id\_feature, $id\_feature\_value) - public function **getFeatures**() */\*\* Select all features for the object \* @return array Array with feature product’s data \*/* - public static function **getFeaturesStatic**($id\_product) - public static function **cacheProductsFeatures**($product\_ids) - public static function **cacheFrontFeatures**($product\_ids, $id\_lang) - public static function **searchByName**($id\_lang, $query, Context $context = null) */\*\* Admin panel product search \* @param integer $id\_lang Language id @param string $query Search query @return array Matching products \*/* - public static function **duplicateAttributes**($id\_product\_old, $id\_product\_new) */\*\* Duplicate attributes when duplicating a product \* @param integer $id\_product\_old Old product id @param integer $id\_product\_new New product id \*/* - public static function **\_getAttributeImageAssociations**($id\_product\_attribute) */\*\* Get product attribute image associations @param integer $id\_product\_attribute @return array \*/* - public static function **duplicateAccessories**($id\_product\_old, $id\_product\_new) - public static function **duplicateTags**($id\_product\_old, $id\_product\_new) - public static function **duplicateDownload**($id\_product\_old, $id\_product\_new) - public static function **duplicateAttachments**($id\_product\_old, $id\_product\_new) - public static function **duplicateFeatures**($id\_product\_old, $id\_product\_new) */\*\* Duplicate features when duplicating a product \* @param integer $id\_product\_old Old product id @param integer $id\_product\_old New product id \*/* - public static function **duplicateSpecificPrices**($old\_product\_id, $product\_id) - public static function **duplicateCustomizationFields**($old\_product\_id, $product\_id) - public function **getLink**(Context $context = null) */\*\* Get the link of the product page of this product \*/* - public function **getTags**($id\_lang) - public static function **defineProductImage**($row, $id\_lang) - public static function **getProductProperties**($id\_lang, $row, Context $context = null) - public static function **getTaxesInformations**($row, Context $context = null) - public static function **getProductsProperties**($id\_lang, $query\_result) - public static function **getFrontFeaturesStatic**($id\_lang, $id\_product) */\* Select all features for a given language \* @param $id\_lang Language id @return array Array with feature’s data \*/* - public function **getFrontFeatures**($id\_lang) - public static function **getAttachmentsStatic**($id\_lang, $id\_product) - public function **getAttachments**($id\_lang) - public static function **getAllCustomizedDatas**($id\_cart, $id\_lang = null, $only\_in\_cart = true) */\* \* Customization management \*/* - public static function **addCustomizationPrice**(&$products, &$customized\_datas) - public function **createLabels**($uploadable\_files, $text\_fields) - public function **updateLabels**() - public function **getCustomizationFields**($id\_lang = false) - public function **getCustomizationFieldIds**() - public function **getRequiredCustomizableFields**() - public function **hasAllRequiredCustomizableFields**(Context $context = null) - public static function **idIsOnCategoryId**($id\_product, $categories) */\*\* Checks if the product is in at least one of the submited categories \* @param int $id\_product @param array $categories array of category arrays @return boolean is the product in at least one category \*/* - public function **getNoPackPrice**() - public function **checkAccess**($id\_customer) - public function **addStockMvt**($quantity, $id\_reason, $id\_product\_attribute = null, $id\_order = null, $id\_employee = null) */\*\* Add a stock movement for current product \* Since 1.5, this method only permit to add/remove available quantities of the current product in the current shop \* @see StockManager if you want to manage real stock @see StockAvailable if you want to manage available quantities for sale on your shop(s) \* @deprecated since 1.5.0 \* @param int $quantity @param int $id\_reason – useless @param int $id\_product\_attribute @param int $id\_order – useless @param int $id\_employee – useless @return bool \*/* - public function **getStockMvts**($id\_lang) */\*\* @deprecated since 1.5.0 \*/* - public static function **getUrlRewriteInformations**($id\_product) - public function **getIdTaxRulesGroup**() - public static function **getIdTaxRulesGroupByIdProduct**($id\_product, Context $context = null) - public function **getTaxesRate**(Address $address = null) */\*\* @return the total taxes rate applied to the product \*/* - public function **getWsProductFeatures**() */\*\* Webservice getter : get product features association \* @return array \*/* - public function **setWsProductFeatures**($product\_features) */\*\* Webservice setter : set product features association \* @param $productFeatures Product Feature ids @return boolean \*/* - public function **getWsDefaultCombination**() */\*\* Webservice getter : get virtual field default combination \* @return int \*/* - public function **setWsDefaultCombination**($id\_combination) */\*\* Webservice setter : set virtual field default combination \* @param $id\_combination id default combination \*/* - public function **getWsCategories**() */\*\* Webservice getter : get category ids of current product for association \* @return array \*/* - public function **setWsCategories**($category\_ids) */\*\* Webservice setter : set category ids of current product for association \* @param $category\_ids category ids \*/* - public function **getWsAccessories**() */\*\* Webservice getter : get product accessories ids of current product for association \* @return array \*/* - public function **setWsAccessories**($accessories) */\*\* Webservice setter : set product accessories ids of current product for association \* @param $accessories product ids \*/* - public function **getWsCombinations**() */\*\* Webservice getter : get combination ids of current product for association \* @return array \*/* - public function **setWsCombinations**($combinations) */\*\* Webservice setter : set combination ids of current product for association \* @param $combinations combination ids \*/* - public function **getWsProductOptionValues**() */\*\* Webservice getter : get product option ids of current product for association \* @return array \*/* - public function **getWsPositionInCategory**() */\*\* Webservice getter : get virtual field position in category \* @return int \*/* - public function **getCoverWs**() */\*\* Webservice getter : get virtual field id\_default\_image in category \* @return int \*/* - public function **setCoverWs**($id\_image) */\*\* Webservice setter : set virtual field id\_default\_image in category \* @return bool \*/* - public function **getWsImages**() */\*\* Webservice getter : get image ids of current product for association \* @return array \*/* - public function **getWsStockAvailables**() - public function **getWsTags**() - public function **getWsManufacturerName**() - public static function **resetEcoTax**() - public function **setGroupReduction**() */\*\* Set Group reduction if needed \*/* - public function **existsRefInDatabase**($reference) */\*\* Checks if reference exists @return boolean \*/* - public static function **getProductAttributesIds**($id\_product, $shop\_only = false) */\*\* Get all product attributes ids \* @since 1.5.0 @param int $id\_product the id of the product @return array product attribute id list \*/* - public static function **getAttributesParams**($id\_product, $id\_product\_attribute) */\*\* Get label by lang and value by lang too @todo Remove existing module condition @param int $id\_product @param int $product\_attribute\_id @return array \*/* - public static function **getAttributesInformationsByProduct**($id\_product) */\*\* @todo Remove existing module condition @param int $id\_product \*/* - public function **getAnchor**($id\_product\_attribute) */\*\* Get the combination url anchor of the product \* @param integer $id\_product\_attribute @return string \*/* - public static function **getProductName**($id\_product, $id\_product\_attribute = null, $id\_lang = null) */\*\* Gets the name of a given product, in the given lang \* @since 1.5.0 @param int $id\_product @param int $id\_product\_attribute Optional @param int $id\_lang Optional @return string \*/* - public function **addWs**($autodate = true, $null\_values = false) - public function **updateWs**($null\_values = false) - public static function **getRealQuantity**($id\_product, $id\_product\_attribute = 0, $id\_warehouse = 0, $id\_shop = null) */\*\* For a given product, returns its real quantity \* @since 1.5.0 @param int $id\_product @param int $id\_product\_attribute @param int $id\_warehouse @param int $id\_shop @return int real\_quantity \*/* - public static function **usesAdvancedStockManagement**($id\_product) */\*\* For a given product, tells if it uses the advanced stock management \* @since 1.5.0 @param int $id\_product @return bool \*/* - public static function **flushPriceCache**() */\*\* This method allows to flush price cache @static @since 1.5.0 \*/* - public function **getParentCategories**($id\_lang = null) */\*\* Get list of parent categories \* @since 1.5.0 @param int $id\_lang @return array \*/* - public function **loadStockData**() */\*\* Fill the variables used for stock management \*/* - public function **useAdvancedStockManagement**() - public function **setAdvancedStockManagement**($value) - public function **getDefaultCategory**() */\*\* get the default category according to the shop \*/* - public static function **getShopsByProduct**($id\_product) - public function **deleteDownload**() */\*\* Remove all downloadable files for product and its attributes \* @return bool \*/* - public function **getAttributeCombinaisons**($id\_lang) */\*\* @deprecated 1.5.0.10 @see Product::getAttributeCombinations() @param int $id\_lang \*/* - public function **deleteAttributeCombinaison**($id\_product\_attribute) */\*\* @deprecated 1.5.0.10 @see Product::deleteAttributeCombination() @param int $id\_product\_attribute \*/* - public function **getType**() */\*\* Get the product type (simple, virtual, pack) @since in 1.5.0 \* @return int \*/* - public function **hasAttributesInOtherShops**() - public static function **getIdTaxRulesGroupMostUsed**() - public static function **getIdByEan13**($ean13) */\*\* For a given ean13 reference, returns the corresponding id \* @param string $ean13 @return int id \*/* - public function **getWsType**() - public function **getWsProductBundle**() # class ProductDownloadCore extends ObjectModel ./classes/ProductDownload.php - public function **\_\_construct**($id\_product\_download = null) */\*\* Build a virtual product \* @param integer $id\_product\_download Existing productDownload id in order to load object (optional) \*/* - public function **getFields**() */\*\* @see ObjectModel::getFields() @return array \*/* - public function **add**($autodate = true, $null\_values = false) - public function **update**($null\_values = false) - public function **delete**($delete = false) - public function **deleteFile**($id\_product\_download = null) */\*\* Delete the file @param int $id\_product\_download : if we need to delete a specific product attribute file \* @return boolean \*/* - public function **checkFile**() */\*\* Check if file exists \* @return boolean \*/* - public static function **checkWritableDir**() */\*\* Check if download repository is writable \* @return boolean \*/* - public static function **getIdFromIdProduct**($id\_product) */\*\* Return the id\_product\_download from an id\_product \* @param int $id\_product Product the id @return integer Product the id for this virtual product \*/* - public static function **getIdFromFilename**($filename) */\*\* Return the display filename from a physical filename \* @since 1.5.0.1 \* @param string $filename Filename physically @return integer Product the id for this virtual product \* \*/* - public static function **getFilenameFromIdProduct**($id\_product) */\*\* Return the filename from an id\_product \* @param int $id\_product Product the id @return string Filename the filename for this virtual product \*/* - public static function **getFilenameFromFilename**($filename) */\*\* Return the display filename from a physical filename \* @param string $filename Filename physically @return string Filename the display filename for this virtual product \*/* - public function **getTextLink**($admin = true, $hash = false) */\*\* Return html link \* @param string $class CSS selector (optionnal) @param bool $admin specific to backend (optionnal) @param string $hash hash code in table order detail (optionnal) @return string Html all the code for print a link to the file \*/* - public function **getHtmlLink**($class = false, $admin = true, $hash = false) */\*\* Return html link \* @param string $class CSS selector @param bool $admin specific to backend @param bool $hash hash code in table order detail @return string Html all the code for print a link to the file \*/* - public function **getDeadline**() */\*\* Return a deadline \* @return string Datetime in SQL format \*/* - public function **getHash**() */\*\* Return a hash for control download access \* @return string Hash ready to insert in database \*/* - public static function **getNewFilename**() */\*\* Return a sha1 filename \* @return string Sha1 unique filename \*/* - public static function **isFeatureActive**() */\*\* This method is allow to know if a feature is used or active @since 1.5.0.1 @return bool \*/* # class ProductSaleCore ./classes/ProductSale.php - public static function **fillProductSales**() */\* \* Fill the \`product\_sale\` SQL table with data from \`order\_detail\` \* @return bool True on success \*/* - public static function **getNbSales**() */\* \* Get number of actives products sold \* @return int number of actives products listed in product\_sales \*/* - public static function **getBestSales**($id\_lang, $page\_number = 0, $nb\_products = 10, $order\_by = null, $order\_way = null) */\* \* Get required informations on best sales products \*\* \* @param integer $id\_lang Language id \* @param integer $page\_number Start from (optional) \* @param integer $nb\_products Number of products to return (optional) \* @return array from Product::getProductProperties \*/* - public static function **getBestSalesLight**($id\_lang, $page\_number = 0, $nb\_products = 10, Context $context = null) */\* \* Get required informations on best sales products \*\* \* @param integer $id\_lang Language id \* @param integer $page\_number Start from (optional) \* @param integer $nb\_products Number of products to return (optional) \* @return array keys : id\_product, link\_rewrite, name, id\_image, legend, sales, ean13, upc, link \*/* - public static function **addProductSale**($product\_id, $qty = 1) - public static function **getNbrSales**($id\_product) - public static function **removeProductSale**($id\_product, $qty = 1) # class ProductSupplierCore extends ObjectModel ./classes/ProductSupplier.php - public function **delete**() */\*\* @see ObjectModel::delete() \*/* - public static function **getProductSupplierReference**($id\_product, $id\_product\_attribute, $id\_supplier) */\*\* For a given product and supplier, gets the product supplier reference \* @param int $id\_product @param int $id\_product\_attribute @param int $id\_supplier @return string \*/* - public static function **getProductSupplierPrice**($id\_product, $id\_product\_attribute, $id\_supplier, $with\_currency = false) */\*\* For a given product and supplier, gets the product supplier unit price \* @param int $id\_product @param int $id\_product\_attribute @param int $id\_supplier @param bool $with\_currency Optional @return array \*/* - public static function **getIdByProductAndSupplier**($id\_product, $id\_product\_attribute, $id\_supplier) */\*\* For a given product and supplier, gets corresponding ProductSupplier ID \* @param int $id\_product @param int $id\_product\_attribute @param int $id\_supplier @return array \*/* - public static function **getSupplierCollection**($id\_product, $group\_by\_supplier = true) */\*\* For a given product, retrieves its suppliers \* @param int $id\_product @param int $group\_by\_supplier @return Collection \*/* - public static function **getProductPrice**($id\_supplier, $id\_product, $id\_product\_attribute = 0) */\*\* For a given Supplier, Product, returns the purchased price \* @param int $id\_product @param int $id\_product\_attribute Optional @return Array keys: price\_te, id\_currency \*/* # class ProfileCore extends ObjectModel ./classes/Profile.php - public static function **getProfiles**($id\_lang) */\*\* Get all available profiles \* @return array Profiles \*/* - public static function **getProfile**($id\_profile, $id\_lang = null) */\*\* Get the current profile name \* @return string Profile \*/* - public function **add**($autodate = true, $null\_values = false) - public function **delete**() - public static function **getProfileAccess**($id\_profile, $id\_tab) - public static function **getProfileAccesses**($id\_profile, $type = ‘id\_tab’) # class QuickAccessCore extends ObjectModel ./classes/QuickAccess.php - public static function **getQuickAccesses**($id\_lang) */\*\* Get all available quick\_accesses \* @return array QuickAccesses \*/* # class ReferrerCore extends ObjectModel ./classes/Referrer.php - public function **add**($autodate = true, $null\_values = false) - public static function **cacheNewSource**($id\_connections\_source) - public static function **getReferrers**($id\_customer) */\*\* Get list of referrers connections of a customer*@param int $id\_customer \*/ - public function **getStatsVisits**($id\_product, $employee) */\*\* Get some statistics on visitors connection for current referrer*@param int $id\_product @param int $employee @param Context $context \*/ - public function **getRegistrations**($id\_product, $employee) */\*\* Get some statistics on customers registrations for current referrer*@param int $id\_product @param int $employee @param Context $context \*/ - public function **getStatsSales**($id\_product, $employee) */\*\* Get some statistics on orders for current referrer*@param int $id\_product @param int $employee \*/ - public static function **refreshCache**($referrers = null, $employee = null) */\*\* Refresh cache data of referrer statistics in referrer\_shop table \* @param array $referrers @param int $employee \*/* - public static function **refreshIndex**($referrers = null) */\*\* Cache liaison between connections\_source data and referrers data \* @param array $referrers \*/* - public static function **getAjaxProduct**($id\_referrer, $id\_product, $employee = null) # class RequestSqlCore extends ObjectModel ./classes/RequestSql.php - public static function **getRequestSql**() */\*\* Get list of request SQL \* @static @return array|bool \*/* - public static function **getRequestSqlById**($id) */\*\* Get list of request SQL by id request \* @static @param $id @return array \*/* - public function **parsingSql**($sql) */\*\* Call the parserSQL() method in Tools class Cut the request in table for check it \* @param $sql @return bool \*/* - public function **validateParser**($tab, $in = false, $sql) */\*\* Check if the parsing of the SQL request is good or not \* @param $tab @param bool $in @param $sql @return bool \*/* - public function **validateSql**($tab, $in, $sql) */\*\* Cut the request for check each cutting \* @param $tab @param $in @param $sql @return bool \*/* - public function **getTables**() */\*\* Get list of all tables \* @return array \*/* - public function **getAttributesByTable**($table) */\*\* Get list of all attributes by an table \* @param $table @return array \*/* - public function **cutJoin**($attrs, $from) */\*\* Cut an join sentence \* @param $attrs @param $from @return array|bool \*/* - public function **cutAttribute**($attr, $from) */\*\* Cut an attribute with or without the alias \* @param $attr @param $from @return array|bool \*/* - public function **returnNameTable**($alias = false, $tables) */\*\* Get name of table by alias \* @param bool $alias @param $tables @return array|bool \*/* - public function **attributExistInTable**($attr, $table) */\*\* Check if an attributes existe in an table \* @param $attr @param $table @return bool \*/* - public function **testedRequired**($tab) */\*\* Check if all required sentence existing \* @param $tab @return bool \*/* - public function **testedUnauthorized**($tab) */\*\* Check if an unauthorized existing in an array \* @param $tab @return bool \*/* - public function **checkedFrom**($from) */\*\* Check a « FROM » sentence \* @param $from @return bool \*/* - public function **checkedSelect**($select, $from, $in = false) */\*\* Check a « SELECT » sentence \* @param $select @param $from @param bool $in @return bool \*/* - public function **checkedWhere**($where, $from, $sql) */\*\* Check a « WHERE » sentence \* @param $where @param $from @param $sql @return bool \*/* - public function **checkedHaving**($having, $from) */\*\* Check a « HAVING » sentence \* @param $having @param $from @return bool \*/* - public function **checkedOrder**($order, $from) */\*\* Check a « ORDER » sentence \* @param $order @param $from @return bool \*/* - public function **checkedGroupBy**($group, $from) */\*\* Check a « GROUP BY » sentence \* @param $group @param $from @return bool \*/* - public function **checkedLimit**($limit) */\*\* Check a « LIMIT » sentence \* @param $limit @return bool \*/* # class RijndaelCore ./classes/Rijndael.php - public function **\_\_construct**($key, $iv) - public function **encrypt**($plaintext) */\*\* Base64 is not required, but it is be more compact than urlencode \* @param string $plaintext @return bool|string \*/* - public function **decrypt**($ciphertext) # class RiskCore extends ObjectModel ./classes/Risk.php - public function **getFields**() - public function **getTranslationsFieldsChild**() */\*\* Check then return multilingual fields for database interaction \* @return array Multilingual fields \*/* - public static function **getRisks**($id\_lang = null) # class SceneCore extends ObjectModel ./classes/Scene.php - public function **\_\_construct**($id = null, $id\_lang = null, $lite\_result = true, $hide\_scene\_position = false) - public function **update**($null\_values = false) - public function **add**($autodate = true, $null\_values = false) - public function **delete**() - public function **deleteImage**($force\_delete = false) - public function **addCategories**($categories) - public function **deleteCategories**() - public function **updateCategories**() - public function **addZoneProducts**($zones) - public function **deleteZoneProducts**() - public function **updateZoneProducts**() - public static function **getScenes**($id\_category, $id\_lang = null, $only\_active = true, $lite\_result = true, $hide\_scene\_position = true, Context $context = null) */\*\* Get all scenes of a category \* @return array Products \*/* - public function **getProducts**($only\_active = true, $id\_lang = null, $lite\_result = true, Context $context = null) */\*\* Get all products of this scene \* @return array Products \*/* - public static function **getIndexedCategories**($id\_scene) */\*\* Get categories where scene is indexed \* @param integer $id\_scene Scene id @return array Categories where scene is indexed \*/* - public static function **hideScenePosition**($name) */\*\* Hide scene prefix used for position \* @param string $name Scene name @return string Name without position \*/* - public static function **isFeatureActive**() */\*\* This method is allow to know if a feature is used or active @since 1.5.0.1 @return bool \*/* # class SearchCore ./classes/Search.php - public static function **sanitize**($string, $id\_lang, $indexation = false) - public static function **find**($id\_lang, $expr, $page\_number = 1, $page\_size = 1, $order\_by = ‘position’, - public static function **getTags**($db, $id\_product, $id\_lang) - public static function **getAttributes**($db, $id\_product, $id\_lang) - public static function **getFeatures**($db, $id\_product, $id\_lang) - public static function **indexation**($full = false, $id\_product = false) - public static function **searchTag**($id\_lang, $tag, $count = false, $pageNumber = 0, $pageSize = 10, $orderBy = false, $orderWay = false, # class SearchEngineCore extends ObjectModel ./classes/SearchEngine.php - public static function **getKeywords**($url) # class SpecificPriceCore extends ObjectModel ./classes/SpecificPrice.php - public function **add**($autodate = true, $nullValues = false) - public function **update**($null\_values = false) - public function **delete**() - public static function **getByProductId**($id\_product, $id\_product\_attribute = false, $id\_cart = false) - public static function **deleteByIdCart**($id\_cart, $id\_product = false, $id\_product\_attribute = false) - public static function **getIdsByProductId**($id\_product, $id\_product\_attribute = false, $id\_cart = 0) - public static function **getPriority**($id\_product) - public static function **getSpecificPrice**($id\_product, $id\_shop, $id\_currency, $id\_country, $id\_group, $quantity, $id\_product\_attribute = null, $id\_customer = 0, $id\_cart = 0, $real\_quantity = 0) - public static function **setPriorities**($priorities) - public static function **deletePriorities**() - public static function **setSpecificPriority**($id\_product, $priorities) - public static function **getQuantityDiscounts**($id\_product, $id\_shop, $id\_currency, $id\_country, $id\_group, $id\_product\_attribute = null, $all\_combinations = false, $id\_customer = 0) - public static function **getQuantityDiscount**($id\_product, $id\_shop, $id\_currency, $id\_country, $id\_group, $quantity, $id\_product\_attribute = null, $id\_customer = 0) - public static function **getProductIdByDate**($id\_shop, $id\_currency, $id\_country, $id\_group, $beginning, $ending, $id\_customer = 0, $with\_combination\_id = false) - public static function **deleteByProductId**($id\_product) - public function **duplicate**($id\_product = false) - public static function **isFeatureActive**() */\*\* This method is allow to know if a feature is used or active @since 1.5.0.1 @return bool \*/* - public static function **exists**($id\_product, $id\_product\_attribute, $id\_shop, $id\_group, $id\_country, $id\_currency, $id\_customer, $from\_quantity, $from, $to, $rule = false) # class SpecificPriceRuleCore extends ObjectModel ./classes/SpecificPriceRule.php - public function **delete**() - public function **deleteConditions**() - public function **addConditions**($conditions) - public function **apply**($products = false) - public function **resetApplication**($products = false) - public static function **applyAllRules**($products = false) - public function **getConditions**() - public function **getAffectedProducts**($products = false) - public static function **applyRuleToProduct**($id\_rule, $id\_product, $id\_product\_attribute = null) # class StateCore extends ObjectModel ./classes/State.php - public static function **getStates**($id\_lang = false, $active = false) - public static function **getNameById**($id\_state) */\*\* Get a state name with its ID \* @param integer $id\_state Country ID @return string State name \*/* - public static function **getIdByName**($state) */\*\* Get a state id with its name \* @param string $id\_state Country ID @return integer state id \*/* - public static function **getIdByIso**($iso\_code, $id\_country = null) */\*\* Get a state id with its iso code \* @param string $iso\_code Iso code @return integer state id \*/* - public function **delete**() */\*\* Delete a state only if is not in use \* @return boolean \*/* - public function **isUsed**() */\*\* Check if a state is used \* @return boolean \*/* - public function **countUsed**() */\*\* Returns the number of utilisation of a state \* @return integer count for this state \*/* - public static function **getStatesByIdCountry**($id\_country) - public static function **hasCounties**($id\_state) - public static function **getIdZone**($id\_state) - public function **affectZoneToSelection**($ids\_states, $id\_zone) */\*\* @param $ids\_states @param $id\_zone @return bool \*/* # class StoreCore extends ObjectModel ./classes/Store.php - public function **\_\_construct**($id\_store = null, $id\_lang = null) - public function **getWsHours**() - public function **setWsHours**($hours) # class SupplierCore extends ObjectModel ./classes/Supplier.php - public function **\_\_construct**($id = null, $id\_lang = null) - public function **getLink**() - public static function **getSuppliers**($get\_nb\_products = false, $id\_lang = 0, $active = true, $p = false, $n = false, $all\_groups = false) */\*\* Return suppliers \* @return array Suppliers \*/* - public static function **getNameById**($id\_supplier) - public static function **getIdByName**($name) - public static function **getProducts**($id\_supplier, $id\_lang, $p, $n, - public function **getProductsLite**($id\_lang) - public static function **supplierExists**($id\_supplier) */\* Tells if a supplier exists \* @param $id\_supplier Supplier id @return boolean \*/* - public function **delete**() */\*\* @see ObjectModel::delete() \*/* - public static function **getProductInformationsBySupplier**($id\_supplier, $id\_product, $id\_product\_attribute = 0) */\*\* Gets product informations \* @since 1.5.0 @param int $id\_supplier @param int $id\_product @param int $id\_product\_attribute @return array \*/* # class TabCore extends ObjectModel ./classes/Tab.php - public function **add**($autodate = true, $null\_values = false) */\*\* additionnal treatments for Tab when creating new one : – generate a new position – add access for admin profile \* @param boolean $autodate @param boolean $null\_values @return int id\_tab \*/* - public static function **initAccess**($id\_tab, Context $context = null) */\* When creating a new tab $id\_tab, this add default rights to the table access \* @todo this should not be public static but protected @param int $id\_tab @param Context $context @return boolean true if succeed \*/* - public function **delete**() - public static function **getCurrentTabId**() */\*\* Get tab id \* @return integer tab id \*/* - public static function **getCurrentParentId**() */\*\* Get tab parent id \* @return integer tab parent id \*/* - public static function **getTab**($id\_lang, $id\_tab) */\*\* Get tab \* @return array tab \*/* - public static function **getModuleTabList**() */\*\* Return the list of tab used by a module \* @static @return array \*/* - public static function **getTabs**($id\_lang, $id\_parent = null) - public static function **getIdFromClassName**($class\_name) */\*\* Get tab id from name \* @param string class\_name @return int id\_tab \*/* - public static function **getCollectionFromModule**($module, $id\_lang = null) */\*\* Get collection from module name @static @param $module string Module name @param null $id\_lang integer Language ID @return array|Collection Collection of tabs (or empty array) \*/* - public static function **enablingForModule**($module) */\*\* Enabling tabs for module @static @param $module string Module Name @return bool Status \*/* - public static function **disablingForModule**($module) */\*\* Disabling tabs for module @static @param $module string Module name @return bool Status \*/* - public static function **getInstanceFromClassName**($class\_name) */\*\* Get Instance from tab class name \* @param $class\_name string Name of tab class @return Tab Tab object (empty if bad id or class name) \*/* - public static function **getNbTabs**($id\_parent = null) - public static function **getNewLastPosition**($id\_parent) */\*\* return an available position in subtab for parent $id\_parent \* @param mixed $id\_parent @return int \*/* - public function **move**($direction) - public function **cleanPositions**($id\_parent) - public function **updatePosition**($way, $position) - public static function **checkTabRights**($id\_tab) - public static function **recursiveTab**($id\_tab, $tabs) - public function **update**($null\_values = false) */\*\* Overrides update to set position to last when changing parent tab \* @see ObjectModel::update @param bool $null\_values @return bool \*/* - public static function **getTabByIdProfile**($id\_parent, $id\_profile) - public static function **getClassNameById**($id\_tab) */\*\* @since 1.5.0 \*/* - public static function **getTabModulesList**($id\_tab) # class TagCore extends ObjectModel ./classes/Tag.php - public function **\_\_construct**($id = null, $name = null, $id\_lang = null) - public function **add**($autodate = true, $null\_values = false) - public static function **addTags**($id\_lang, $id\_product, $tag\_list, $separator = ‘,’) */\*\* Add several tags in database and link it to a product \* @param integer $id\_lang Language id @param integer $id\_product Product id to link tags with @param string|array $tag\_list List of tags, as array or as a string with comas @return boolean Operation success \*/* - public static function **getMainTags**($id\_lang, $nb = 10) - public static function **getProductTags**($id\_product) - public function **getProducts**($associated = true, Context $context = null) - public function **setProducts**($array) - public static function **deleteTagsForProduct**($id\_product) # class ThemeCore extends ObjectModel ./classes/Theme.php - public static function **getThemes**() - public static function **getAvailable**($installed\_only = true) */\*\* return an array of all available theme (installed or not)*@param boolean $installed\_only @return array string (directory) \*/ - public function **isUsed**() */\*\* check if a theme is used by a shop*@return boolean \*/ - public function **add**($autodate = true, $null\_values = false) */\*\* add only theme if the directory exists*@param bool $null\_values @param bool $autodate @return boolean Insertion result \*/ # class ToolsCore ./classes/Tools.php - public static function **passwdGen**($length = 8, $flag = ‘ALPHANUMERIC’) */\*\* Random password generator \* @param integer $length Desired length (optional) @param string $flag Output type (NUMERIC, ALPHANUMERIC, NO\_NUMERIC) @return string Password \*/* - public static function **strReplaceFirst**($search, $replace, $subject, $cur = 0) - public static function **redirect**($url, $base\_uri = \_\_PS\_BASE\_URI\_\_, Link $link = null, $headers = null) */\*\* Redirect user to another page \* @param string $url Desired URL @param string $baseUri Base URI (optional) @param Link $link @param string|array $headers A list of headers to send before redirection \*/* - public static function **redirectLink**($url) */\*\* Redirect URLs already containing PS\_BASE\_URI \* @param string $url Desired URL \*/* - public static function **redirectAdmin**($url) */\*\* Redirect user to another admin page \* @param string $url Desired URL \*/* - public static function **getShopProtocol**() */\*\* getShopProtocol return the available protocol for the current shop in use SSL if Configuration is set on and available for the server @static @return String \*/* - public static function **getProtocol**($use\_ssl = null) */\*\* getProtocol return the set protocol according to configuration (http\[s\]) @param bool $use\_ssl true if require ssl @return String (http|https) \*/* - public static function **getHttpHost**($http = false, $entities = false, $ignore\_port = false) */\*\* getHttpHost return the **current** host used, with the protocol (http or https) if $http is true This function should not be used to choose http or https domain name. Use Tools::getShopDomain() or Tools::getShopDomainSsl instead \* @param boolean $http @param boolean $entities @return string host \*/* - public static function **getShopDomain**($http = false, $entities = false) */\*\* getShopDomain returns domain name according to configuration and ignoring ssl \* @param boolean $http if true, return domain name with protocol @param boolean $entities if true, @return string domain \*/* - public static function **getShopDomainSsl**($http = false, $entities = false) */\*\* getShopDomainSsl returns domain name according to configuration and depending on ssl activation \* @param boolean $http if true, return domain name with protocol @param boolean $entities if true, @return string domain \*/* - public static function **getServerName**() */\*\* Get the server variable SERVER\_NAME \* @return string server name \*/* - public static function **getRemoteAddr**() */\*\* Get the server variable REMOTE\_ADDR, or the first ip of HTTP\_X\_FORWARDED\_FOR (when using proxy) \* @return string $remote\_addr ip of client \*/* - public static function **usingSecureMode**() */\*\* Check if the current page use SSL connection on not \* @return bool uses SSL \*/* - public static function **getCurrentUrlProtocolPrefix**() */\*\* Get the current url prefix protocol (https/http) \* @return string protocol \*/* - public static function **secureReferrer**($referrer) */\*\* Secure an URL referrer \* @param string $referrer URL referrer @return string secured referrer \*/* - public static function **getValue**($key, $default\_value = false) */\*\* Get a value from $\_POST / $\_GET if unavailable, take a default value \* @param string $key Value key @param mixed $default\_value (optional) @return mixed Value \*/* - public static function **getIsset**($key) - public static function **setCookieLanguage**($cookie = null) */\*\* Change language in cookie while clicking on a flag \* @return string iso code \*/* - public static function **switchLanguage**(Context $context = null) */\*\* Set cookie id\_lang \*/* - public static function **setCurrency**($cookie) */\*\* Set cookie currency from POST or default currency \* @return Currency object \*/* - public static function **displayPrice**($price, $currency = null, $no\_utf8 = false, Context $context = null) */\*\* Return price with currency sign for a given product \* @param float $price Product price @param object $currency Current currency (object, id\_currency, NULL =\> context currency) @return string Price correctly formated (sign, decimal separator…) \*/* - public static function **displayPriceSmarty**($params, &$smarty) - public static function **convertPrice**($price, $currency = null, $to\_currency = true, Context $context = null) */\*\* Return price converted \* @param float $price Product price @param object $currency Current currency object @param boolean $to\_currency convert to currency or from currency to default currency \*/* - public static function **convertPriceFull**($amount, Currency $currency\_from = null, Currency $currency\_to = null) */\*\* \* Convert amount from a currency to an other currency automatically @param float $amount @param Currency $currency\_from if null we used the default currency @param Currency $currency\_to if null we used the default currency \*/* - public static function **dateFormat**($params, &$smarty) */\*\* Display date regarding to language preferences \* @param array $params Date, format… @param object $smarty Smarty object for language preferences @return string Date \*/* - public static function **displayDate**($date, $id\_lang, $full = false, $separator = ‘-‘) */\*\* Display date regarding to language preferences \* @param string $date Date to display format UNIX @param integer $id\_lang Language id @param boolean $full With time or not (optional) @param string $separator DEPRECATED @return string Date \*/* - public static function **safeOutput**($string, $html = false) */\*\* Sanitize a string \* @param string $string String to sanitize @param boolean $full String contains HTML or not (optional) @return string Sanitized string \*/* - public static function **htmlentitiesUTF8**($string, $type = ENT\_QUOTES) - public static function **htmlentitiesDecodeUTF8**($string) - public static function **safePostVars**() - public static function **deleteDirectory**($dirname, $delete\_self = true) */\*\* Delete directory and subdirectories \* @param string $dirname Directory name \*/* - public static function **displayError**($string = ‘Fatal error’, $htmlentities = true, Context $context = null) */\*\* Display an error according to an error code \* @param string $string Error message @param boolean $htmlentities By default at true for parsing error message with htmlentities \*/* - public static function **dieObject**($object, $kill = true) */\*\* Display an error with detailed object \* @param mixed $object @param boolean $kill @return $object if $kill = false; \*/* - public static function **fd**($object, $type = ‘log’) */\*\* Display a var dump in firebug console \* @param object $object Object to display \*/* - public static function **d**($object, $kill = true) */\*\* ALIAS OF dieObject() – Display an error with detailed object \* @param object $object Object to display \*/* - public static function **p**($object) */\*\* ALIAS OF dieObject() – Display an error with detailed object but don’t stop the execution \* @param object $object Object to display \*/* - public static function **isSubmit**($submit) */\*\* Check if submit has been posted \* @param string $submit submit name \*/* - public static function **getMetaTags**($id\_lang, $page\_name, $title = ») */\*\* @deprecated 1.5.0 \*/* - public static function **getHomeMetaTags**($id\_lang, $page\_name) */\*\* @deprecated 1.5.0 \*/* - public static function **completeMetaTags**($meta\_tags, $default\_value, Context $context = null) */\*\* @deprecated 1.5.0 \*/* - public static function **encrypt**($passwd) */\*\* Encrypt password \* @param string $passwd String to encrypt \*/* - public static function **getToken**($page = true, Context $context = null) */\*\* Get token to prevent CSRF \* @param string $token token to encrypt \*/* - public static function **getAdminToken**($string) */\*\* Tokenize a string \* @param string $string string to encript \*/* - public static function **getAdminTokenLite**($tab, Context $context = null) - public static function **getAdminTokenLiteSmarty**($params, &$smarty) - public static function **getPath**($id\_category, $path = », $link\_on\_the\_item = false, $category\_type = ‘products’, Context $context = null) */\*\* Get the user’s journey \* @param integer $id\_category Category ID @param string $path Path end @param boolean $linkOntheLastItem Put or not a link on the current category @param string \[optionnal\] $categoryType defined what type of categories is used (products or cms) \*/* - public static function **getFullPath**($id\_category, $end, $type\_cat = ‘products’, Context $context = null) */\*\* @param string \[optionnal\] $type\_cat defined what type of categories is used (products or cms) \*/* - public static function **link\_rewrite**($str, $utf8\_decode = false) */\*\* Return the friendly url from the provided string \* @param string $str @param bool $utf8\_decode =\> needs to be marked as deprecated @return string \*/* - public static function **str2url**($str) */\*\* Return a friendly url made from the provided string If the mbstring library is available, the output is the same as the js function of the same name \* @param string $str @return string \*/* - public static function **replaceAccentedChars**($str) */\*\* Replace all accented chars by their equivalent non accented chars. \* @param string $str @return string \*/* - public static function **truncate**($str, $max\_length, $suffix = ‘…’) */ CAUTION : Use it only on module hookEvents. \* For other purposes use the smarty function instead \*/* - public static function **dateYears**() */\*\* Generate date form \* @param integer $year Year to select @param integer $month Month to select @param integer $day Day to select @return array $tab html data with 3 cells :\[‘days’\], \[‘months’\], \[‘years’\] \* \*/* - public static function **dateDays**() - public static function **dateMonths**() - public static function **hourGenerate**($hours, $minutes, $seconds) - public static function **dateFrom**($date) - public static function **dateTo**($date) - public static function **strtolower**($str) - public static function **strlen**($str, $encoding = ‘UTF-8’) - public static function **stripslashes**($string) - public static function **strtoupper**($str) - public static function **substr**($str, $start, $length = false, $encoding = ‘utf-8’) - public static function **ucfirst**($str) - public static function **orderbyPrice**(&$array, $order\_way) - public static function **iconv**($from, $to, $string) - public static function **isEmpty**($field) - public static function **ps\_round**($value, $precision = 0) */\*\* returns the rounded value of $value to specified precision, according to your configuration; \* @note : PHP 5.3.0 introduce a 3rd parameter mode in round function \* @param float $value @param int $precision @return float \*/* - public static function **ceilf**($value, $precision = 0) */\*\* returns the rounded value down of $value to specified precision \* @param float $value @param int $precision @return float \*/* - public static function **floorf**($value, $precision = 0) */\*\* returns the rounded value up of $value to specified precision \* @param float $value @param int $precision @return float \*/* - public static function **file\_exists\_cache**($filename) */\*\* file\_exists() wrapper with cache to speedup performance \* @param string $filename File name @return boolean Cached result of file\_exists($filename) \*/* - public static function **file\_get\_contents**($url, $use\_include\_path = false, $stream\_context = null, $curl\_timeout = 5) - public static function **simplexml\_load\_file**($url, $class\_name = null) - public static function **minifyHTML**($html\_content) */\*\* @deprecated as of 1.5 use Media::minifyHTML() \*/* - \* @prototype string public static function **toCamelCase**(string $str\[, bool $catapitalise\_first\_char = false\]) - public static function **toCamelCase**($str, $catapitalise\_first\_char = false) */\*\* Translates a string with underscores into camel case (e.g. first\_name -\> firstName) @prototype string public static function **toCamelCase**(string $str\[, bool $catapitalise\_first\_char = false\]) \*/* - public static function **toUnderscoreCase**($string) */\*\* Transform a CamelCase string to underscore\_case string \* @param string $string @return string \*/* - public static function **getBrightness**($hex) - public static function **minifyHTMLpregCallback**($preg\_matches) */\*\* @deprecated as of 1.5 use Media::minifyHTMLpregCallback() \*/* - public static function **packJSinHTML**($html\_content) */\*\* @deprecated as of 1.5 use Media::packJSinHTML() \*/* - public static function **packJSinHTMLpregCallback**($preg\_matches) */\*\* @deprecated as of 1.5 use Media::packJSinHTMLpregCallback() \*/* - public static function **packJS**($js\_content) */\*\* @deprecated as of 1.5 use Media::packJS() \*/* - public static function **parserSQL**($sql) - public static function **minifyCSS**($css\_content, $fileuri = false) */\*\* @deprecated as of 1.5 use Media::minifyCSS() \*/* - public static function **replaceByAbsoluteURL**($matches) - public static function **addJS**($js\_uri) */\*\* addJS load a javascript file in the header \* @deprecated as of 1.5 use FrontController-\>addJS() @param mixed $js\_uri @return void \*/* - public static function **addCSS**($css\_uri, $css\_media\_type = ‘all’) */\*\* @deprecated as of 1.5 use FrontController-\>addCSS() \*/* - public static function **cccCss**($css\_files) */\*\* @deprecated as of 1.5 use Media::cccCss() \*/* - public static function **cccJS**($js\_files) */\*\* @deprecated as of 1.5 use Media::cccJS() \*/* - public static function **getMediaServer**($filename) - public static function **generateHtaccess**($path = null, $rewrite\_settings = null, $cache\_control = null, $specific = », $disable\_multiviews = null, $medias = false, $disable\_modsec = null) - public static function **getDefaultIndexContent**() - public static function **jsonDecode**($json, $assoc = false) */\*\* jsonDecode convert json string to php array / object \* @param string $json @param boolean $assoc (since 1.4.2.4) if true, convert to associativ array @return array \*/* - public static function **jsonEncode**($data) */\*\* Convert an array to json string \* @param array $data @return string json \*/* - public static function **displayAsDeprecated**($message = null) */\*\* Display a warning message indicating that the method is deprecated \*/* - public static function **displayParameterAsDeprecated**($parameter) */\*\* Display a warning message indicating that the parameter is deprecated \*/* - public static function **displayFileAsDeprecated**() - public static function **enableCache**($level = 1, Context $context = null) - public static function **restoreCacheSettings**(Context $context = null) - public static function **isCallable**($function) - public static function **pRegexp**($s, $delim) - public static function **str\_replace\_once**($needle, $replace, $haystack) - public static function **property\_exists**($class, $property) */\*\* Function property\_exists does not exist in PHP \< 5.1 \* @deprecated since 1.5.0 (PHP 5.1 required, so property\_exists() is now natively supported) @param object or class $class @param string $property @return boolean \*/* - public static function **checkPhpVersion**() */\*\* @desc identify the version of php @return string \*/* - public static function **ZipTest**($from\_file) */\*\* @desc try to open a zip file in order to check if it’s valid @return bool success \*/* - public static function **getSafeModeStatus**() - public static function **ZipExtract**($from\_file, $to\_dir) */\*\* @desc extract a zip file to the given directory @return bool success \*/* - public static function **getProductsOrder**($type, $value = null, $prefix = false) */\*\* Get products order field name for queries. \* @param string $type by|way @param string $value If no index given, use default order from admin -\> pref -\> products @param bool|\\bool(false)|string $prefix \* @return string Order by sql clause \*/* - public static function **convertBytes**($value) */\*\* Convert a shorthand byte value from a PHP configuration directive to an integer value @param string $value value to convert @return int \*/* - public static function **display404Error**() - public static function **url**($begin, $end) */\*\* Concat $begin and $end, add ? or & between strings \* @since 1.5.0 @param string $begin @param string $end @return string \*/* - public static function **dieOrLog**($msg, $die = true) */\*\* Display error and dies or silently log the error. \* @param string $msg @param bool $die @return bool success of logging \*/* - public static function **nl2br**($str) */\*\* Convert \\n and \\r\\n and \\r to \* @param string $string String to transform @return string New string \*/* - public static function **clearCache**($smarty = null, $tpl = false, $cache\_id = null, $compile\_id = null) */\*\* Clear cache for Smarty \* @param Smarty $smarty \*/* - public static function **getMemoryLimit**() */\*\* getMemoryLimit allow to get the memory limit in octet \* @since 1.4.5.0 @return int the memory limit value in octet \*/* - public static function **getOctets**($option) */\*\* getOctet allow to gets the value of a configuration option in octet \* @since 1.5.0 @return int the value of a configuration option in octet \*/* - public static function **isX86\_64arch**() */\*\* \* @return bool true if the server use 64bit arch \*/* - public static function **getMaxUploadSize**($max\_size = 0) */\*\* Get max file upload size considering server settings and optional max value \* @param int $max\_size optional max file size @return int max file size in bytes \*/* - public static function **apacheModExists**($name) */\*\* apacheModExists return true if the apache module $name is loaded @TODO move this method in class Information (when it will exist) \* Notes: This method requires either apache\_get\_modules or phpinfo() to be available. With CGI mod, we cannot get php modules \* @param string $name module name @return boolean true if exists @since 1.4.5.0 \*/* - public static function **scandir**($path, $ext = ‘php’, $dir = », $recursive = false) */\* \* @return array List of file found @since 1.5.0 \*/* - public static function **version\_compare**($v1, $v2, $operator = ‘\<‘) */\*\* Align version sent and use internal function \* @static @param $v1 @param $v2 @param string $operator @return mixed \*/* - public static function **alignVersionNumber**(&$v1, &$v2) */\*\* Align 2 version with the same number of sub version version\_compare will work better for its comparison ? (Means: ‘1.8’ to ‘1.9.3’ will change ‘1.8’ to ‘1.8.0’) @static @param $v1 @param $v2 \*/* - public static function **modRewriteActive**() - public static function **unSerialize**($serialized, $object = false) - public static function **arrayUnique**($array) */\*\* Reproduce array\_unique working before php version 5.2.9 @param array $array @return array \*/* - public static function **cleanNonUnicodeSupport**($pattern) */\*\* Delete unicode class from regular expression patterns @param string $pattern @return pattern \*/* - public static function **addonsRequest**($request, $params = array()) # class TranslateCore ./classes/Translate.php - public static function **getAdminTranslation**($string, $class = ‘AdminTab’, $addslashes = false, $htmlentities = true, $sprintf = null) */\*\* Get a translation for an admin controller \* @param $string @param string $class @param bool $addslashes @param bool $htmlentities @return string \*/* - public static function **getGenericAdminTranslation**($string, $key = null, &$lang\_array) */\*\* Return the translation for a string if it exists for the base AdminController or for helpers \* @static @param $string string to translate @param null $key md5 key if already calculated (optional) @param $lang\_array global array of admin translations @return string translation \*/* - public static function **getModuleTranslation**($module, $string, $source, $sprintf = null, $js = false) */\*\* Get a translation for a module \* @param string|Module $module @param string $string @param string $source @return string \*/* - public static function **getPdfTranslation**($string) */\*\* Get a translation for a PDF \* @param string $string @return string \*/* - public static function **checkAndReplaceArgs**($string, $args) */\*\* Check if string use a specif syntax for sprintf and replace arguments if use it \* @param $string @param $args @return string \*/* # class TranslatedConfigurationCore extends Configuration ./classes/TranslatedConfiguration.php - public function **\_\_construct**($id = NULL, $id\_lang = NULL) - public function **add**($autodate = true, $nullValues = false) - public function **update**($nullValues = false) - public function **getWebserviceObjectList**($sql\_join, $sql\_filter, $sql\_sort, $sql\_limit) # class UpgraderCore ./classes/Upgrader.php - public function **\_\_construct**($autoload = false) - public function **\_\_get**($var) - public function **downloadLast**($dest, $filename = ‘prestashop.zip’) */\*\* downloadLast download the last version of PrestaShop and save it in $dest/$filename \* @param string $dest directory where to save the file @param string $filename new filename @return boolean \* @TODO ftp if copy is not possible (safe\_mode for example) \*/* - public function **isLastVersion**() - public function **checkPSVersion**($force = false) */\*\* checkPSVersion ask to prestashop.com if there is a new version. return an array if yes, false otherwise \* @return mixed \*/* - public function **loadFromConfig**() */\*\* load the last version informations stocked in base \* @return $this \*/* - public function **getChangedFilesList**() */\*\* return an array of files that the md5file does not match to the original md5file (provided by $rss\_md5file\_link\_dir ) @return void \*/* - public function **isAuthenticPrestashopVersion**() # class ValidateCore ./classes/Validate.php - public static function **isIp2Long**($ip) - public static function **isAnything**() - public static function **isEmail**($email) */\*\* Check for e-mail validity \* @param string $email e-mail address to validate @return boolean Validity is ok or not \*/* - public static function **isModuleUrl**($url, &$errors) */\*\* Check for module URL validity \* @param string $url module URL to validate @param array $errors Reference array for catching errors @return boolean Validity is ok or not \*/* - public static function **isMd5**($md5) */\*\* Check for MD5 string validity \* @param string $md5 MD5 string to validate @return boolean Validity is ok or not \*/* - public static function **isSha1**($sha1) */\*\* Check for SHA1 string validity \* @param string $sha1 SHA1 string to validate @return boolean Validity is ok or not \*/* - public static function **isFloat**($float) */\*\* Check for a float number validity \* @param float $float Float number to validate @return boolean Validity is ok or not \*/* - public static function **isUnsignedFloat**($float) - public static function **isOptFloat**($float) */\*\* Check for a float number validity \* @param float $float Float number to validate @return boolean Validity is ok or not \*/* - public static function **isCarrierName**($name) */\*\* Check for a carrier name validity \* @param string $name Carrier name to validate @return boolean Validity is ok or not \*/* - public static function **isImageSize**($size) */\*\* Check for an image size validity \* @param string $size Image size to validate @return boolean Validity is ok or not \*/* - public static function **isName**($name) */\*\* Check for name validity \* @param string $name Name to validate @return boolean Validity is ok or not \*/* - public static function **isHookName**($hook) */\*\* Check for hook name validity \* @param string $hook Hook name to validate @return boolean Validity is ok or not \*/* - public static function **isMailName**($mail\_name) */\*\* Check for sender name validity \* @param string $mail\_name Sender name to validate @return boolean Validity is ok or not \*/* - public static function **isMailSubject**($mail\_subject) */\*\* Check for e-mail subject validity \* @param string $mail\_subject e-mail subject to validate @return boolean Validity is ok or not \*/* - public static function **isModuleName**($module\_name) */\*\* Check for module name validity \* @param string $module\_name Module name to validate @return boolean Validity is ok or not \*/* - public static function **isTplName**($tpl\_name) */\*\* Check for template name validity \* @param string $tpl\_name Template name to validate @return boolean Validity is ok or not \*/* - public static function **isImageTypeName**($type) */\*\* Check for image type name validity \* @param string $type Image type name to validate @return boolean Validity is ok or not \*/* - public static function **isPrice**($price) */\*\* Check for price validity \* @param string $price Price to validate @return boolean Validity is ok or not \*/* - public static function **isNegativePrice**($price) */\*\* Check for price validity (including negative price) \* @param string $price Price to validate @return boolean Validity is ok or not \*/* - public static function **isLanguageIsoCode**($iso\_code) */\*\* Check for language code (ISO) validity \* @param string $iso\_code Language code (ISO) to validate @return boolean Validity is ok or not \*/* - public static function **isLanguageCode**($s) - public static function **isStateIsoCode**($iso\_code) - public static function **isNumericIsoCode**($iso\_code) - public static function **isDiscountName**($voucher) */\*\* Check for voucher name validity \* @param string $voucher voucher to validate @return boolean Validity is ok or not \*/* - public static function **isCatalogName**($name) */\*\* Check for product or category name validity \* @param string $name Product or category name to validate @return boolean Validity is ok or not \*/* - public static function **isMessage**($message) */\*\* Check for a message validity \* @param string $message Message to validate @return boolean Validity is ok or not \*/* - public static function **isCountryName**($name) */\*\* Check for a country name validity \* @param string $name Country name to validate @return boolean Validity is ok or not \*/* - public static function **isLinkRewrite**($link) */\*\* Check for a link (url-rewriting only) validity \* @param string $link Link to validate @return boolean Validity is ok or not \*/* - public static function **isRoutePattern**($pattern) */\*\* Check for a route pattern validity \* @param string $pattern to validate @return boolean Validity is ok or not \*/* - public static function **isAddress**($address) */\*\* Check for a postal address validity \* @param string $address Address to validate @return boolean Validity is ok or not \*/* - public static function **isCityName**($city) */\*\* Check for city name validity \* @param string $city City name to validate @return boolean Validity is ok or not \*/* - public static function **isValidSearch**($search) */\*\* Check for search query validity \* @param string $search Query to validate @return boolean Validity is ok or not \*/* - public static function **isGenericName**($name) */\*\* Check for standard name validity \* @param string $name Name to validate @return boolean Validity is ok or not \*/* - public static function **isCleanHtml**($html) */\*\* Check for HTML field validity (no XSS please !) \* @param string $html HTML field to validate @return boolean Validity is ok or not \*/* - public static function **isReference**($reference) */\*\* Check for product reference validity \* @param string $reference Product reference to validate @return boolean Validity is ok or not \*/* - public static function **isPasswd**($passwd, $size = 5) */\*\* Check for password validity \* @param string $passwd Password to validate @param int $size @return boolean Validity is ok or not \*/* - public static function **isPasswdAdmin**($passwd) - public static function **isConfigName**($config\_name) */\*\* Check for configuration key validity \* @param string $config\_name Configuration key to validate @return boolean Validity is ok or not \*/* - public static function **isPhpDateFormat**($date\_format) */\*\* Check date formats like http://php.net/manual/en/function.date.php \* @param string $date\_format date format to check @return boolean Validity is ok or not \*/* - public static function **isDateFormat**($date) */\*\* Check for date format \* @param string $date Date to validate @return boolean Validity is ok or not \*/* - public static function **isDate**($date) */\*\* Check for date validity \* @param string $date Date to validate @return boolean Validity is ok or not \*/* - public static function **isBirthDate**($date) */\*\* Check for birthDate validity \* @param string $date birthdate to validate @return boolean Validity is ok or not \*/* - public static function **isBool**($bool) */\*\* Check for boolean validity \* @param boolean $bool Boolean to validate @return boolean Validity is ok or not \*/* - public static function **isPhoneNumber**($number) */\*\* Check for phone number validity \* @param string $number Phone number to validate @return boolean Validity is ok or not \*/* - public static function **isEan13**($ean13) */\*\* Check for barcode validity (EAN-13) \* @param string $ean13 Barcode to validate @return boolean Validity is ok or not \*/* - public static function **isUpc**($upc) */\*\* Check for barcode validity (UPC) \* @param string $upc Barcode to validate @return boolean Validity is ok or not \*/* - public static function **isPostCode**($postcode) */\*\* Check for postal code validity \* @param string $postcode Postal code to validate @return boolean Validity is ok or not \*/* - public static function **isZipCodeFormat**($zip\_code) */\*\* Check for zip code format validity \* @param string $zip\_code zip code format to validate @return boolean Validity is ok or not \*/* - public static function **isOrderWay**($way) */\*\* Check for table or identifier validity Mostly used in database for ordering : ASC / DESC \* @param string $way Keyword to validate @return boolean Validity is ok or not \*/* - public static function **isOrderBy**($order) */\*\* Check for table or identifier validity Mostly used in database for ordering : ORDER BY field \* @param string $order Field to validate @return boolean Validity is ok or not \*/* - public static function **isTableOrIdentifier**($table) */\*\* Check for table or identifier validity Mostly used in database for table names and id\_table \* @param string $table Table/identifier to validate @return boolean Validity is ok or not \*/* - public static function **isValuesList**() */\*\* @deprecated 1.5.0 You should not use list like this, please use an array when you build a SQL query \*/* - public static function **isTagsList**($list) */\*\* Check for tags list validity \* @param string $list List to validate @return boolean Validity is ok or not \*/* - public static function **isProductVisibility**($s) */\*\* Check for product visibility \* @param string $s visibility to check @return boolean Validity is ok or not \*/* - public static function **isInt**($value) */\*\* Check for an integer validity \* @param integer $value Integer to validate @return boolean Validity is ok or not \*/* - public static function **isUnsignedInt**($value) */\*\* Check for an integer validity (unsigned) \* @param integer $value Integer to validate @return boolean Validity is ok or not \*/* - public static function **isPercentage**($value) */\*\* Check for an percentage validity (between 0 and 100) \* @param float $value Float to validate @return boolean Validity is ok or not \*/* - public static function **isUnsignedId**($id) */\*\* Check for an integer validity (unsigned) Mostly used in database for auto-increment \* @param integer $id Integer to validate @return boolean Validity is ok or not \*/* - public static function **isNullOrUnsignedId**($id) */ Because an id could be equal to zero when there is no association \*/ }* - public static function **isLoadedObject**($object) */\*\* Check object validity \* @param object $object Object to validate @return boolean Validity is ok or not \*/* - public static function **isColor**($color) */\*\* Check object validity \* @param integer $object Object to validate @return boolean Validity is ok or not \*/* - public static function **isUrl**($url) */\*\* Check url validity (disallowed empty string) \* @param string $url Url to validate @return boolean Validity is ok or not \*/* - public static function **isTrackingNumber**($tracking\_number) */\*\* Check tracking number validity (disallowed empty string) \* @param string $tracking\_number Tracking number to validate @return boolean Validity is ok or not \*/* - public static function **isUrlOrEmpty**($url) */\*\* Check url validity (allowed empty string) \* @param string $url Url to validate @return boolean Validity is ok or not \*/* - public static function **isAbsoluteUrl**($url) */\*\* Check if URL is absolute \* @param string $url URL to validate @return boolean Validity is ok or not \*/* - public static function **isMySQLEngine**($engine) - public static function **isUnixName**($data) - public static function **isTablePrefix**($data) - public static function **isFileName**($name) */\*\* Check for standard name file validity \* @param string $name Name to validate @return boolean Validity is ok or not \*/* - public static function **isDirName**($dir) */\*\* Check for standard name directory validity*@param string $dir Directory to validate @return boolean Validity is ok or not \*/ - public static function **isTabName**($name) */\*\* Check for admin panel tab name validity \* @param string $name Name to validate @return boolean Validity is ok or not \*/* - public static function **isWeightUnit**($unit) - public static function **isDistanceUnit**($unit) - public static function **isSubDomainName**($domain) - public static function **isVoucherDescription**($text) - public static function **isSortDirection**($value) */\*\* Check if the value is a sort direction value (DESC/ASC) \* @param char $value @return boolean Validity is ok or not \*/* - public static function **isLabel**($label) */\*\* Customization fields’ label validity \* @param string $label @return boolean Validity is ok or not \*/* - public static function **isPriceDisplayMethod**($data) */\*\* Price display method validity \* @param integer $data Data to validate @return boolean Validity is ok or not \*/* - public static function **isDniLite**($dni) */\*\* @param string $dni to validate @return bool \*/* - public static function **isCookie**($data) */\*\* Check if $data is a PrestaShop cookie object \* @param mixed $data to validate @return bool \*/* - public static function **isString**($data) */\*\* Price display method validity \* @param string $data Data to validate @return boolean Validity is ok or not \*/* - public static function **isReductionType**($data) */\*\* Check if the data is a reduction type (amout or percentage) \* @param string $data Data to validate @return boolean Validity is ok or not \*/* - public static function **isBoolId**($ids) */\*\* Check for bool\_id \* @param string $ids @return boolean Validity is ok or not \*/* - public static function **isBool\_Id**($ids) */\*\* @deprecated 1.5.0 Use Validate::isBoolId() \*/* - public static function **isLocalizationPackSelection**($data) */\*\* Check the localization pack part selected \* @param string $data Localization pack to check @return boolean Validity is ok or not \*/* - public static function **isSerializedArray**($data) */\*\* Check for PHP serialized data \* @param string $data Serialized data to validate @return boolean Validity is ok or not \*/* - public static function **isCoordinate**($data) */\*\* Check for Latitude/Longitude \* @param string $data Coordinate to validate @return boolean Validity is ok or not \*/* - public static function **isLangIsoCode**($iso\_code) */\*\* Check for Language Iso Code \* @param string $iso\_code @return boolean Validity is ok or not \*/* - public static function **isLanguageFileName**($file\_name) */\*\* Check for Language File Name \* @param string $file\_name @return boolean Validity is ok or not \*/* - public static function **isArrayWithIds**($ids) */\*\* \* @param array $ids @return boolean return true if the array contain only unsigned int value \*/* - public static function **isSceneZones**($zones) */\*\* \* @param array $zones @return boolean return true if array contain all value required for an image map zone \*/* - public static function **isStockManagement**($stock\_management) */\*\* \* @param array $stock\_management @return boolean return true if is a valide stock management \*/* - public static function **isSiret**($siret) */\*\* Validate SIRET Code @static @param $siret SIRET Code @return boolean Return true if is valid \*/* - public static function **isApe**($ape) */\*\* Validate APE Code @static @param $ape APE Code @return boolean Return true if is valid \*/* - public static function **isControllerName**($name) # class ZoneCore extends ObjectModel ./classes/Zone.php - public static function **getZones**($active = false) */\*\* Get all available geographical zones \* @param bool $active @return array Zones \*/* - public static function **getIdByName**($name) */\*\* Get a zone ID from its default language name \* @param string $name @return integer id\_zone \*/* - public function **delete**() */\*\* Delete a zone \* @return boolean Deletion result \*/* # class WebserviceExceptionCore extends Exception ./classes/webservice\\WebserviceException.php - public function **\_\_construct**($message, $code) - public function **getType**() - public function **setType**($type) - public function **setStatus**($status) - public function **getStatus**() - public function **getWrongValue**() - public function **setDidYouMean**($wrong\_value, $available\_values) - public function **getAvailableValues**() # class WebserviceKeyCore extends ObjectModel ./classes/webservice\\WebserviceKey.php - public function **add**($autodate = true, $nullValues = false) - public static function **keyExists**($key) - public function **delete**() - public function **deleteAssociations**() - public static function **getPermissionForAccount**($auth\_key) - public static function **isKeyActive**($auth\_key) - public static function **getClassFromKey**($auth\_key) - public static function **setPermissionForAccount**($id\_account, $permissions\_to\_set) # class WebserviceOutputBuilderCore ./classes/webservice\\WebserviceOutputBuilder.php - public function **\_\_construct**($ws\_url) - public function **setObjectRender**(WebserviceOutputInterface $obj\_render) */\*\* Set the render object for set the output format. Set the Content-type for the http header. \* @param WebserviceOutputInterface $obj\_render @throw WebserviceException if the object render is not an instance of WebserviceOutputInterface @return $this \*/* - public function **getObjectRender**() */\*\* getter @return WebserviceOutputInterface \*/* - public function **setWsResources**($resources) */\*\* Need to have the resource list to get the class name for an entity, To build \* @param array $resources @return $this \*/* - public function **buildHeader**() */\*\* This method return an array with each http header params for a content. This check each required params. \* If this method is overrided don’t forget to check required specific params (for xml etc…) \* @return array \*/* - public function **setHeaderParams**($key, $value) */\*\* @param $key The normalized key expected for an http response @param $value @throw WebserviceException if the key or the value are corrupted (use Validate::isCleanHtml method) @return $this \*/* - public function **getHeaderParams**($key = null) */\*\* @param null|string $key if null get all header params otherwise the params specified by the key @throw WebserviceException if the key is corrupted (use Validate::isCleanHtml method) @throw WebserviceException if the asked key does’nt exists. @return array|string \*/* - public function **resetHeaderParams**() */\*\* Delete all Header parameters previously set. \* @return $this \*/* - public function **getStatus**() */\*\* @return string the normalized status for http request \*/* - public function **getStatusInt**() - public function **setStatus**($num) */\*\* Set the return header status \* @param int $num the Http status code @return void \*/* - public function **getErrors**($errors) */\*\* Build errors output using an error array \* @param array $errors @return string output in the format specified by WebserviceOutputBuilder::objectRender \*/* - public function **getResourcesList**($key\_permissions) */\*\* Build the resource list in the output format specified by WebserviceOutputBuilder::objectRender @param $key\_permissions @return string \*/* - public function **registerOverrideWSParameters**($wsrObject, $method) - public function **getContent**($objects, $schema\_to\_display = null, $fields\_to\_display = ‘minimum’, $depth = 0, $type\_of\_view = self::VIEW\_LIST, $override = true) */\*\* Method is used for each content type Different content types are : – list of entities, – tree diagram of entity details (full or minimum), – schema (synopsis & blank), \* @param array $objects each object created by entity asked @see WebserviceOutputBuilder::executeEntityGetAndHead @param null|string $schema\_to\_display if null display the entities list or entity details. @param string|array $fields\_to\_display the fields allow for the output @param int $depth depth for the tree diagram output. @param int $type\_of\_view use the 2 constants WebserviceOutputBuilder::VIEW\_LIST WebserviceOutputBuilder::VIEW\_DETAILS @return string in the output format specified by WebserviceOutputBuilder::objectRender \*/* - public function **renderEntityMinimum**($object, $depth) */\*\* Create the tree diagram with no details \* @param $object create by the entity @param $depth the depth for the tree diagram @return string \*/* - public function **renderEntity**($object, $depth) */\*\* Build the entity detail. \* @param ObjectModel $object create by the entity @param int $depth the depth for the tree diagram @return string \*/* - public function **setIndent**($depth) - public function **getSynopsisDetails**($field) - public function **setSpecificField**($object, $method, $field\_name, $entity\_name) */\*\* \* @param string|object $object @param string $method @return $this \*/* - public function **getSpecificField**() - public function **setVirtualField**($object, $method, $entity\_name, $parameters) - public function **getVirtualFields**() - public function **addVirtualFields**($entity\_name, $entity\_object) - public function **setFieldsToDisplay**($fields) # class WebserviceOutputXMLCore implements WebserviceOutputInterface ./classes/webservice\\WebserviceOutputXML.php - public function **setSchemaToDisplay**($schema) - public function **getSchemaToDisplay**() - public function **setWsUrl**($url) - public function **getWsUrl**() - public function **getContentType**() - public function **\_\_construct**($languages = array()) - public function **setLanguages**($languages) - public function **renderErrorsHeader**() - public function **renderErrorsFooter**() - public function **renderErrors**($message, $code = null) - public function **renderField**($field) - public function **renderNodeHeader**($node\_name, $params, $more\_attr = null, $has\_child = true) - public function **getNodeName**($params) - public function **renderNodeFooter**($node\_name, $params) - public function **overrideContent**($content) - public function **renderAssociationWrapperHeader**() - public function **renderAssociationWrapperFooter**() - public function **renderAssociationHeader**($obj, $params, $assoc\_name, $closed\_tags = false) - public function **renderAssociationFooter**($obj, $params, $assoc\_name) # class WebserviceRequestCore ./classes/webservice\\WebserviceRequest.php - public function **getOutputEnabled**() - public function **setOutputEnabled**($bool) - public static function **getInstance**() */\*\* Get WebserviceRequest object instance (Singleton) \* @return object WebserviceRequest instance \*/* - public static function **getResources**() - public function **getPriceForProduct**($field, $entity\_object, $ws\_params) */\*\* This method is used for calculate the price for products on the output details \* @param $field @param $entity\_object @param $ws\_params @return array field parameters. \*/* - public function **specificPriceForProduct**($entity\_object, $parameters) */\*\* This method is used for calculate the price for products on a virtual fields \* @param $entity\_object @param array $parameters @return array \*/* - public function **specificPriceCalculation**($parameters) - public function **specificPriceForCombination**($entity\_object, $parameters) */\*\* This method is used for calculate the price for products on a virtual fields \* @param $entity\_object @param array $parameters @return array \*/* - public function **fetch**($key, $method, $url, $params, $bad\_class\_name, $inputXml = NULL) */\*\* Start Webservice request Check webservice activation Check autentication Check resource Check HTTP Method Execute the action Display the result \* @param string $key @param string $method @param string $url @param string $params @param string $inputXml \* @return array Returns an array of results (headers, content, type of resource…) \*/* - public function **setError**($status, $label, $code) */\*\* Set a webservice error \* @param int $status @param string $label @param int $code @return void \*/* - public function **setErrorDidYouMean**($num, $label, $value, $available\_values, $code) */\*\* Set a webservice error and propose a new value near from the available values \* @param int $num @param string $label @param array $value @param array $values @param int $code @return void \*/* - public function **webserviceErrorHandler**($errno, $errstr, $errfile, $errline) */\*\* Used to replace the default PHP error handler, in order to display PHP errors in a XML format \* @param string $errno contains the level of the error raised, as an integer @param array $errstr contains the error message, as a string @param array $errfile errfile, which contains the filename that the error was raised in, as a string @param array $errline errline, which contains the line number the error was raised at, as an integer @return boolean Always return true to avoid the default PHP error handler \*/* - public function **setFieldsToDisplay**() - public function **getFilteredObjectList**() - public function **getFilteredObjectDetails**() - public function **executeEntityGetAndHead**() */\*\* Execute GET and HEAD requests \* Build filter Build fields display Build sort Build limit \* @return boolean \*/* - public function **filterLanguage**() # class WebserviceSpecificManagementImagesCore implements WebserviceSpecificManagementInterface ./classes/webservice\\WebserviceSpecificManagementImages.php - public function **setObjectOutput**(WebserviceOutputBuilderCore $obj) - public function **getObjectOutput**() - public function **setWsObject**(WebserviceRequestCore $obj) - public function **getWsObject**() - public function **getContent**() */\* This method need $this-\>imgToDisplay to be set if output don’t needs to be XML \*/* - public function **manage**() # class WebserviceSpecificManagementSearchCore implements WebserviceSpecificManagementInterface ./classes/webservice\\WebserviceSpecificManagementSearch.php - public function **setObjectOutput**(WebserviceOutputBuilderCore $obj) - public function **setWsObject**(WebserviceRequestCore $obj) - public function **getWsObject**() - public function **getObjectOutput**() - public function **setUrlSegment**($segments) - public function **getUrlSegment**() - public function **manage**() */\*\* Management of search \* \*/* - public function **getContent**() */\*\* This must be return a string with specific values as WebserviceRequest expects. \* @return string \*/* # class TaxCore extends ObjectModel ./classes/tax\\Tax.php - public function **delete**() - public function **historize**() */\*\* Save the object with the field deleted to true \* @return bool \*/* - public function **toggleStatus**() - public function **update**($nullValues = false) - public function **isUsed**() */\*\* Returns true if the tax is used in an order details \* @return bool \*/* - public static function **getTaxes**($id\_lang = false, $active\_only = true) */\*\* Get all available taxes \* @return array Taxes \*/* - public static function **excludeTaxeOption**() - public static function **getTaxIdByName**($tax\_name, $active = 1) */\*\* Return the tax id associated to the specified name \* @param string $tax\_name @param boolean $active (true by default) \*/* - public static function **getProductEcotaxRate**($id\_address = null) */\*\* Returns the ecotax tax rate \* @param id\_address @return float $tax\_rate \*/* - public static function **getCarrierTaxRate**($id\_carrier, $id\_address = null) */\*\* Returns the carrier tax rate \* @param id\_address @return float $tax\_rate \*/* - public static function **getProductTaxRateViaRules**($id\_product, $id\_country, $id\_state, $zipcode) */\*\* Return the product tax rate using the tax rules system \* @param integer $id\_product @param integer $id\_country @return Tax \* @deprecated since 1.5 \*/* - public static function **getProductTaxRate**($id\_product, $id\_address = null, Context $context = null) */\*\* Returns the product tax \* @param integer $id\_product @param integer $id\_country @return Tax \*/* # class TaxCalculatorCore ./classes/tax\\TaxCalculator.php - public function **\_\_construct**(array $taxes = array(), $computation\_method = TaxCalculator::COMBINE\_METHOD) */\*\* @param array $taxes @param int $computation\_method (COMBINE\_METHOD | ONE\_AFTER\_ANOTHER\_METHOD) \*/* - public function **addTaxes**($price\_te) */\*\* Compute and add the taxes to the specified price \* @param price\_te price tax excluded @return float price with taxes \*/* - public function **removeTaxes**($price\_ti) */\*\* Compute and remove the taxes to the specified price \* @param price\_ti price tax inclusive @return price without taxes \*/* - public function **getTotalRate**() */\*\* @return float total taxes rate \*/* - public function **getTaxesName**() - public function **getTaxesAmount**($price\_te) */\*\* Return the tax amount associated to each taxes of the TaxCalculator \* @param float $price\_te @return array $taxes\_amount \*/* # class TaxManagerFactoryCore ./classes/tax\\TaxManagerFactory.php - public static function **getManager**(Address $address, $type) */\*\* Returns a tax manager able to handle this address \* @param Address $address @param string $type \* @return TaxManager \*/* - public static function **execHookTaxManagerFactory**(Address $address, $type) */\*\* Check for a tax manager able to handle this type of address in the module list \* @param Address $address @param string $type \* @return TaxManager \*/* # class TaxRuleCore extends ObjectModel ./classes/tax\\TaxRule.php - public static function **deleteByGroupId**($id\_group) - public static function **retrieveById**($id\_tax\_rule) - public static function **getTaxRulesByGroupId**($id\_lang, $id\_group) - public static function **deleteTaxRuleByIdTax**($id\_tax) - public static function **deleteTaxRuleByIdCounty**($id\_county) */\*\* @deprecated since 1.5 \*/* - public static function **isTaxInUse**($id\_tax) */\*\* @param int $id\_tax @return boolean \*/* - public function **breakDownZipCode**($zip\_codes) */\*\* @param string $zipcode a range of zipcode (eg: 75000 / 75000-75015) @return array an array containing two zipcode ordered by zipcode \*/* - public static function **swapTaxId**($old\_id, $new\_id) */\*\* Replace a tax\_rule id by an other one in the tax\_rule table \* @param int $old\_id @param int $new\_id \*/* # class TaxRulesGroupCore extends ObjectModel ./classes/tax\\TaxRulesGroup.php - public static function **getTaxRulesGroups**($only\_active = true) - public static function **getTaxRulesGroupsForOptions**() */\*\* @return array an array of tax rules group formatted as $id =\> $name \*/* - public function **delete**() - public static function **getAssociatedTaxRatesByIdCountry**($id\_country) */\*\* @return array \*/* - public static function **getIdByName**($name) */\*\* Returns the tax rules group id corresponding to the name \* @param string name @return int id of the tax rules \*/* - public function **hasUniqueTaxRuleForCountry**($id\_country, $id\_state) - public static function **getTaxesRate**($id\_tax\_rules\_group, $id\_country, $id\_state, $zipcode) */\*\* @deprecated since 1.5 \*/* - public static function **getTaxes**($id\_tax\_rules\_group, $id\_country, $id\_state, $id\_county) */\*\* Return taxes associated to this para @deprecated since 1.5 \*/* # class TaxRulesTaxManagerCore implements TaxManagerInterface ./classes/tax\\TaxRulesTaxManager.php - public function **\_\_construct**(Address $address, $type) */\*\** @param Address $address @param mixed An additional parameter for the tax manager (ex: tax rules id for TaxRuleTaxManager) \*/ - public static function **isAvailableForThisAddress**(Address $address) */\*\* Returns true if this tax manager is available for this address \* @return boolean \*/* - public function **getTaxCalculator**() */\*\* Return the tax calculator associated to this address \* @return TaxCalculator \*/* # class StockCore extends ObjectModel ./classes/stock\\Stock.php - public function **update**($null\_values = false) */\*\* @see ObjectModel::update() \*/* - public function **add**($autodate = true, $null\_values = false) */\*\* @see ObjectModel::add() \*/* - public function **getWsRealQuantity**() */\*\* Webservice : used to get the real quantity of a product \*/* # class StockAvailableCore extends ObjectModel ./classes/stock\\StockAvailable.php - public function **updateWs**() */\*\* For a given {id\_product, id\_product\_attribute and id\_shop}, gets the stock available id associated \* @param int $id\_product @param int $id\_product\_attribute Optional @param int $id\_shop Optional @return int \*/* - public static function **getStockAvailableIdByProductId**($id\_product, $id\_product\_attribute = null, $id\_shop = null) - public static function **synchronize**($id\_product, $order\_id\_shop = null) */\*\* For a given id\_product, synchronizes StockAvailable::quantity with Stock::usable\_quantity \* @param int $id\_product \*/* - public static function **setProductDependsOnStock**($id\_product, $depends\_on\_stock = true, $id\_shop = null, $id\_product\_attribute = 0) */\*\* For a given id\_product, sets if stock available depends on stock \* @param int $id\_product @param int $depends\_on\_stock Optional : true by default @param int $id\_shop Optional : gets context by default \*/* - public static function **setProductOutOfStock**($id\_product, $out\_of\_stock = false, $id\_shop = null, $id\_product\_attribute = 0) */\*\* For a given id\_product, sets if product is available out of stocks \* @param int $id\_product @param int $out\_of\_stock Optional false by default @param int $id\_shop Optional gets context by default \*/* - public static function **getQuantityAvailableByProduct**($id\_product = null, $id\_product\_attribute = null, $id\_shop = null) */\*\* For a given id\_product and id\_product\_attribute, gets its stock available \* @param int $id\_product @param int $id\_product\_attribute Optional @param int $id\_shop Optional : gets context by default @return int Quantity \*/* - public function **add**($autodate = true, $null\_values = false) */\*\* Upgrades total\_quantity\_available after having saved @see ObjectModel::add() \*/* - public function **update**($null\_values = false) */\*\* Upgrades total\_quantity\_available after having update @see ObjectModel::update() \*/* - public function **postSave**() */\*\* Upgrades total\_quantity\_available after having saved @see StockAvailableCore::update() @see StockAvailableCore::add() \*/* - public static function **updateQuantity**($id\_product, $id\_product\_attribute, $delta\_quantity, $id\_shop = null) */\*\* For a given id\_product and id\_product\_attribute updates the quantity available \* @param int $id\_product @param int $id\_product\_attribute Optional @param int $delta\_quantity The delta quantity to update @param int $id\_shop Optional \*/* - public static function **setQuantity**($id\_product, $id\_product\_attribute, $quantity, $id\_shop = null) */\*\* For a given id\_product and id\_product\_attribute sets the quantity available \* @param int $id\_product @param int $id\_product\_attribute Optional @param int $delta\_quantity The delta quantity to update @param int $id\_shop Optional \*/* - public static function **removeProductFromStockAvailable**($id\_product, $id\_product\_attribute = null, $shop = null) */\*\* Removes a given product from the stock available \* @param int $id\_product @param int $id\_product\_attribute Optional @param mixed $id\_shop shop id or shop object Optional \*/* - public static function **resetProductFromStockAvailableByShopGroup**(ShopGroup $shop\_group) */\*\* Removes all product quantities from all a group of shops If stocks are shared, remoe all old available quantities for all shops of the group Else remove all available quantities for the current group \* @param ShopGroup $shop\_group the ShopGroup object \*/* - public static function **dependsOnStock**($id\_product, $id\_shop = null) */\*\* For a given product, tells if it depends on the physical (usable) stock \* @param int $id\_product @param int $id\_shop Optional : gets context if null @see Context::getContext() @return bool : depends on stock @see $depends\_on\_stock \*/* - public static function **outOfStock**($id\_product, $id\_shop = null) */\*\* For a given product, get its « out of stock » flag \* @param int $id\_product @param int $id\_shop Optional : gets context if null @see Context::getContext() @return bool : depends on stock @see $depends\_on\_stock \*/* - public static function **addSqlShopRestriction**(DbQuery $sql = null, $shop = null, $alias = null) */\*\* Add an sql restriction for shops fields – specific to StockAvailable \* @param DbQuery $query Reference to the query object @param int $id\_shop Optional : The shop ID @param string $alias Optional : The current table alias \* @return mixed the DbQuery object or the sql restriction string \*/* - public static function **addSqlShopParams**(&$params, $id\_shop = null) */\*\* Add sql params for shops fields – specific to StockAvailable \* @param array $params Reference to the params array @param int $id\_shop Optional : The shop ID \* \*/* - public static function **copyStockAvailableFromShopToShop**($src\_shop\_id, $dst\_shop\_id) */\*\* Copies stock available content table \* @param int $src\_shop\_id @param int $dst\_shop\_id @return bool \*/* # class StockManagerCore implements StockManagerInterface ./classes/stock\\StockManager.php - public static function **isAvailable**() */\*\* @see StockManagerInterface::isAvailable() \*/* - public function **addProduct**($id\_product, */\*\* @see StockManagerInterface::addProduct() \*/* - public function **removeProduct**($id\_product, */\*\* @see StockManagerInterface::removeProduct() \*/* - public function **getProductPhysicalQuantities**($id\_product, $id\_product\_attribute, $ids\_warehouse = null, $usable = false) */\*\* @see StockManagerInterface::getProductPhysicalQuantities() \*/* - public function **getProductRealQuantities**($id\_product, $id\_product\_attribute, $ids\_warehouse = null, $usable = false) */\*\* @see StockManagerInterface::getProductRealQuantities() \*/* - public function **transferBetweenWarehouses**($id\_product, */\*\* @see StockManagerInterface::transferBetweenWarehouses() \*/* - public function **getProductCoverage**($id\_product, $id\_product\_attribute, $coverage, $id\_warehouse = null) */\*\* @see StockManagerInterface::getProductCoverage() Here, $coverage is a number of days @return int number of days left (-1 if infinite) \*/* # class StockManagerFactoryCore ./classes/stock\\StockManagerFactory.php - public static function **getManager**() */\*\* Returns a StockManager \* @return StockManagerInterface \*/* - public static function **execHookStockManagerFactory**() */\*\* Looks for a StockManager in the modules list. \* @return StockManagerInterface \*/* # class StockMvtCore extends ObjectModel ./classes/stock\\StockMvt.php - public static function **addMissingMvt**($id\_employee) */\*\* @deprecated since 1.5.0 \* This method no longer exists. There is no equivalent or replacement, considering that this should be handled by inventories. \*/* - public static function **getNegativeStockMvts**($id\_order, $id\_product, $id\_product\_attribute, $quantity, $id\_warehouse = null) */\*\* Gets the negative (decrements the stock) stock mvts that correspond to the given order, for : the given product, in the given quantity. \* @since 1.5.0 @param int $id\_order @param int $id\_product @param int $id\_product\_attribute Use 0 if the product does not have attributes @param int $quantity @param int $id\_warehouse Optional @return Array mvts \*/* - public static function **getLastPositiveStockMvt**($id\_product, $id\_product\_attribute) */\*\* For a given product, gets the last positive stock mvt \* @since 1.5.0 @param int $id\_product @param int $id\_product\_attribute Use 0 if the product does not have attributes @return bool|array \*/* # class StockMvtReasonCore extends ObjectModel ./classes/stock\\StockMvtReason.php - public static function **getStockMvtReasons**($id\_lang, $sign = null) */\*\* Gets Stock Mvt Reasons \* @param int $id\_lang @param int $sign Optionnal @return array \*/* - public static function **getStockMvtReasonsWithFilter**($id\_lang, $ids\_ignore, $sign = null) */\*\* Same as StockMvtReason::getStockMvtReasons(), ignoring a specific lists of ids \* @since 1.5.0 @param int $id\_lang @param array $ids\_ignore @param int $sign optional \*/* - public static function **exists**($id\_stock\_mvt\_reason) */\*\* For a given id\_stock\_mvt\_reason, tells if it exists \* @since 1.5.0 @param int $id\_stock\_mvt\_reason @return bool \*/* # class StockMvtWSCore extends ObjectModelCore ./classes/stock\\StockMvtWS.php - public function **\_\_construct**($id = null, $id\_lang = null, $id\_shop = null) */\*\* @see ObjectModel \*/* - public function **getWebserviceObjectList**($join, $filter, $sort, $limit, $full = false) */\**@see ObjectModel::getWebserviceObjectList() Added $full for this specific object \*/ - public function **getWSProductName**() */\*\* Webservice : getter for the product name \*/* # class SupplyOrderCore extends ObjectModel ./classes/stock\\SupplyOrder.php - public function **update**($null\_values = false) */\*\* @see ObjectModel::update() \*/* - public function **add**($autodate = true, $null\_values = false) */\*\* @see ObjectModel::add() \*/* - public function **getEntries**($id\_lang = null) */\*\* Retrieves the product entries for the current order \* @param int $id\_lang Optional Id Lang – Uses Context::language::id by default @return array \*/* - public function **getEntriesCollection**() */\*\* Retrieves the details entries (i.e. products) collection for the current order \* @return Collection of SupplyOrderDetail \*/* - public function **hasEntries**() */\*\* Check if the order has entries \* @return bool Has/Has not \*/* - public function **isEditable**() */\*\* Check if the current state allows to edit the current order \* @return bool \*/* - public function **isDeliveryNoteAvailable**() */\*\* Checks if the current state allows to generate a delivery note for this order \* @return bool \*/* - public function **isInReceiptState**() */\*\* Checks if the current state allows to add products in stock \* @return bool \*/* - public function **resetProducts**() */\*\* Removes all products from the order \*/* - public static function **warehouseHasPendingOrders**($id\_warehouse) */\*\* For a given $id\_warehouse, tells if it has pending supply orders \* @param int $id\_warehouse @return bool \*/* - public static function **supplierHasPendingOrders**($id\_supplier) */\*\* For a given $id\_supplier, tells if it has pending supply orders \* @param int $id\_supplier Id Supplier @return bool \*/* - public static function **exists**($match) */\*\* For a given id or reference, tells if the supply order exists \* @param int|string $match Either the reference of the order, or the Id of the order @return int SupplyOrder Id \*/* - public static function **getSupplyOrderByReference**($reference) */\*\* For a given reference, returns the corresponding supply order \* @param string $reference Reference of the order @return bool|SupplyOrder \*/* - public function **hydrate**(array $data, $id\_lang = null) */\*\* @see ObjectModel::hydrate() \*/* - public static function **getReferenceById**($id\_supply\_order) */\*\* Gets the reference of a given order \* @param int $id\_supply\_order @return bool|string \*/* - public function **getWsSupplyOrderDetails**() */\*\* Webservice : gets the ids supply\_order\_detail associated to this order \* @return array \*/* # class SupplyOrderDetailCore extends ObjectModel ./classes/stock\\SupplyOrderDetail.php - public function **update**($null\_values = false) */\*\* @see ObjectModel::update() \*/* - public function **add**($autodate = true, $null\_values = false) */\*\* @see ObjectModel::add() \*/* - public function **applyGlobalDiscount**($discount\_rate) */\*\* Applies a global order discount rate, for the current product (i.e detail) Calls ObjectModel::update() \* @param $discount\_rate The discount rate in percent (Ex. 5 for 5 percents) \*/* - public function **validateController**($htmlentities = true) */\*\* @see ObjectModel::validateController() \* @param $htmlentities Optional @return $errors If any.. \*/* - public function **hydrate**(array $data, $id\_lang = null) */\*\* @see ObjectModel::hydrate() \*/* # class SupplyOrderHistoryCore extends ObjectModel ./classes/stock\\SupplyOrderHistory.php # class SupplyOrderReceiptHistoryCore extends ObjectModel ./classes/stock\\SupplyOrderReceiptHistory.php # class SupplyOrderStateCore extends ObjectModel ./classes/stock\\SupplyOrderState.php - public static function **getSupplyOrderStates**($id\_state\_referrer = null, $id\_lang = null) */\*\* Gets the list of supply order states \* @param int $id\_state\_referrer Optional, used to know what state is available after this one @param int $id\_lang Optional Id Language @return array States \*/* - public static function **getStates**($ids = null, $id\_lang = null) */\*\* Gets the list of supply order states \* @param array $ids Optional Do not include these ids in the result @param int $id\_lang Optional @return array \*/* # class WarehouseCore extends ObjectModel ./classes/stock\\Warehouse.php - public function **getShops**() */\*\* Gets the shops associated to the current warehouse \* @return array Shops (id, name) \*/* - public function **getCarriers**($return\_reference = false) */\*\* Gets the carriers associated to the current warehouse \* @return array Ids of the associated carriers \*/* - public function **setCarriers**($ids\_carriers) */\*\* Sets the carriers associated to the current warehouse \* @param array $ids\_carriers \*/* - public static function **removeCarrier**($id\_carrier, $id\_warehouse = null) */\*\* For a given carrier, removes it from the warehouse/carrier association If $id\_warehouse is set, it only removes the carrier for this warehouse \* @param int $id\_carrier Id of the carrier to remove @param int $id\_warehouse optional Id of the warehouse to filter \*/* - public function **isEmpty**() */\*\* Checks if a warehouse is empty – i.e. has no stock \* @return bool \*/* - public static function **exists**($id\_warehouse) */\*\* Checks if the given warehouse exists \* @param int $id\_warehouse @return bool Exists/Does not exist \*/* - public static function **setProductLocation**($id\_product, $id\_product\_attribute, $id\_warehouse, $location) */\*\* For a given {product, product attribute} sets its location in the given warehouse First, for the given parameters, it cleans the database before updating \* @param int $id\_product ID of the product @param int $id\_product\_attribute Use 0 if this product does not have attributes @param int $id\_warehouse ID of the warehouse @param string $location Describes the location (no lang id required) @return bool Success/Failure \*/* - public function **resetProductsLocations**() */\*\* Resets all product locations for this warehouse \*/* - public static function **getProductLocation**($id\_product, $id\_product\_attribute, $id\_warehouse) */\*\* For a given {product, product attribute} gets its location in the given warehouse \* @param int $id\_product ID of the product @param int $id\_product\_attribute Use 0 if this product does not have attributes @param int $id\_warehouse ID of the warehouse @return string Location of the product \*/* - public static function **getProductWarehouseList**($id\_product, $id\_product\_attribute = 0, $id\_shop = null) */\*\* For a given {product, product attribute} gets warehouse list \* @param int $id\_product ID of the product @param int $id\_product\_attribute Optional, uses 0 if this product does not have attributes @param int $id\_shop Optional, ID of the shop. Uses the context shop id (@see Context::shop) @return array Warehouses (ID, reference/name concatenated) \*/* - public static function **getWarehouses**($ignore\_shop = false, $id\_shop = null) */\*\* Gets available warehouses It is possible via ignore\_shop and id\_shop to filter the list with shop id \* @param bool $ignore\_shop Optional, false by default – Allows to get only the warehouses that are associated to one/some shops (@see $id\_shop) @param int $id\_shop Optional, Context::shop::Id by default – Allows to define a specific shop to filter. @return array Warehouses (ID, reference/name concatenated) \*/* - public static function **getWarehousesGroupedByShops**() */\*\* Gets warehouses grouped by shops \* @return array (of array) Warehouses ID are grouped by shops ID \*/* - public function **getNumberOfProducts**() */\*\* Gets the number of products in the current warehouse \* @return int Number of different id\_stock \*/* - public function **getQuantitiesOfProducts**() */\*\* Gets the number of quantities – for all products – in the current warehouse \* @return int Total Quantity \*/* - public function **getStockValue**() */\*\* Gets the value of the stock in the current warehouse \* @return int Value of the stock \*/* - public static function **getWarehousesByEmployee**($id\_employee) */\*\* For a given employee, gets the warehouse(s) he/she manages \* @param int $id\_employee Manager ID @return array ids\_warehouse Ids of the warehouses \*/* - public static function **getWarehousesByProductId**($id\_product, $id\_product\_attribute = 0) */\*\* For a given product, returns the warehouses it is stored in \* @param int $id\_product Product Id @param int $id\_product\_attribute Optional, Product Attribute Id – 0 by default (no attribues) @return array Warehouses Ids and names \*/* - public static function **getWarehouseNameById**($id\_warehouse) */\*\* For a given $id\_warehouse, returns its name \* @param int $id\_warehouse Warehouse Id @return string Name \*/* - public static function **getPackWarehouses**($id\_product, $id\_shop = null) */\*\* For a given pack, returns the warehouse it can be shipped from \* @param int $id\_product @return int|bool id\_warehouse or false \*/* - public function **resetStockAvailable**() - public function **getWsStockValue**() */\*\* Webservice : gets the value of the warehouse @return int \*/* - public function **getWsStocks**() */\*\* Webservice : gets the ids stock associated to this warehouse @return array \*/* - public function **getWsShops**() */\*\* Webservice : gets the ids shops associated to this warehouse @return array \*/* - public function **getWsCarriers**() */\*\* Webservice : gets the ids carriers associated to this warehouse @return array \*/* # class WarehouseProductLocationCore extends ObjectModel ./classes/stock\\WarehouseProductLocation.php - public static function **getProductLocation**($id\_product, $id\_product\_attribute, $id\_warehouse) */\*\* For a given product and warehouse, gets the location \* @param int $id\_product product ID @param int $id\_product\_attribute product attribute ID @param int $id\_warehouse warehouse ID @return string $location Location of the product \*/* - public static function **getIdByProductAndWarehouse**($id\_product, $id\_product\_attribute, $id\_warehouse) */\*\* For a given product and warehouse, gets the WarehouseProductLocation corresponding ID \* @param int $id\_product @param int $id\_product\_attribute @param int $id\_supplier @return int $id\_warehouse\_product\_location ID of the WarehouseProductLocation \*/* - public static function **getCollection**($id\_product) */\*\* For a given product, gets its warehouses \* @param int $id\_product @return Collection The type of the collection is WarehouseProductLocation \*/* - public static function **getProducts**($id\_warehouse) # class ShopCore extends ObjectModel ./classes/shop\\Shop.php - public function **\_\_construct**($id = null, $id\_lang = null, $id\_shop = null) */\*\* On shop instance, get its theme and URL data too \* @param int $id @param int $id\_lang @param int $id\_shop \*/* - public function **setUrl**() - public function **add**($autodate = true, $null\_values = false) */\*\* Add a shop, and clear the cache \* @param bool $autodate @param bool $null\_values @return bool \*/* - public function **delete**() */\*\* Remove a shop only if it has no dependencies, and remove its associations \* @return bool \*/* - public static function **hasDependency**($id\_shop) */\*\* Detect dependency with customer or orders \* @param int $id\_shop @return bool \*/* - public static function **initialize**() */\*\* Find the shop from current domain / uri and get an instance of this shop if INSTALL\_VERSION is defined, will return an empty shop object \* @return Shop \*/* - public function **getAddress**() */\*\* @return Address the current shop address \*/* - public function **getTheme**() */\*\* Get shop theme name \* @return string \*/* - public function **getBaseURI**() */\*\* Get shop URI \* @return string \*/* - public function **getBaseURL**() */\*\* Get shop URL \* @return string \*/* - public function **getGroup**() */\*\* Get group of current shop \* @return ShopGroup \*/* - public function **getCategory**() */\*\* Get root category of current shop \* @return int \*/* - public function **getUrls**() */\*\* Get list of shop’s urls \* @return array \*/* - public function **isDefaultShop**() */\*\* Check if current shop ID is the same as default shop in configuration \* @return bool \*/* - public static function **getAssoTable**($table) */\*\* Get the associated table if available \* @return array \*/* - public static function **checkIdShopDefault**($table) */\*\* check if the table has an id\_shop\_default \* @return boolean \*/* - public static function **getAssoTables**() */\*\* Get list of associated tables to shop \* @return array \*/* - public static function **addTableAssociation**($table\_name, $table\_details) */\*\* Add table associated to shop \* @param string $table\_name @param array $table\_details @return bool \*/* - public static function **isTableAssociated**($table) */\*\* Check if given table is associated to shop \* @param string $table @return bool \*/* - public static function **cacheShops**($refresh = false) */\*\* Load list of groups and shops, and cache it \* @param bool $refresh \*/* - public static function **getCompleteListOfShopsID**() - public static function **getShops**($active = true, $id\_shop\_group = null, $get\_as\_list\_id = false) */\*\* Get shops list \* @param bool $active @param int $id\_shop\_group @param bool $get\_as\_list\_id @return array \*/* - public function **getUrlsSharedCart**() - public static function **getShopsCollection**($active = true, $id\_shop\_group = null) */\*\* Get a collection of shops \* @param bool $active @param int $id\_shop\_group @return Collection \*/* - public static function **getShop**($shop\_id) */\*\* Return some informations cached for one shop \* @param int $shop\_id @return array \*/* - public static function **getIdByName**($name) */\*\* Return a shop ID from shop name \* @param string $name @return int \*/* - public static function **getTotalShops**($active = true, $id\_shop\_group = null) */\*\* @param bool $active @param int $id\_shop\_group @return int Total of shops \*/* - public static function **getGroupFromShop**($shop\_id, $as\_id = true) */\*\* Retrieve group ID of a shop \* @param int $shop\_id Shop ID @return int Group ID \*/* - public static function **getSharedShops**($shop\_id, $type) */\*\* If the shop group has the option $type activated, get all shops ID of this group, else get current shop ID \* @param int $shop\_id @param int $type Shop::SHARE\_CUSTOMER | Shop::SHARE\_ORDER @return array \*/* - public static function **getContextListShopID**($share = false) */\*\* Get a list of ID concerned by the shop context (E.g. if context is shop group, get list of children shop ID) \* @param string $share If false, dont check share datas from group. Else can take a Shop::SHARE\_ constant value @return array \*/* - public static function **getShopById**($id, $identifier, $table) */\*\* Return the list of shop by id \* @param int $id @param string $identifier @param string $table @return array \*/* - public static function **setContext**($type, $id = null) */\*\* Change the current shop context \* @param int $type Shop::CONTEXT\_ALL | Shop::CONTEXT\_GROUP | Shop::CONTEXT\_SHOP @param int $id ID shop if CONTEXT\_SHOP or id shop group if CONTEXT\_GROUP \*/* - public static function **getContext**() */\*\* Get current context of shop \* @return int \*/* - public static function **getContextShopID**($null\_value\_without\_multishop = false) */\*\* Get current ID of shop if context is CONTEXT\_SHOP \* @return int \*/* - public static function **getContextShopGroupID**($null\_value\_without\_multishop = false) */\*\* Get current ID of shop group if context is CONTEXT\_SHOP or CONTEXT\_GROUP \* @return int \*/* - public static function **getContextShopGroup**() - public static function **addSqlRestriction**($share = false, $alias = null) */\*\* Add an sql restriction for shops fields \* @param int $share If false, dont check share datas from group. Else can take a Shop::SHARE\_ constant value @param string $alias \*/* - public static function **addSqlAssociation**($table, $alias, $inner\_join = true, $on = null, $force\_not\_default = false) */\*\* Add an SQL JOIN in query between a table and its associated table in multishop \* @param string $table Table name (E.g. product, module, etc.) @param string $alias Alias of table @param bool $inner\_join Use or not INNER JOIN @param string $on @return string \*/* - public static function **addSqlRestrictionOnLang**($alias = null, $id\_shop = null) */\*\* Add a restriction on id\_shop for multishop lang table \* @param string $alias @param Context $context @return string \*/* - public static function **getTree**() */\*\* Get all groups and associated shops as subarrays \* @return array \*/* - public static function **isFeatureActive**() */\*\* @return bool Return true if multishop feature is active and at last 2 shops have been created \*/* - public function **copyShopData**($old\_id, $tables\_import = false, $deleted = false) - public static function **getCategories**($id = 0, $only\_id = true) */\*\* @static @param int $id @return array \*/* - public static function **getCurrentShop**() */\*\* @deprecated 1.5.0 Use shop-\>id \*/* - public static function **getEntityIds**($entity, $id\_shop, $active = false, $delete = false) */\*\* @param string $entity @param int $id\_shop @return array|bool \*/* # class ShopGroupCore extends ObjectModel ./classes/shop\\ShopGroup.php - public function **getFields**() */\*\* @see ObjectModel::getFields() @return array \*/* - public static function **getShopGroups**($active = true) - public static function **getTotalShopGroup**($active = true) */\*\* @return int Total of shop groups \*/* - public function **haveShops**() - public function **getTotalShops**() - public static function **getShopsFromGroup**($id\_group) - public static function **getIdByName**($name) */\*\* Return a group shop ID from group shop name \* @param string $name @return int \*/* - public static function **hasDependency**($id\_shop\_group, $check = ‘all’) */\*\* Detect dependency with customer or orders \* @param int $id\_shop\_group @param string $check all|customer|order @return bool \*/* # class ShopUrlCore extends ObjectModel ./classes/shop\\ShopUrl.php - public function **getFields**() */\*\* @see ObjectModel::getFields() @return array \*/* - public function **getBaseURI**() - public function **getURL**($ssl = false) - public static function **getShopUrls**($id\_shop = false) */\*\* Get list of shop urls \* @param bool $id\_shop @return Collection \*/* - public function **setMain**() - public function **canAddThisUrl**($domain, $domain\_ssl, $physical\_uri, $virtual\_uri) - public static function **getMainShopDomain**() - public static function **getMainShopDomainSSL**() # class RangePriceCore extends ObjectModel ./classes/range\\RangePrice.php - public function **add**($autodate = true, $null\_values = false) */\*\* Override add to create delivery value for all zones @see classes/ObjectModelCore::add()* @param bool $null\_values @param bool $autodate @return boolean Insertion result \*/ - public static function **getRanges**($id\_carrier) */\*\* Get all available price ranges \* @return array Ranges \*/* - public static function **rangeExist**($id\_carrier, $delimiter1, $delimiter2) - public static function **isOverlapping**($id\_carrier, $delimiter1, $delimiter2, $id\_rang = null) # class RangeWeightCore extends ObjectModel ./classes/range\\RangeWeight.php - public function **add**($autodate = true, $null\_values = false) */\*\* Override add to create delivery value for all zones @see classes/ObjectModelCore::add()* @param bool $null\_values @param bool $autodate @return boolean Insertion result \*/ - public static function **getRanges**($id\_carrier) */\*\* Get all available price ranges \* @return array Ranges \*/* - public static function **rangeExist**($id\_carrier, $delimiter1, $delimiter2) - public static function **isOverlapping**($id\_carrier, $delimiter1, $delimiter2, $id\_rang = null) # class HTMLTemplateDeliverySlipCore extends HTMLTemplate ./classes/pdf\\HTMLTemplateDeliverySlip.php - public function **\_\_construct**(OrderInvoice $order\_invoice, $smarty) - public function **getContent**() */\*\* Returns the template’s HTML content @return string HTML content \*/* - public function **getBulkFilename**() */\*\* Returns the template filename when using bulk rendering @return string filename \*/* - public function **getFilename**() */\*\* Returns the template filename @return string filename \*/* # class HTMLTemplateInvoiceCore extends HTMLTemplate ./classes/pdf\\HTMLTemplateInvoice.php - public function **\_\_construct**(OrderInvoice $order\_invoice, $smarty) - public function **getContent**() */\*\* Returns the template’s HTML content @return string HTML content \*/* - public function **getTaxTabContent**() */\*\* Returns the tax tab content \*/* - public function **getBulkFilename**() */\*\* Returns the template filename when using bulk rendering @return string filename \*/* - public function **getFilename**() */\*\* Returns the template filename @return string filename \*/* # class HTMLTemplateOrderReturnCore extends HTMLTemplate ./classes/pdf\\HTMLTemplateOrderReturn.php - public function **\_\_construct**(OrderReturn $order\_return, $smarty) - public function **getContent**() */\*\* Returns the template’s HTML content @return string HTML content \*/* - public function **getFilename**() */\*\* Returns the template filename @return string filename \*/* - public function **getBulkFilename**() */\*\* Returns the template filename when using bulk rendering @return string filename \*/* # class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice ./classes/pdf\\HTMLTemplateOrderSlip.php - public function **\_\_construct**(OrderSlip $order\_slip, $smarty) - public function **getContent**() */\*\* Returns the template’s HTML content @return string HTML content \*/* - public function **getBulkFilename**() */\*\* Returns the template filename when using bulk rendering @return string filename \*/* - public function **getFilename**() */\*\* Returns the template filename @return string filename \*/* - public function **getTaxTabContent**() */\*\* Returns the tax tab content \*/* - public function **getProductTaxesBreakdown**() - public function **getShippingTaxesBreakdown**() # class HTMLTemplateSupplyOrderFormCore extends HTMLTemplate ./classes/pdf\\HTMLTemplateSupplyOrderForm.php - public function **\_\_construct**(SupplyOrder $supply\_order, $smarty) - public function **getContent**() */\*\* @see HTMLTemplate::getContent() \*/* - public function **getBulkFilename**() */\*\* @see HTMLTemplate::getBulkFilename() \*/* - public function **getFilename**() */\*\* @see HTMLTemplate::getFileName() \*/* - public function **getHeader**() */\*\* @see HTMLTemplate::getHeader() \*/* - public function **getFooter**() */\*\* @see HTMLTemplate::getFooter() \*/* # class PDFCore ./classes/pdf\\PDF.php - public function **\_\_construct**($objects, $template, $smarty) - public function **render**($display = true) - public function **getTemplateObject**($object) # class PDFGeneratorCore extends TCPDF ./classes/pdf\\PDFGenerator.php - public function **\_\_construct**($use\_cache = false) - public function **setEncoding**($encoding) */\*\* set the PDF encoding @param string $encoding \*/* - public function **createHeader**($header) */\*\* \* set the PDF header @param string $header HTML \*/* - public function **createFooter**($footer) */\*\* \* set the PDF footer @param string $footer HTML \*/* - public function **createContent**($content) */\*\* \* create the PDF content @param string $content HTML \*/* - public function **setFontForLang**($iso\_lang) */\*\* Change the font @param string $iso\_lang \*/* - public function **Header**() */\*\* @see TCPDF::Header() \*/* - public function **Footer**() */\*\* @see TCPDF::Footer() \*/* - public function **render**($filename, $display = true) */\*\* Render the pdf file \* @param string $filename @param $display : true:display to user, false:save, ‘I’,’D’,’S’ as fpdf display @throws PrestaShopException \*/* - public function **writePage**() */\*\* Write a PDF page \*/* # class OrderCore extends ObjectModel ./classes/order\\Order.php - public function **\_\_construct**($id = null, $id\_lang = null) - public function **getFields**() */\*\* @see ObjectModel::getFields() @return array \*/* - public function **add**($autodate = true, $null\_values = true) - public function **getTaxCalculationMethod**() - public function **deleteProduct**($order, $orderDetail, $quantity) */ Does NOT delete a product but « cancel » it (which means return/refund/delete it depending of the case) \*/* - public function **getCartProducts**() */\*\* This function return products of the orders It’s similar to Order::getProducts but witrh similar outputs of Cart::getProducts \* @return array \*/* - public function **deleteCustomization**($id\_customization, $quantity, $orderDetail) - public function **getHistory**($id\_lang, $id\_order\_state = false, $no\_hidden = false, $filters = 0) */\*\* Get order history \* @param integer $id\_lang Language id @param integer $id\_order\_state Filter a specific order state @param integer $no\_hidden Filter no hidden status @param integer $filters Flag to use specific field filter \* @return array History entries ordered by date DESC \*/* - public function **getProductsDetail**() - public function **getFirstMessage**() - public function **setProductPrices**(&$row) */\*\* Marked as deprecated but should not throw any « deprecated » message This function is used in order to keep front office backward compatibility 14 -\> 1.5 (Order History) \* @deprecated \*/* - public function **getProducts**($products = false, $selectedProducts = false, $selectedQty = false) */\*\* Get order products \* @return array Products with price, quantity (with taxe and without) \*/* - public static function **getIdOrderProduct**($id\_customer, $id\_product) - public function **getTaxesAverageUsed**() - public function **getVirtualProducts**() */\*\* Count virtual products in order \* @return int number of virtual products \*/* - public function **isVirtual**($strict = true) */\*\* Check if order contains (only) virtual products \* @param boolean $strict If false return true if there are at least one product virtual @return boolean true if is a virtual order or false \* \*/* - public function **getDiscounts**($details = false) */\*\* @deprecated 1.5.0.1 \*/* - public function **getCartRules**() - public static function **getDiscountsCustomer**($id\_customer, $id\_cart\_rule) - public function **getCurrentState**() */\*\* Get current order state (eg. Awaiting payment, Delivered…) \* @return int Order state id \*/* - public function **getCurrentStateFull**($id\_lang) */\*\* Get current order state name (eg. Awaiting payment, Delivered…) \* @return array Order state details \*/* - public function **hasBeenDelivered**() - public function **hasProductReturned**() */\*\* Has products returned by the merchant or by the customer? \*/* - public function **hasBeenPaid**() - public function **hasBeenShipped**() - public function **isInPreparation**() - public function **isPaidAndShipped**() */\*\* Checks if the current order state is paid and shipped \* @return bool \*/* - public static function **getCustomerOrders**($id\_customer, $showHiddenStatus = false, Context $context = null) */\*\* Get customer orders \* @param integer $id\_customer Customer id @param boolean $showHiddenStatus Display or not hidden order statuses @return array Customer orders \*/* - public static function **getOrdersIdByDate**($date\_from, $date\_to, $id\_customer = null, $type = null) - public static function **getOrdersWithInformations**($limit = null, Context $context = null) - public static function **getOrdersIdInvoiceByDate**($date\_from, $date\_to, $id\_customer = null, $type = null) */\*\* @deprecated since 1.5.0.2 \* @static @param $date\_from @param $date\_to @param $id\_customer @param $type \* @return array \*/* - public static function **getOrderIdsByStatus**($id\_order\_state) */\*\* @deprecated 1.5.0.3 \* @static @param $id\_order\_state @return array \*/* - public function **getTotalProductsWithoutTaxes**($products = false) */\*\* Get product total without taxes \* @return Product total with taxes \*/* - public function **getTotalProductsWithTaxes**($products = false) */\*\* Get product total with taxes \* @return Product total with taxes \*/* - public function **getCustomer**() */\*\* Get order customer*@return Customer $customer \*/ - public static function **getCustomerNbOrders**($id\_customer) */\*\* Get customer orders number \* @param integer $id\_customer Customer id @return array Customer orders number \*/* - public static function **getOrderByCartId**($id\_cart) */\*\* Get an order by its cart id \* @param integer $id\_cart Cart id @return array Order details \*/* - public function **addDiscount**($id\_cart\_rule, $name, $value) */\*\* @deprecated 1.5.0.1 @see Order::addCartRule() @param int $id\_cart\_rule @param string $name @param float $value @return bool \*/* - public function **addCartRule**($id\_cart\_rule, $name, $values, $id\_order\_invoice = 0, $free\_shipping = null) */\*\* @since 1.5.0.1 @param int $id\_cart\_rule @param string $name @param array $values @param int $id\_order\_invoice @return bool \*/* - public function **getNumberOfDays**() - public function **isReturnable**() */\*\* Can this order be returned by the client? \* @return bool \*/* - public static function **getLastInvoiceNumber**() - public function **setInvoice**($use\_existing\_payment = false) */\*\* This method allows to generate first invoice of the current order \*/* - public function **setDelivery**() - public static function **getByDelivery**($id\_delivery) - public static function **getByReference**($reference) */\*\* Get a collection of orders using reference*@since 1.5.0.14@param string $reference @return Collection of Order \*/ - public function **getTotalWeight**() - public static function **getInvoice**($id\_invoice) */\*\* \* @param int $id\_invoice @deprecated 1.5.0.1 \*/* - public function **isAssociatedAtGuest**($email) - public static function **getCartIdStatic**($id\_order, $id\_customer = 0) */\*\* @param int $id\_order @param int $id\_customer optionnal @return int id\_cart \*/* - public function **getWsOrderRows**() - public function **setCurrentState**($id\_order\_state, $id\_employee = 0) */\* Set current order state @param int $id\_order\_state @param int $id\_employee (/!\\ not optional except for Webservice. \*/* - public function **addWs**($autodate = true, $nullValues = false) - public function **deleteAssociations**() - public function **getPreviousOrderId**() */\*\* This method return the ID of the previous order @since 1.5.0.1 @return int \*/* - public function **getNextOrderId**() */\*\* This method return the ID of the next order @since 1.5.0.1 @return int \*/* - public function **getOrderDetailList**() */\*\* Get the an order detail list of the current order @return array \*/* - public static function **generateReference**() */\*\* Gennerate a unique reference for orders generated with the same cart id This references, is usefull for check payment \* @return String \*/* - public function **orderContainProduct**($id\_product) - public function **useOneAfterAnotherTaxComputationMethod**() */\*\* This method returns true if at least one order details uses the One After Another tax computation method. \* @since 1.5.0.1 @return boolean \*/* - public function **getOrderPaymentCollection**() */\*\* This method allows to get all Order Payment for the current order @since 1.5.0.1 @return Collection of Order Payment \*/* - public function **addOrderPayment**($amount\_paid, $payment\_method = null, $payment\_transaction\_id = null, $currency = null, $date = null, $order\_invoice = null) */\*\* \* This method allows to add a payment to the current order @since 1.5.0.1 @param float $amount\_paid @param string $payment\_method @param string $payment\_transaction\_id @param Currency $currency @param string $date @param OrderInvoice $order\_invoice @return bool \*/* - public function **getDocuments**() */\*\* Returns the correct product taxes breakdown. \* Get all documents linked to the current order \* @since 1.5.0.1 @return array \*/* - public function **getReturn**() - public function **getShipping**() */\*\* @return array return all shipping method for the current order state\_name sql var is now deprecated – use order\_state\_name for the state name and carrier\_name for the carrier\_name \*/* - public function **getOrderSlipsCollection**() */\*\* \* Get all order\_slips for the current order @since 1.5.0.2 @return Collection of Order slip \*/* - public function **getInvoicesCollection**() */\*\* \* Get all invoices for the current order @since 1.5.0.1 @return Collection of Order invoice \*/* - public function **getDeliverySlipsCollection**() */\*\* \* Get all delivery slips for the current order @since 1.5.0.2 @return Collection of Order invoice \*/* - public function **getNotPaidInvoicesCollection**() */\*\* Get all not paid invoices for the current order @since 1.5.0.2 @return Collection of Order invoice not paid \*/* - public function **getTotalPaid**($currency = null) */\*\* Get total paid \* @since 1.5.0.1 @param Currency $currency currency used for the total paid of the current order @return float amount in the $currency \*/* - public function **getOrdersTotalPaid**() */\*\* Get the sum of total\_paid\_tax\_incl of the orders with similar reference \* @since 1.5.0.1 @return float \*/* - public function **updateShippingCost**($amount) */\*\* \* This method allows to change the shipping cost of the current order @since 1.5.0.1 @param float $amount @return bool \*/* - public function **getProductTaxesBreakdown**() */\*\* Returns the correct product taxes breakdown. \* @since 1.5.0.1 @return array \*/* - public function **getShippingTaxesBreakdown**() */\*\* Returns the shipping taxes breakdown \* @since 1.5.0.1 @return array \*/* - public function **getWrappingTaxesBreakdown**() */\*\* Returns the wrapping taxes breakdown @todo @since 1.5.0.1 @return array \*/* - public function **getEcoTaxTaxesBreakdown**() */\*\* Returns the ecotax taxes breakdown \* @since 1.5.0.1 @return array \*/* - public function **hasInvoice**() */\*\* \* Has invoice return true if this order has already an invoice @return bool \*/* - public function **getWarehouseList**() */\*\* Get warehouse associated to the order \* return array List of warehouse \*/* - public function **getCurrentOrderState**() */\*\* @since 1.5.0.4 @return OrderState or null if Order haven’t a state \*/* - public function **getWebserviceObjectList**($sql\_join, $sql\_filter, $sql\_sort, $sql\_limit) */\*\* @see ObjectModel::getWebserviceObjectList() \*/* - public function **getBrother**() */\*\* Get all other orders with the same reference*@since 1.5.0.13 \*/ - public function **getOrderPayments**() */\*\* Get a collection of order payments*@since 1.5.0.13 \*/ - public function **getUniqReference**() */\*\* Return a unique reference like : GWJTHMZUN#2*With multishipping, order reference are the same for all orders made with the same cart in this case this method suffix the order reference by a # and the order number@since 1.5.0.14 \*/ - public static function **getUniqReferenceOf**($id\_order) */\*\* Return a unique reference like : GWJTHMZUN#2*With multishipping, order reference are the same for all orders made with the same cart in this case this method suffix the order reference by a # and the order number@since 1.5.0.14 \*/ # class OrderCarrierCore extends ObjectModel ./classes/order\\OrderCarrier.php # class OrderCartRuleCore extends ObjectModel ./classes/order\\OrderCartRule.php # class OrderDetailCore extends ObjectModel ./classes/order\\OrderDetail.php - public function **\_\_construct**($id = null, $id\_lang = null, $context = null) - public function **delete**() - public static function **getDownloadFromHash**($hash) - public static function **incrementDownload**($id\_order\_detail, $increment = 1) - public function **getTaxCalculator**() */\*\* Returns the tax calculator associated to this order detail. @since 1.5.0.1 @return TaxCalculator \*/* - public static function **getTaxCalculatorStatic**($id\_order\_detail) */\*\* Return the tax calculator associated to this order\_detail @since 1.5.0.1 @param int $id\_order\_detail @return TaxCalculator \*/* - public function **saveTaxCalculator**(Order $order, $replace = false) */\*\* Save the tax calculator @since 1.5.0.1 @return boolean \*/* - public function **updateTaxAmount**($order) - public static function **getList**($id\_order) */\*\* Get a detailed order list of an id\_order @param int $id\_order @return array \*/* - public function **createList**(Order $order, Cart $cart, $id\_order\_state, $product\_list, $id\_order\_invoice = 0, $use\_taxes = true, $id\_warehouse = 0) */\*\* Create a list of order detail for a specified id\_order using cart @param object $order @param object $cart @param int $id\_order\_status @param int $id\_order\_invoice @param bool $use\_taxes set to false if you don’t want to use taxes \*/* - public function **getStockState**() */\*\* Get the state of the current stock product @return array \*/* - public function **setShippingCost**(Order $order, $product) */\**Set the additional shipping information@param Order $order @param $product \*/ - public function **getWsTaxes**() # class OrderDiscountCore extends OrderCartRule ./classes/order\\OrderDiscount.php - public function **\_\_get**($key) - public function **\_\_set**($key, $value) - public function **\_\_call**($method, $args) # class OrderHistoryCore extends ObjectModel ./classes/order\\OrderHistory.php - public function **changeIdOrderState**($new\_order\_state, $id\_order, $use\_existing\_payment = false) */\*\* Sets the new state of the given order \* @param int $new\_order\_state @param int/object $id\_order @param bool $use\_existing\_payment \*/* - public static function **getLastOrderState**($id\_order) */\*\* Returns the last order state @param int $id\_order @return OrderState|bool @deprecated 1.5.0.4 @see Order-\>current\_state \*/* - public function **addWithemail**($autodate = true, $template\_vars = false, Context $context = null) */\*\* @param bool $autodate Optional @param array $template\_vars Optional @param Context $context Optional @return bool \*/* - public function **add**($autodate = true, $null\_values = false) - public function **isValidated**() */\*\* @return int \*/* # class OrderInvoiceCore extends ObjectModel ./classes/order\\OrderInvoice.php - public function **getProductsDetail**() - public function **getProducts**($products = false, $selectedProducts = false, $selectedQty = false) */\*\* Get order products \* @return array Products with price, quantity (with taxe and without) \*/* - public function **useOneAfterAnotherTaxComputationMethod**() */\*\* This method returns true if at least one order details uses the One After Another tax computation method. \* @since 1.5 @return boolean \*/* - public function **getProductTaxesBreakdown**() */\*\* Returns the correct product taxes breakdown. \* @since 1.5 @return array \*/* - public function **getShippingTaxesBreakdown**($order) */\*\* Returns the shipping taxes breakdown \* @since 1.5 @return array \*/* - public function **getWrappingTaxesBreakdown**() */\*\* Returns the wrapping taxes breakdown @todo @since 1.5 @return array \*/* - public function **getEcoTaxTaxesBreakdown**() */\*\* Returns the ecotax taxes breakdown \* @since 1.5 @return array \*/* - public static function **getByDateInterval**($date\_from, $date\_to) */\*\* Returns all the order invoice that match the date interval \* @since 1.5 @static @param $date\_from @param $date\_to @return array collection of OrderInvoice \*/* - public static function **getByStatus**($id\_order\_state) */\*\* @since 1.5.0.3 @static @param $id\_order\_state @return array collection of OrderInvoice \*/* - public static function **getByDeliveryDateInterval**($date\_from, $date\_to) */\*\* @since 1.5.0.3 @static @param $date\_from @param $date\_to @return array collection of invoice \*/* - public static function **getCarrier**($id\_order\_invoice) */\*\* @since 1.5 @static @param $id\_order\_invoice \*/* - public static function **getCarrierId**($id\_order\_invoice) */\*\* @since 1.5 @static @param $id\_order\_invoice \*/* - public static function **retrieveOneById**($id) */\*\* @static @param $id @return OrderInvoice \*/* - public function **getTotalPaid**() */\*\* Amounts of payments @since 1.5.0.2 @return float Total paid \*/* - public function **getRestPaid**() */\*\* Rest Paid @since 1.5.0.2 @return float Rest Paid \*/* - public function **getSibling**() */\*\* Return collection of order invoice object linked to the payments of the current order invoice object*@since 1.5.0.14 \*/ - public function **getSiblingTotal**($mod = OrderInvoice::TAX\_INCL) */\*\* Return total to paid of sibling invoices*@param int $mod TAX\_EXCL, TAX\_INCL, DETAIL@since 1.5.0.14 \*/ - public function **getGlobalRestPaid**() */\*\* Get global rest to paid This method will return something different of the method getRestPaid if there is an other invoice linked to the payments of the current invoice @since 1.5.0.13 \*/* - public function **isPaid**() */\*\* @since 1.5.0.2 @return bool Is paid ? \*/* - public function **getOrderPaymentCollection**() */\*\* @since 1.5.0.2 @return Collection of Order payment \*/* - public function **getInvoiceNumberFormatted**($id\_lang, $id\_shop = null) */\*\* Get the formatted number of invoice @since 1.5.0.2 @param int $id\_lang for invoice\_prefix @return string \*/* - public function **saveCarrierTaxCalculator**(array $taxes\_amount) # class OrderMessageCore extends ObjectModel ./classes/order\\OrderMessage.php - public static function **getOrderMessages**($id\_lang) # class OrderPaymentCore extends ObjectModel ./classes/order\\OrderPayment.php - public function **add**($autodate = true, $nullValues = false) - public static function **getByOrderId**($id\_order) */\*\* Get the detailed payment of an order @param int $id\_order @return array \*/* - public static function **getByOrderReference**($order\_reference) */\*\* Get the detailed payment of an order @param int $order\_reference @return array @since 1.5.0.13 \*/* - public static function **getByInvoiceId**($id\_invoice) */\*\* Get Order Payments By Invoice ID @static @param $id\_invoice Invoice ID @return Collection Collection \*/* - public function **getOrderInvoice**($id\_order) */\*\* Return order invoice object linked to the payment*@param int $id\_order Order Id \* @since 1.5.0.13 \*/ # class OrderReturnCore extends ObjectModel ./classes/order\\OrderReturn.php - public function **addReturnDetail**($orderDetailList, $productQtyList, $customizationIds, $customizationQtyInput) - public function **checkEnoughProduct**($orderDetailList, $productQtyList, $customizationIds, $customizationQtyInput) - public function **countProduct**() - public static function **getOrdersReturn**($customer\_id, $order\_id = false, $no\_denied = false, Context $context = null) - public static function **getOrdersReturnDetail**($id\_order\_return) - public static function **getOrdersReturnProducts**($orderReturnId, $order) - public static function **getReturnedCustomizedProducts**($id\_order) - public static function **deleteOrderReturnDetail**($id\_order\_return, $id\_order\_detail, $id\_customization = 0) - public static function **getProductReturnDetail**($id\_order\_detail) */\*\**Get return details for one product line @param $id\_order\_detail \*/ - public static function **addReturnedQuantity**(&$products, $id\_order) */\*\**Add returned quantity to products list @param array $products @param int $id\_order \*/ # class OrderReturnStateCore extends ObjectModel ./classes/order\\OrderReturnState.php - public static function **getOrderReturnStates**($id\_lang) */\*\* Get all available order states \* @param integer $id\_lang Language id for state name @return array Order states \*/* # class OrderSlipCore extends ObjectModel ./classes/order\\OrderSlip.php - public function **addSlipDetail**($orderDetailList, $productQtyList) - public static function **getOrdersSlip**($customer\_id, $order\_id = false) - public static function **getOrdersSlipDetail**($id\_order\_slip = false, $id\_order\_detail = false) - public static function **getOrdersSlipProducts**($orderSlipId, $order) - public static function **getProductSlipResume**($id\_order\_detail) */\*\**Get resume of all refund for one product line @param $id\_order\_detail \*/ - public static function **getProductSlipDetail**($id\_order\_detail) */\*\**Get refund details for one product line @param $id\_order\_detail \*/ - public function **getProducts**() - public static function **getSlipsIdByDate**($dateFrom, $dateTo) - public static function **createOrderSlip**($order, $productList, $qtyList, $shipping\_cost = false) - public static function **createPartialOrderSlip**($order, $amount, $shipping\_cost\_amount, $order\_detail\_list) - public function **addPartialSlipDetail**($order\_detail\_list) - public function **getEcoTaxTaxesBreakdown**() # class OrderStateCore extends ObjectModel ./classes/order\\OrderState.php - public static function **getOrderStates**($id\_lang) */\*\* Get all available order states \* @param integer $id\_lang Language id for state name @return array Order states \*/* - public static function **invoiceAvailable**($id\_order\_state) */\*\* Check if we can make a facture when order is in this state \* @param integer $id\_order\_state State ID @return boolean availability \*/* - public function **isRemovable**() # class FileLoggerCore extends AbstractLogger ./classes/log\\FileLogger.php - public function **setFilename**($filename) */\*\* Check if the specified filename is writable and set the filename \* @param string filename \*/* - public function **getFilename**() */\*\* Log the message \* @param string message @param level \*/* # class HelperCore ./classes/helper\\Helper.php - public function **\_\_construct**() - public function **setTpl**($tpl) - public function **createTemplate**($tpl\_name) */\*\* Create a template from the override file, else from the base file. \* @param string $tpl\_name filename @return Template \*/* - public function **generate**() */\*\* default behaviour for helper is to return a tpl fetched \* @return void \*/* - public static function **renderAdminCategorieTree**($translations, */\*\* @deprecated 1.5.0 \*/* - public function **renderCategoryTree**($root = null, */\*\* \* @param array $root array with the name and ID of the tree root category, if null the Shop’s root category will be used @param type $selected\_cat array of selected categories \* Format \* Array ( \* \[0\] =\> 1 \* \[1\] =\> 2 \* ) OR \* Array \* ( \* \[1\] =\> Array \* ( \* \[id\_category\] =\> 1 \* \[name\] =\> Home page \* ) \* ) @param string $input\_name name of input @param bool $use\_radio use radio tree or checkbox tree @param bool $use\_search display a find category search box @param array $disabled\_categories @param bool $use\_in\_popup @param bool $use\_shop\_context @return string \*/* - public function **renderRequiredFields**($class\_name, $identifier, $table\_fields) */\*\* Render a form with potentials required fields \* @param string $class\_name @param string $identifier @param array $table\_fields @return string \*/* - public function **renderModulesList**($modules\_list) - public static function **renderShopList**() # class HelperFormCore extends Helper ./classes/helper\\HelperForm.php - public function **\_\_construct**() - public function **generateForm**($fields\_form) - public function **generate**() - public function **getFieldsRequired**() */\*\* Return true if there are required fields \*/* - public function **renderAssoShop**($disable\_shared = false) */\*\* Render an area to determinate shop association \* @return string \*/* # class HelperHelpAccessCore extends Helper ./classes/helper\\HelperHelpAccess.php - public function **\_\_construct**($label, $iso\_lang, $country, $ps\_version) - public function **generate**() */\**@return string|void \*/ # class HelperListCore extends Helper ./classes/helper\\HelperList.php - public function **\_\_construct**() - public function **generateList**($list, $fields\_display) */\*\* Return an html list given the data to fill it up \* @param array $list entries to display (rows) @param array $fields\_display fields (cols) @return string html \*/* - public function **displayEnableLink**($token, $id, $value, $active, $id\_category = null, $id\_product = null) */\*\* Fetch the template for action enable \* @param string $token @param int $id @param int $value state enabled or not @param string $active status @param int $id\_category @param int $id\_product @return string \*/* - public function **displayListContent**() - public function **displayDuplicateLink**($token = null, $id, $name = null) */\*\* Display duplicate action link \*/* - public function **displayDetailsLink**($token = null, $id, $name = null) */\*\* Display action show details of a table row This action need an ajax request with a return like this: { use\_parent\_structure: true // If false, data need to be an html data: \[ {field\_name: ‘value’} \], fields\_display: // attribute $fields\_list of the admin controller } or somethins like this: { use\_parent\_structure: false // If false, data need to be an html data: ‘*My html content’, fields\_display: // attribute $fields\_list of the admin controller } \*/ - public function **displayViewLink**($token = null, $id, $name = null) */\*\* Display view action link \*/* - public function **displayEditLink**($token = null, $id, $name = null) */\*\* Display edit action link \*/* - public function **displayDeleteLink**($token = null, $id, $name = null) */\*\* Display delete action link \*/* - public function **displayDefaultLink**($token = null, $id, $name = null) */\*\* Display delete action link \*/* - public function **displayListHeader**() */\*\* Display list header (filtering, pagination and column names) \*/* - public function **displayListFooter**() */\*\* Close list table and submit button \*/* # class HelperOptionsCore extends Helper ./classes/helper\\HelperOptions.php - public function **\_\_construct**() - public function **generateOptions**($option\_list) */\*\* Generate a form for options @param array options @return string html \*/* - public function **displayOptionTypeImage**($key, $field, $value) */\*\* Type = image \*/* - public function **displayOptionTypePrice**($key, $field, $value) */\*\* Type = price \*/* - public function **displayOptionTypeDisabled**($key, $field, $value) */\*\* Type = disabled \*/* - public function **getOptionValue**($key, $field) # class HelperViewCore extends Helper ./classes/helper\\HelperView.php - public function **\_\_construct**() - public function **generateView**() # class PrestaShopDatabaseExceptionCore extends PrestaShopException ./classes/exception\\PrestaShopDatabaseException.php - public function **\_\_toString**() # class PrestaShopExceptionCore extends Exception ./classes/exception\\PrestaShopException.php - public function **displayMessage**() */\*\* This method acts like an error handler, if dev mode is on, display the error else use a better silent way \*/* # class PrestaShopModuleExceptionCore extends PrestaShopException ./classes/exception\\PrestaShopModuleException.php # class PrestaShopPaymentExceptionCore extends PrestaShopException ./classes/exception\\PrestaShopPaymentException.php # class DbMySQLiCore extends Db ./classes/db\\DbMySQLi.php - public function **connect**() */\*\* @see DbCore::connect() \*/* - public function **disconnect**() */\*\* @see DbCore::disconnect() \*/* - public function **nextRow**($result = false) */\*\* @see DbCore::nextRow() \*/* - public function **Insert\_ID**() */\*\* @see DbCore::Insert\_ID() \*/* - public function **Affected\_Rows**() */\*\* @see DbCore::Affected\_Rows() \*/* - public function **getMsgError**($query = false) */\*\* @see DbCore::getMsgError() \*/* - public function **getNumberError**() */\*\* @see DbCore::getNumberError() \*/* - public function **getVersion**() */\*\* @see DbCore::getVersion() \*/* - public function **\_escape**($str) */\*\* @see DbCore::\_escape() \*/* - public function **set\_db**($db\_name) */\*\* @see DbCore::set\_db() \*/* - public static function **hasTableWithSamePrefix**($server, $user, $pwd, $db, $prefix) */\*\* @see Db::hasTableWithSamePrefix() \*/* - public static function **tryToConnect**($server, $user, $pwd, $db, $newDbLink = true, $engine = null, $timeout = 5) */\*\* @see Db::checkConnection() \*/* - public static function **checkCreatePrivilege**($server, $user, $pwd, $db, $prefix, $engine) - static public function **tryUTF8**($server, $user, $pwd) */\*\* @see Db::checkEncoding() \*/* # class DbPDOCore extends Db ./classes/db\\DbPDO.php - public function **connect**() */\*\* @see DbCore::connect() \*/* - public function **disconnect**() */\*\* @see DbCore::disconnect() \*/* - public function **nextRow**($result = false) */\*\* @see DbCore::nextRow() \*/* - public function **Insert\_ID**() */\*\* @see DbCore::Insert\_ID() \*/* - public function **Affected\_Rows**() */\*\* @see DbCore::Affected\_Rows() \*/* - public function **getMsgError**($query = false) */\*\* @see DbCore::getMsgError() \*/* - public function **getNumberError**() */\*\* @see DbCore::getNumberError() \*/* - public function **getVersion**() */\*\* @see DbCore::getVersion() \*/* - public function **\_escape**($str) */\*\* @see DbCore::\_escape() \*/* - public function **set\_db**($db\_name) */\*\* @see DbCore::set\_db() \*/* - public static function **hasTableWithSamePrefix**($server, $user, $pwd, $db, $prefix) */\*\* @see Db::hasTableWithSamePrefix() \*/* - public static function **checkCreatePrivilege**($server, $user, $pwd, $db, $prefix, $engine) - public static function **tryToConnect**($server, $user, $pwd, $db, $newDbLink = true, $engine = null, $timeout = 5) */\*\* @see Db::checkConnection() \*/* - public static function **tryUTF8**($server, $user, $pwd) */\*\* @see Db::checkEncoding() \*/* # class DbQueryCore ./classes/db\\DbQuery.php - public function **select**($fields) */\*\* Add fields in query selection \* @param string $fields List of fields to concat to other fields @return DbQuery \*/* - public function **from**($table, $alias = null) */\*\* Set table for FROM clause \* @param string $table Table name @return DbQuery \*/* - public function **join**($join) */\*\* Add JOIN clause E.g. $this-\>join(‘RIGHT JOIN ‘.\_DB\_PREFIX\_.’product p ON …’); \* @param string $join Complete string @return DbQuery \*/* - public function **leftJoin**($table, $alias = null, $on = null) */\*\* Add LEFT JOIN clause \* @param string $table Table name (without prefix) @param string $alias Table alias @param string $on ON clause \*/* - public function **innerJoin**($table, $alias = null, $on = null) */\*\* Add INNER JOIN clause E.g. $this-\>innerJoin(‘product p ON …’) \* @param string $table Table name (without prefix) @param string $alias Table alias @param string $on ON clause \*/* - public function **leftOuterJoin**($table, $alias = null, $on = null) */\*\* Add LEFT OUTER JOIN clause \* @param string $table Table name (without prefix) @param string $alias Table alias @param string $on ON clause \*/* - public function **naturalJoin**($table, $alias = null) */\*\* Add NATURAL JOIN clause \* @param string $table Table name (without prefix) @param string $alias Table alias \*/* - public function **where**($restriction) */\*\* Add a restriction in WHERE clause (each restriction will be separated by AND statement) \* @param string $restriction @return DbQuery \*/* - public function **having**($restriction) */\*\* Add a restriction in HAVING clause (each restriction will be separated by AND statement) \* @param string $restriction @return DbQuery \*/* - public function **orderBy**($fields) */\*\* Add an ORDER B restriction \* @param string $fields List of fields to sort. E.g. $this-\>order(‘myField, b.mySecondField DESC’) @return DbQuery \*/* - public function **groupBy**($fields) */\*\* Add a GROUP BY restriction \* @param string $fields List of fields to sort. E.g. $this-\>group(‘myField, b.mySecondField DESC’) @return DbQuery \*/* - public function **limit**($limit, $offset = 0) */\*\* Limit results in query \* @param string $fields List of fields to sort. E.g. $this-\>order(‘myField, b.mySecondField DESC’) @return DbQuery \*/* - public function **build**() */\*\* Generate and get the query \* @return string \*/* - public function **\_\_toString**() # class MySQLCore extends Db ./classes/db\\MySQL.php - public function **connect**() */\*\* @see DbCore::connect() \*/* - public function **disconnect**() */\*\* @see DbCore::disconnect() \*/* - public function **nextRow**($result = false) */\*\* @see DbCore::nextRow() \*/* - public function **Insert\_ID**() */\*\* @see DbCore::Insert\_ID() \*/* - public function **Affected\_Rows**() */\*\* @see DbCore::Affected\_Rows() \*/* - public function **getMsgError**($query = false) */\*\* @see DbCore::getMsgError() \*/* - public function **getNumberError**() */\*\* @see DbCore::getNumberError() \*/* - public function **getVersion**() */\*\* @see DbCore::getVersion() \*/* - public function **\_escape**($str) */\*\* @see DbCore::\_escape() \*/* - public function **set\_db**($db\_name) */\*\* @see DbCore::set\_db() \*/* - public static function **hasTableWithSamePrefix**($server, $user, $pwd, $db, $prefix) */\*\* @see Db::hasTableWithSamePrefix() \*/* - public static function **tryToConnect**($server, $user, $pwd, $db, $newDbLink = true, $engine = null, $timeout = 5) */\*\* @see Db::checkConnection() \*/* - public static function **checkCreatePrivilege**($server, $user, $pwd, $db, $prefix, $engine) - static public function **tryUTF8**($server, $user, $pwd) */\*\* @see Db::checkEncoding() \*/* # class AdminControllerCore extends Controller ./classes/controller\\AdminController.php - public function **\_\_construct**() - public function **initBreadcrumbs**() */\*\* Set breadcrumbs array for the controller page \*/* - public function **initToolbarTitle**() */\*\* set default toolbar\_title to admin breadcrumb \* @return void \*/* - public function **viewAccess**($disable = false) */\*\* Check rights to view the current tab \* @param bool $disable @return boolean \*/* - public function **checkToken**() */\*\* Check for security token \*/* - public function **ajaxProcessHelpAccess**() - public function **processFilter**() */\*\* Set the filters used for the list display \*/* - public function **postProcess**() */\*\* @todo uses redirectAdmin only if !$this-\>ajax \*/* - public function **processDeleteImage**() */\*\* Object Delete images \*/* - public function **processExport**() - public function **processDelete**() */\*\* Object Delete \*/* - public function **processSave**() */\*\* Call the right method for creating or updating object \* @return mixed \*/* - public function **processAdd**() */\*\* Object creation \*/* - public function **processUpdate**() */\*\* Object update \*/* - public function **processUpdateFields**() */\*\* Change object required fields \*/* - public function **processStatus**() */\*\* Change object status (active, inactive) \*/* - public function **processPosition**() */\*\* Change object position \*/* - public function **processResetFilters**() */\*\* Cancel all filters for this tab \*/* - public function **initToolbar**() */\*\* assign default action in toolbar\_btn smarty var, if they are not set. uses override to specifically add, modify or remove items \* \*/* - public function **checkAccess**() */\*\* Check if the token is valid, else display a warning page \*/* - public function **displayNoSmarty**() - public function **displayAjax**() - public function **display**() - public function **initHeader**() */\*\* Assign smarty variables for the header \*/* - public function **addRowAction**($action) */\*\* Declare an action to use for each row in the list \*/* - public function **addRowActionSkipList**($action, $list) */\*\* Add an action to use for each row in the list \*/* - public function **initContent**() */\*\* Assign smarty variables for all default views, list and form, then call other init functions \*/* - public function **initCursedPage**() */\*\* initialize the invalid doom page of death \* @return void \*/* - public function **initFooter**() */\*\* Assign smarty variables for the footer \*/* - public function **renderModulesList**() - public function **renderList**() */\*\* Function used to render the list to display for this controller \*/* - public function **renderView**() */\*\* Override to render the view page \*/* - public function **renderForm**() */\*\* Function used to render the form for this controller \*/* - public function **renderOptions**() */\*\* Function used to render the options for this controller \*/* - public function **setHelperDisplay**(Helper $helper) */\*\* this function set various display option for helper list \* @param Helper $helper @return void \*/* - public function **setMedia**() - public function **init**() */\*\* Init context and dependencies, handles POST and GET \*/* - public function **initShopContext**() - public function **initProcess**() */\*\* Retrieve GET and POST value and translate them to actions \*/* - public function **getList**($id\_lang, $order\_by = null, $order\_way = null, $start = 0, $limit = null, $id\_lang\_shop = false) */\*\* Get the current objects’ list form the database \* @param integer $id\_lang Language used for display @param string $order\_by ORDER BY clause @param string $\_orderWay Order way (ASC, DESC) @param integer $start Offset in LIMIT clause @param integer $limit Row count in LIMIT clause \*/* - public function **getModulesList**($filter\_modules\_list) - public function **getLanguages**() - public function **getFieldsValue**($obj) */\*\* Return the list of fields value \* @param object $obj Object @return array \*/* - public function **getFieldValue**($obj, $key, $id\_lang = null) */\*\* Return field value if possible (both classical and multilingual fields) \* Case 1 : Return value if present in $\_POST / $\_GET Case 2 : Return object value \* @param object $obj Object @param string $key Field name @param integer $id\_lang Language id (optional) @return string \*/* - public function **validateRules**($class\_name = false) */\*\* Manage page display (form, list…) \* @param string $className Allow to validate a different class than the current one \*/* - public function **viewDetails**() */\*\* Display object details \*/* - public function **beforeUpdateOptions**() */\*\* Can be overriden \*/* - public function **displayRequiredFields**() */\*\* prepare the view to display the required fields form \*/* - public function **createTemplate**($tpl\_name) */\*\* Create a template from the override file, else from the base file. \* @param string $tpl\_name filename @return Template \*/* - public function **jsonConfirmation**($message) */\*\* Shortcut to set up a json success payload \* @param $message success message \*/* - public function **jsonError**($message) */\*\* Shortcut to set up a json error payload \* @param $message error message \*/* - public function **isFresh**($file, $timeout = 604800000) - public function **refresh**($file\_to\_refresh, $external\_file) - public function **fillModuleData**(&$module, $output\_type = ‘link’, $back = null) - public function **displayModuleOptions**($module, $output\_type = ‘link’, $back = null) # class FrontControllerCore extends Controller ./classes/controller\\FrontController.php - public function **\_\_construct**() - public function **checkAccess**() */\*\* @see Controller::checkAccess() \* @return boolean \*/* - public function **viewAccess**() */\*\* @see Controller::viewAccess \* @return boolean \*/* - public function **init**() - public function **postProcess**() - public function **initContent**() - public function **displayHeader**($display = true) */\*\* @deprecated 1.5.0 \*/* - public function **displayFooter**($display = true) */\*\* @deprecated 1.5.0 \*/* - public function **initCursedPage**() - public function **process**() - public function **redirect**() - public function **displayContent**() */\*\* 1.4 retrocompatibility – will be removed in 1.6 \*/* - public function **display**() - public function **setMobileMedia**() */\*\* Specific medias for mobile device. \*/* - public function **setMedia**() - public function **initHeader**() - public function **initFooter**() - public function **checkLiveEditAccess**() - public function **getLiveEditFooter**() - public function **productSort**() - public function **pagination**($nbProducts = 10) - public static function **getCurrentCustomerGroups**() - public function **isTokenValid**() */\*\* Check if token is valid \* @since 1.5.0 @return bool \*/* - public function **addCSS**($css\_uri, $css\_media\_type = ‘all’) */\*\* Add one or several CSS for front, checking if css files are overriden in theme/css/modules/ directory \* @see Controller::addCSS() \*/* - public function **addJS**($js\_uri) */\*\* Add one or several JS files for front, checking if js files are overriden in theme/js/modules/ directory \* @see Controller::addJS() \*/* - public function **setTemplate**($default\_template) */\*\* This is overrided to manage is behaviour if a customer access to the site with mobile device. \*/* - public function **getOverrideTemplate**() */\*\* Returns the template corresponding to the current page. By default this method return false but could easily be overridden in a specific controller \* @since 1.5 @return bool \*/* - public function **getLayout**() */\*\* Returns the layout corresponding to the current page by using the override system Ex: On the url: http://localhost/index.php?id\_product=1&controller=product, this method will check if the layout exists in the following files (in that order), and return the first found: – /themes/default/override/layout-product-1.tpl – /themes/default/override/layout-product.tpl – /themes/default/layout.tpl \* @since 1.5 @return bool|string \*/* - public function **setMobileTemplate**($template) */\*\* This checks if the template set is available for mobile themes, otherwise the front template is choosen. \*/* - public function **initLogoAndFavicon**() */\*\* Return an array with specific logo and favicon, if mobile device \* @since 1.5 @return array \*/* # class ModuleFrontControllerCore extends FrontController ./classes/controller\\ModuleFrontController.php - public function **\_\_construct**() - public function **setTemplate**($template) */\*\* Assign module template \* @param string $template \*/* - public function **getTemplatePath**() */\*\* Get path to front office templates for the module \* @return string \*/* # class CacheApcCore extends Cache ./classes/cache\\CacheApc.php - public function **\_\_construct**() - public function **flush**() */\*\* @see Cache::flush() \*/* # class CacheFsCore extends Cache ./classes/cache\\CacheFs.php - public function **flush**() */\*\* @see Cache::flush() \*/* - public static function **deleteCacheDirectory**() */\*\* Delete cache directory \*/* - public static function **createCacheDirectories**($level\_depth, $directory = false) */\*\* Create cache directory \* @param int $level\_depth @param string $directory \*/* # class CacheMemcacheCore extends Cache ./classes/cache\\CacheMemcache.php - public function **\_\_construct**() - public function **\_\_destruct**() - public function **connect**() */\*\* Connect to memcache server \*/* - public function **flush**() */\*\* @see Cache::flush() \*/* - public static function **addServer**($ip, $port, $weight) */\*\* Add a memcache server \* @param string $ip @param int $port @param int $weight \*/* - public static function **getMemcachedServers**() */\*\* Get list of memcached servers \* @return array \*/* - public static function **deleteServer**($id\_server) */\*\* Delete a memcache server \* @param int $id\_server \*/* # class CacheXcacheCore extends Cache ./classes/cache\\CacheXcache.php - public function **\_\_construct**() - public function **flush**() */\*\* @see Cache::flush() \*/*