diff --git a/address.php b/address.php index bac22d4aaa758..b5d9f7f38e065 100644 --- a/address.php +++ b/address.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/addresses.php b/addresses.php index 4e5a943eaa69b..094da53335662 100644 --- a/addresses.php +++ b/addresses.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/attachment.php b/attachment.php index c771a96ed7d9a..0005c68f866da 100644 --- a/attachment.php +++ b/attachment.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/authentication.php b/authentication.php index 9f655f9f1c356..ae65c33b50e6f 100644 --- a/authentication.php +++ b/authentication.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/best-sales.php b/best-sales.php index b953882a7c0f2..08db6917cb102 100644 --- a/best-sales.php +++ b/best-sales.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/cart.php b/cart.php index 9ec1d2c0b22f8..111bba808752e 100644 --- a/cart.php +++ b/cart.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/category.php b/category.php index 88f0521ad9130..3e9214d653730 100644 --- a/category.php +++ b/category.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/changecurrency.php b/changecurrency.php index f9efcbb46543b..7664a81f9f6ff 100644 --- a/changecurrency.php +++ b/changecurrency.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/classes/Attribute.php b/classes/Attribute.php index b6d46402f9feb..e89f39e0f5bb7 100644 --- a/classes/Attribute.php +++ b/classes/Attribute.php @@ -177,11 +177,7 @@ public static function checkAttributeQty($id_product_attribute, $qty, Shop $shop } /** - * Get quantity for product with attributes quantity - * - * @deprecated since 1.5.0, use Product->getStock() - * @param integer $id_product - * @return mixed Quantity or false + * @deprecated 1.5.0, use StockAvailable::getQuantityAvailableByProduct() */ public static function getAttributeQty($id_product) { diff --git a/classes/Cart.php b/classes/Cart.php index f0e8d784ed1c9..86d7129e647ed 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -264,8 +264,7 @@ public static function getTaxesAverageUsed($id_cart) } /** - * @deprecated 1.5.0.1 - * @see Cart::getCartRules() + * @deprecated 1.5.0, use Cart->getCartRules() */ public function getDiscounts($lite = false, $refresh = false) { @@ -683,7 +682,7 @@ public static function getNbProducts($id) } /** - * @deprecated 1.5.0.1 + * @deprecated 1.5.0, use Cart->addCartRule() */ public function addDiscount($id_cart_rule) { @@ -997,7 +996,7 @@ public function orderExists() } /** - * @deprecated 1.5.0.1 + * @deprecated 1.5.0, use Cart->removeCartRule() */ public function deleteDiscount($id_cart_rule) { @@ -2091,17 +2090,7 @@ public function getCarrierCost($id_carrier, $useTax = true, Country $default_cou /** - * Return shipping total - * This function is dépreciate, use getTotalShippingCost or getPackageShippingCost - * - * @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 - * @deprecated since 1.5.0 - * - * @return float Shipping total + * @deprecated 1.5.0, use Cart->getPackageShippingCost() */ public function getOrderShippingCost($id_carrier = null, $use_tax = true, Country $default_country = null, $product_list = null) { @@ -2453,7 +2442,7 @@ public function getTotalWeight($products = null) } /** - * @deprecated 1.5.0.1 + * @deprecated 1.5.0 */ public function checkDiscountValidity($obj, $discounts, $order_total, $products, $check_cart_discount = false) { diff --git a/classes/ControllerFactory.php b/classes/ControllerFactory.php index d756d69d488fc..874950c9b62d3 100644 --- a/classes/ControllerFactory.php +++ b/classes/ControllerFactory.php @@ -26,6 +26,8 @@ */ /** + * Controllers don't need to be loaded with includeController anymore since they use Autoload + * * @deprecated since 1.5.0 */ class ControllerFactoryCore diff --git a/classes/FrontController.php b/classes/FrontController.php index bde5c419cb996..ce5a91481c74b 100755 --- a/classes/FrontController.php +++ b/classes/FrontController.php @@ -417,7 +417,7 @@ public function initContent() } /** - * @deprecated + * @deprecated 1.5.0 */ public function displayHeader($display = true) { @@ -449,7 +449,7 @@ public function displayHeader($display = true) } /** - * @deprecated + * @deprecated 1.5.0 */ public function displayFooter($display = true) { diff --git a/classes/Validate.php b/classes/Validate.php index 0ef434497cea3..bd4e4ea0cbf32 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -571,11 +571,7 @@ public static function isTableOrIdentifier($table) } /** - * Check for values list validity - * Mostly used in database for insertions (A,B,C),(A,B,C)... - * - * @deprecated - * @return boolean Validity is ok or not + * @deprecated 1.5.0 You should not use list like this, please use an array when you build a SQL query */ public static function isValuesList() { @@ -848,7 +844,7 @@ public static function isBoolId($ids) } /** - * @deprecated 1.5.0 + * @deprecated 1.5.0 Use Validate::isBoolId() */ public static function isBool_Id($ids) { diff --git a/classes/shop/Shop.php b/classes/shop/Shop.php index 6e5bae4afc0e4..9f06512ce1412 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -897,7 +897,7 @@ public static function getShopWithoutUrls($id_shop = false) } /** - * @deprecated 1.5.0 + * @deprecated 1.5.0 Use shop->getID() */ public static function getCurrentShop() { diff --git a/cms.php b/cms.php index 2d53ee34f44ea..486d611070eb7 100644 --- a/cms.php +++ b/cms.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/contact-form.php b/contact-form.php index da840b59758ce..81b47d2492f7d 100644 --- a/contact-form.php +++ b/contact-form.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/discount.php b/discount.php index bfc4522d9c660..f3c2bfc96f1c1 100644 --- a/discount.php +++ b/discount.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/get-file.php b/get-file.php index 318a8e50bbc3c..7d634d6aae3ff 100644 --- a/get-file.php +++ b/get-file.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/guest-tracking.php b/guest-tracking.php index c3e7ee831220f..faf94fb7f1c6c 100644 --- a/guest-tracking.php +++ b/guest-tracking.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/history.php b/history.php index b3e7f1d0212ed..9d4bcfb010b6b 100644 --- a/history.php +++ b/history.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/identity.php b/identity.php index fb745b0c51bea..34baf61ca6e26 100644 --- a/identity.php +++ b/identity.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/manufacturer.php b/manufacturer.php index a5db759897afc..c543bcf12ad09 100644 --- a/manufacturer.php +++ b/manufacturer.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/my-account.php b/my-account.php index 61fa8ec0775e2..794a1f1e896d5 100644 --- a/my-account.php +++ b/my-account.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/new-products.php b/new-products.php index 7bc3a350d0953..057bd9b8fa56e 100644 --- a/new-products.php +++ b/new-products.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/order-confirmation.php b/order-confirmation.php index 8500c3f0ef516..d2c30b619cfd4 100644 --- a/order-confirmation.php +++ b/order-confirmation.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/order-detail.php b/order-detail.php index e5cc0420d92e5..ab88c988d59bd 100644 --- a/order-detail.php +++ b/order-detail.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/order-follow.php b/order-follow.php index f0cc5bb427674..97dd4a5514082 100644 --- a/order-follow.php +++ b/order-follow.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/order-opc.php b/order-opc.php index 76920d93b4520..77fccdfa1d38f 100755 --- a/order-opc.php +++ b/order-opc.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/order-return.php b/order-return.php index 65a853e1d4c7a..a3c52d13ae67f 100644 --- a/order-return.php +++ b/order-return.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/order-slip.php b/order-slip.php index e9fa2e2bf6664..a0cb818d646ae 100644 --- a/order-slip.php +++ b/order-slip.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/order.php b/order.php index 0f152d2a34caf..4dd7b0736391f 100644 --- a/order.php +++ b/order.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/password.php b/password.php index 480c02ef6116c..1f45c27b6cd1a 100644 --- a/password.php +++ b/password.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/pdf-invoice.php b/pdf-invoice.php index 5a3a6292347d7..a600c9f542da5 100644 --- a/pdf-invoice.php +++ b/pdf-invoice.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ include(dirname(__FILE__).'/config/config.inc.php'); diff --git a/pdf-order-return.php b/pdf-order-return.php index 7c9a91a56a1a1..1f00a3ea218c1 100644 --- a/pdf-order-return.php +++ b/pdf-order-return.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ include(dirname(__FILE__).'/config/config.inc.php'); diff --git a/pdf-order-slip.php b/pdf-order-slip.php index 916e47cc90bfc..47eb35928e5ea 100644 --- a/pdf-order-slip.php +++ b/pdf-order-slip.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ include(dirname(__FILE__).'/config/config.inc.php'); diff --git a/prices-drop.php b/prices-drop.php index ba43e22e70de9..8c62bd7251b70 100644 --- a/prices-drop.php +++ b/prices-drop.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/product-sort.php b/product-sort.php index a3f53f56192a2..8929353b06a45 100644 --- a/product-sort.php +++ b/product-sort.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/product.php b/product.php index a1a1263f78a75..60118fe985ccf 100644 --- a/product.php +++ b/product.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/products-comparison.php b/products-comparison.php index cb3cf98754ccb..3ab82943e4619 100644 --- a/products-comparison.php +++ b/products-comparison.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/search.php b/search.php index 0dbebaeb07548..3717cec9d6410 100644 --- a/search.php +++ b/search.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/sitemap.php b/sitemap.php index 8706e00fb44ef..adaf397a18365 100644 --- a/sitemap.php +++ b/sitemap.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/statistics.php b/statistics.php index e217199f239a3..4acec5626fa02 100644 --- a/statistics.php +++ b/statistics.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/stores.php b/stores.php index e031aaf5b083a..6419d8c750803 100644 --- a/stores.php +++ b/stores.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php'); diff --git a/supplier.php b/supplier.php index 2e54012eeb52a..5a62c957e785a 100644 --- a/supplier.php +++ b/supplier.php @@ -27,6 +27,9 @@ /** * This file will be removed in 1.6 + * You have to use index.php?controller=page_name instead of this page + * + * @deprecated 1.5.0 */ require(dirname(__FILE__).'/config/config.inc.php');