Definition at line 29 of file api_interventions.class.php.
◆ _cleanObjectDatas()
Interventions::_cleanObjectDatas |
( |
|
$object | ) |
|
|
protected |
Clean sensible object datas.
- Parameters
-
Object | $object | Object to clean |
- Returns
- Object Object with cleaned properties
Reimplemented from DolibarrApi.
Definition at line 438 of file api_interventions.class.php.
◆ _validate()
Interventions::_validate |
( |
|
$data | ) |
|
|
private |
◆ _validateLine()
Interventions::_validateLine |
( |
|
$data | ) |
|
|
private |
◆ closeFichinter()
Interventions::closeFichinter |
( |
|
$id | ) |
|
◆ delete()
Interventions::delete |
( |
|
$id | ) |
|
◆ get()
Interventions::get |
( |
|
$id | ) |
|
Get properties of a Expense Report object.
Return an array with Expense Report information
- Parameters
-
int | $id | ID of Expense Report |
- Returns
- array|mixed Data without useless information
- Exceptions
-
Definition at line 75 of file api_interventions.class.php.
◆ index()
Interventions::index |
( |
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$thirdparty_ids = '' , |
|
|
|
$sqlfilters = '' |
|
) |
| |
List of interventions.
Return a list of interventions
- Parameters
-
string | $sortfield | Sort field |
string | $sortorder | Sort order |
int | $limit | Limit for list |
int | $page | Page number |
string | $thirdparty_ids | Thirdparty ids to filter orders of (example '1' or '1,2,3') {@pattern /^[0-9,]*$/i} |
string | $sqlfilters | Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:'SO-%') and (t.date_creation:<:'20160101')" |
- Returns
- array Array of order objects
- Exceptions
-
Definition at line 109 of file api_interventions.class.php.
◆ post()
Interventions::post |
( |
|
$request_data = null | ) |
|
Create intervention object.
- Parameters
-
array | $request_data | Request data |
- Returns
- int ID of intervention
Definition at line 202 of file api_interventions.class.php.
◆ postLine()
Interventions::postLine |
( |
|
$id, |
|
|
|
$request_data = null |
|
) |
| |
Get lines of an intervention.
- Parameters
-
@url GET {id}/lines
- Returns
- int Add a line to given intervention
- Parameters
-
int | $id | Id of intervention to update |
array | $request_data | Request data |
@url POST {id}/lines
- Returns
- int
Definition at line 264 of file api_interventions.class.php.
◆ validate()
Interventions::validate |
( |
|
$id, |
|
|
|
$notrigger = 0 |
|
) |
| |
Validate an intervention.
If you get a bad value for param notrigger check, provide this in body { "notrigger": 0 }
- Parameters
-
int | $id | Intervention ID |
int | $notrigger | 1=Does not execute triggers, 0= execute triggers |
@url POST {id}/validate
- Returns
- array
Definition at line 346 of file api_interventions.class.php.
The documentation for this class was generated from the following file: