// Stock: WebServices

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11757 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-12-26 10:34:25 +00:00
parent fe87fd0f97
commit 7ac8036706
8 changed files with 153 additions and 25 deletions
+13 -1
View File
@@ -46,6 +46,7 @@ class StockMvtReasonCore extends ObjectModel
public $deleted = 0;
/**
* @since 1.5.0
* @see ObjectModel::$definition
*/
public static $definition = array(
@@ -61,6 +62,9 @@ class StockMvtReasonCore extends ObjectModel
),
);
/**
* @see ObjectModel::$webserviceParameters
*/
protected $webserviceParameters = array(
'objectsNodeName' => 'stock_movement_reasons',
'objectNodeName' => 'stock_movement_reason',
@@ -69,6 +73,13 @@ class StockMvtReasonCore extends ObjectModel
),
);
/**
* Gets Stock Mvt Reasons
*
* @param int $id_lang
* @param int $sign Optionnal
* @return array
*/
public static function getStockMvtReasons($id_lang, $sign = null)
{
$query = new DbQuery();
@@ -112,8 +123,9 @@ class StockMvtReasonCore extends ObjectModel
}
/**
* @since 1.5.0
* For a given id_stock_mvt_reason, tells if it exists
*
* @since 1.5.0
* @param int $id_stock_mvt_reason
* @return bool
*/