|
|
| __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...
|
| |
| 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
Definition at line 282 of file api_stockmovements.class.php.
Referenced by index().
| StockMovements::_validate |
( |
|
$data | ) |
|
|
private |
Validate fields before create or update object.
- Parameters
-
| array | null | $data | Data to validate |
- Returns
- array
- Exceptions
-
Definition at line 340 of file api_stockmovements.class.php.
| 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.
References DolibarrApi\_checkFilters(), _cleanObjectDatas(), and db.
The documentation for this class was generated from the following file: