Definition at line 37 of file api_partnership.class.php.
◆ __construct()
PartnershipApi::__construct |
( |
| ) |
|
◆ _cleanObjectDatas()
PartnershipApi::_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 316 of file api_partnership.class.php.
◆ _validate()
PartnershipApi::_validate |
( |
|
$data | ) |
|
|
private |
◆ delete()
PartnershipApi::delete |
( |
|
$id | ) |
|
Delete partnership.
- Parameters
-
- Returns
- array
- Exceptions
-
RestException | @url DELETE partnerships/{id} |
Definition at line 282 of file api_partnership.class.php.
◆ get()
PartnershipApi::get |
( |
|
$id | ) |
|
Get properties of a partnership object.
Return an array with partnership informations
- Parameters
-
- Returns
- array|mixed data without useless information
@url GET partnerships/{id}
- Exceptions
-
RestException | 401 Not allowed |
RestException | 404 Not found |
Definition at line 70 of file api_partnership.class.php.
◆ index()
PartnershipApi::index |
( |
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$sqlfilters = '' |
|
) |
| |
List partnerships.
Get a list of partnerships
- 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.ref:like:'SO-%') and (t.date_creation:<:'20160101')" |
- Returns
- array Array of order objects
- Exceptions
-
RestException | @url GET /partnerships/ |
Definition at line 105 of file api_partnership.class.php.
◆ post()
PartnershipApi::post |
( |
|
$request_data = null | ) |
|
Create partnership object.
- Parameters
-
array | $request_data | Request datas |
- Returns
- int ID of partnership
- Exceptions
-
RestException | @url POST partnerships/ |
Definition at line 207 of file api_partnership.class.php.
◆ put()
PartnershipApi::put |
( |
|
$id, |
|
|
|
$request_data = null |
|
) |
| |
Update partnership.
- Parameters
-
int | $id | Id of partnership to update |
array | $request_data | Datas |
- Returns
- int
- Exceptions
-
RestException | @url PUT partnerships/{id} |
Definition at line 240 of file api_partnership.class.php.
The documentation for this class was generated from the following file: