From 8783fc2f83160c4e079a074abff8e7178dc3c60f Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 26 Jan 2012 14:10:31 +0000 Subject: [PATCH] // Add more informations on deprecated data --- address.php | 3 +++ addresses.php | 3 +++ attachment.php | 3 +++ authentication.php | 3 +++ best-sales.php | 3 +++ cart.php | 3 +++ category.php | 3 +++ changecurrency.php | 3 +++ classes/Attribute.php | 6 +----- classes/Cart.php | 21 +++++---------------- classes/ControllerFactory.php | 2 ++ classes/FrontController.php | 4 ++-- classes/Validate.php | 8 ++------ classes/shop/Shop.php | 2 +- cms.php | 3 +++ contact-form.php | 3 +++ discount.php | 3 +++ get-file.php | 3 +++ guest-tracking.php | 3 +++ history.php | 3 +++ identity.php | 3 +++ manufacturer.php | 3 +++ my-account.php | 3 +++ new-products.php | 3 +++ order-confirmation.php | 3 +++ order-detail.php | 3 +++ order-follow.php | 3 +++ order-opc.php | 3 +++ order-return.php | 3 +++ order-slip.php | 3 +++ order.php | 3 +++ password.php | 3 +++ pdf-invoice.php | 3 +++ pdf-order-return.php | 3 +++ pdf-order-slip.php | 3 +++ prices-drop.php | 3 +++ product-sort.php | 3 +++ product.php | 3 +++ products-comparison.php | 3 +++ search.php | 3 +++ sitemap.php | 3 +++ statistics.php | 3 +++ stores.php | 3 +++ supplier.php | 3 +++ 44 files changed, 127 insertions(+), 30 deletions(-) diff --git a/address.php b/address.php index bac22d4aa..b5d9f7f38 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 4e5a943ea..094da5333 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 c771a96ed..0005c68f8 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 9f655f9f1..ae65c33b5 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 b953882a7..08db6917c 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 9ec1d2c0b..111bba808 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 88f0521ad..3e9214d65 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 f9efcbb46..7664a81f9 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 b6d46402f..e89f39e0f 100644 --- a/classes/Attribute.php +++ b/classes/Attribute.php @@ -177,11 +177,7 @@ class AttributeCore extends ObjectModel } /** - * 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 f0e8d784e..86d7129e6 100644 --- a/classes/Cart.php +++ b/classes/Cart.php @@ -264,8 +264,7 @@ class CartCore extends ObjectModel } /** - * @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 @@ class CartCore extends ObjectModel } /** - * @deprecated 1.5.0.1 + * @deprecated 1.5.0, use Cart->addCartRule() */ public function addDiscount($id_cart_rule) { @@ -997,7 +996,7 @@ class CartCore extends ObjectModel } /** - * @deprecated 1.5.0.1 + * @deprecated 1.5.0, use Cart->removeCartRule() */ public function deleteDiscount($id_cart_rule) { @@ -2091,17 +2090,7 @@ class CartCore extends ObjectModel /** - * 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 @@ class CartCore extends ObjectModel } /** - * @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 d756d69d4..874950c9b 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 bde5c419c..ce5a91481 100755 --- a/classes/FrontController.php +++ b/classes/FrontController.php @@ -417,7 +417,7 @@ class FrontControllerCore extends Controller } /** - * @deprecated + * @deprecated 1.5.0 */ public function displayHeader($display = true) { @@ -449,7 +449,7 @@ class FrontControllerCore extends Controller } /** - * @deprecated + * @deprecated 1.5.0 */ public function displayFooter($display = true) { diff --git a/classes/Validate.php b/classes/Validate.php index 0ef434497..bd4e4ea0c 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -571,11 +571,7 @@ class ValidateCore } /** - * 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 @@ class ValidateCore } /** - * @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 6e5bae4af..9f06512ce 100644 --- a/classes/shop/Shop.php +++ b/classes/shop/Shop.php @@ -897,7 +897,7 @@ class ShopCore extends ObjectModel } /** - * @deprecated 1.5.0 + * @deprecated 1.5.0 Use shop->getID() */ public static function getCurrentShop() { diff --git a/cms.php b/cms.php index 2d53ee34f..486d61107 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 da840b597..81b47d249 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 bfc4522d9..f3c2bfc96 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 318a8e50b..7d634d6aa 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 c3e7ee831..faf94fb7f 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 b3e7f1d02..9d4bcfb01 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 fb745b0c5..34baf61ca 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 a5db75989..c543bcf12 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 61fa8ec07..794a1f1e8 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 7bc3a350d..057bd9b8f 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 8500c3f0e..d2c30b619 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 e5cc0420d..ab88c988d 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 f0cc5bb42..97dd4a551 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 76920d93b..77fccdfa1 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 65a853e1d..a3c52d13a 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 e9fa2e2bf..a0cb818d6 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 0f152d2a3..4dd7b0736 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 480c02ef6..1f45c27b6 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 5a3a62923..a600c9f54 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 7c9a91a56..1f00a3ea2 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 916e47cc9..47eb35928 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 ba43e22e7..8c62bd725 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 a3f53f561..8929353b0 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 a1a1263f7..60118fe98 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 cb3cf9875..3ab82943e 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 0dbebaeb0..3717cec9d 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 8706e00fb..adaf397a1 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 e217199f2..4acec5626 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 e031aaf5b..6419d8c75 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 2e54012ee..5a62c957e 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');