dolibarr
x.y.z
|
Public Member Functions | |
__construct () | |
Constructor. | |
get ($id) | |
Get properties of a bom object. More... | |
index ($sortfield="t.rowid", $sortorder='ASC', $limit=100, $page=0, $sqlfilters='') | |
List boms. More... | |
post ($request_data=null) | |
Create bom object. More... | |
put ($id, $request_data=null) | |
Update bom. More... | |
delete ($id) | |
Delete bom. More... | |
getLines ($id) | |
Get lines of an BOM. More... | |
postLine ($id, $request_data=null) | |
Add a line to given BOM. More... | |
putLine ($id, $lineid, $request_data=null) | |
Update a line to given BOM. More... | |
deleteLine ($id, $lineid) | |
Delete a line to given BOM. More... | |
Public Member Functions inherited from DolibarrApi | |
__construct ($db, $cachedir='', $refreshCache=false) | |
Constructor. More... | |
Protected Member Functions | |
_cleanObjectDatas ($object) | |
Clean sensible object datas. More... | |
Protected Member Functions inherited from DolibarrApi | |
_checkValForAPI ($field, $value, $object) | |
Check and convert a string depending on its type/name. More... | |
_checkFilters ($sqlfilters, &$error='') | |
Return if a $sqlfilters parameter is valid. More... | |
Private Member Functions | |
_validate ($data) | |
Validate fields before create or update object. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from DolibarrApi | |
static | _checkAccessToResource ($resource, $resource_id=0, $dbtablename='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid') |
Check access by user to a given resource. More... | |
static | _forge_criteria_callback ($matches) |
Function to forge a SQL criteria from a Generic filter string. More... | |
Definition at line 38 of file api_boms.class.php.
|
protected |
Clean sensible object datas.
Object | $object | Object to clean |
Reimplemented from DolibarrApi.
Definition at line 462 of file api_boms.class.php.
|
private |
Validate fields before create or update object.
array | $data | Array of data to validate |
RestException |
Definition at line 525 of file api_boms.class.php.
Boms::delete | ( | $id | ) |
Boms::deleteLine | ( | $id, | |
$lineid | |||
) |
Delete a line to given BOM.
int | $id | Id of BOM to update |
int | $lineid | Id of line to delete |
@url DELETE {id}/lines/{lineid}
RestException | 401 |
RestException | 404 |
RestException | 500 |
Definition at line 420 of file api_boms.class.php.
Boms::get | ( | $id | ) |
Get properties of a bom object.
Return an array with bom informations
int | $id | ID of bom |
@url GET {id}
RestException |
Definition at line 66 of file api_boms.class.php.
Boms::getLines | ( | $id | ) |
Get lines of an BOM.
int | $id | Id of BOM |
@url GET {id}/lines
Definition at line 292 of file api_boms.class.php.
Boms::index | ( | $sortfield = "t.rowid" , |
|
$sortorder = 'ASC' , |
|||
$limit = 100 , |
|||
$page = 0 , |
|||
$sqlfilters = '' |
|||
) |
List boms.
Get a list of boms
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.ref:like:'SO-%') and (t.date_creation:<:'20160101')" |
RestException |
Definition at line 99 of file api_boms.class.php.
Boms::post | ( | $request_data = null | ) |
Create bom object.
array | $request_data | Request datas |
Definition at line 197 of file api_boms.class.php.
Boms::postLine | ( | $id, | |
$request_data = null |
|||
) |
Add a line to given BOM.
@url POST {id}/lines
Definition at line 324 of file api_boms.class.php.
Boms::put | ( | $id, | |
$request_data = null |
|||
) |
Update bom.
int | $id | Id of bom to update |
array | $request_data | Datas |
Definition at line 222 of file api_boms.class.php.
Boms::putLine | ( | $id, | |
$lineid, | |||
$request_data = null |
|||
) |
Update a line to given BOM.
@url PUT {id}/lines/{lineid}
Definition at line 370 of file api_boms.class.php.