Skip to content

Commit

Permalink
// Add more informations on deprecated data
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelMalie committed Jan 26, 2012
1 parent 4bbc253 commit 5990e36
Show file tree
Hide file tree
Showing 44 changed files with 127 additions and 30 deletions.
3 changes: 3 additions & 0 deletions address.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions addresses.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions best-sales.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions category.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions changecurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
6 changes: 1 addition & 5 deletions classes/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
21 changes: 5 additions & 16 deletions classes/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 2 additions & 0 deletions classes/ControllerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions classes/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public function initContent()
}

/**
* @deprecated
* @deprecated 1.5.0
*/
public function displayHeader($display = true)
{
Expand Down Expand Up @@ -449,7 +449,7 @@ public function displayHeader($display = true)
}

/**
* @deprecated
* @deprecated 1.5.0
*/
public function displayFooter($display = true)
{
Expand Down
8 changes: 2 additions & 6 deletions classes/Validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion classes/shop/Shop.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down
3 changes: 3 additions & 0 deletions cms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions contact-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions discount.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions get-file.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions guest-tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions history.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions manufacturer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions my-account.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions new-products.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions order-confirmation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions order-detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions order-follow.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions order-opc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions order-return.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions order-slip.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions order.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions password.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 3 additions & 0 deletions pdf-invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Loading

0 comments on commit 5990e36

Please sign in to comment.