|
| __construct () |
| Constructor.
|
|
| index ($sortfield="t.rowid", $sortorder='ASC', $limit=100, $page=0, $sqlfilters='') |
| Get properties of a stock movement object. More...
|
|
| __construct ($db, $cachedir='', $refreshCache=false) |
| Constructor. More...
|
|
◆ _cleanObjectDatas()
StockMovements::_cleanObjectDatas |
( |
|
$object | ) |
|
|
protected |
Update stock movement.
- Parameters
-
int | $id | Id of warehouse to update |
array | $request_data | Datas |
- Returns
- int Delete stock movement
- Parameters
-
- Returns
- array Clean sensible object datas
- Parameters
-
- Returns
- Object Object with cleaned properties
Reimplemented from DolibarrApi.
Definition at line 287 of file api_stockmovements.class.php.
◆ _validate()
StockMovements::_validate |
( |
|
$data | ) |
|
|
private |
◆ index()
StockMovements::index |
( |
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$sqlfilters = '' |
|
) |
| |
Get properties of a stock movement object.
Return an array with stock movement informations
- Parameters
-
- Returns
- array|mixed data without useless information
- Exceptions
-
RestException | Get a list of stock movement |
- Parameters
-
string | $sortfield | Sort field |
string | $sortorder | Sort order |
int | $limit | Limit for list |
int | $page | Page number |
string | $sqlfilters | Other criteria to filter answers separated by a comma. Syntax example "(t.product_id:=:1) and (t.date_creation:<:'20160101')" |
- Returns
- array Array of warehouse objects
- Exceptions
-
Definition at line 96 of file api_stockmovements.class.php.
The documentation for this class was generated from the following file: