Definition at line 29 of file api_warehouses.class.php.
◆ _cleanObjectDatas()
Warehouses::_cleanObjectDatas |
( |
|
$object | ) |
|
|
protected |
◆ _validate()
Warehouses::_validate |
( |
|
$data | ) |
|
|
private |
◆ delete()
Warehouses::delete |
( |
|
$id | ) |
|
◆ get()
Get properties of a warehouse object.
Return an array with warehouse informations
- Parameters
-
- Returns
- array|mixed data without useless information
- Exceptions
-
Definition at line 63 of file api_warehouses.class.php.
◆ index()
Warehouses::index |
( |
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$category = 0 , |
|
|
|
$sqlfilters = '' |
|
) |
| |
List warehouses.
Get a list of warehouses
- Parameters
-
string | $sortfield | Sort field |
string | $sortorder | Sort order |
int | $limit | Limit for list |
int | $page | Page number |
int | $category | Use this param to filter list by category |
string | $sqlfilters | Other criteria to filter answers separated by a comma. Syntax example "(t.label:like:'WH-%') and (t.date_creation:<:'20160101')" |
- Returns
- array Array of warehouse objects
- Exceptions
-
Definition at line 96 of file api_warehouses.class.php.
◆ post()
Warehouses::post |
( |
|
$request_data = null | ) |
|
Create warehouse object.
- Parameters
-
array | $request_data | Request data |
- Returns
- int ID of warehouse
Definition at line 166 of file api_warehouses.class.php.
◆ put()
Warehouses::put |
( |
|
$id, |
|
|
|
$request_data = null |
|
) |
| |
Update warehouse.
- Parameters
-
int | $id | Id of warehouse to update |
array | $request_data | Datas |
- Returns
- int
Definition at line 191 of file api_warehouses.class.php.
The documentation for this class was generated from the following file: