// Warehouse : updated comments..

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9583 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-10-24 10:20:11 +00:00
parent 82c611f092
commit 53bc5ac168
+9 -1
View File
@@ -167,7 +167,7 @@ class WarehouseCore extends ObjectModel
} }
/** /**
* Checks if a warehouse is empty - holds no stock * Checks if a warehouse is empty - i.e. holds no stock
* *
* @return bool * @return bool
*/ */
@@ -242,6 +242,14 @@ class WarehouseCore extends ObjectModel
return (Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query)); return (Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query));
} }
/**
* Gets the list of warehouses
* It is possible via ignore_shop and id_shop to filter the list with shop id
*
* @param bool $ignore_shop false by default
* @param int $id_shop null by default
* @return array
*/
public static function getWarehouseList($ignore_shop = false, $id_shop = null) public static function getWarehouseList($ignore_shop = false, $id_shop = null)
{ {
if (!$ignore_shop) if (!$ignore_shop)