Definition at line 30 of file api_tickets.class.php.
◆ _cleanObjectDatas()
Tickets::_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 474 of file api_tickets.class.php.
◆ _validate()
Tickets::_validate |
( |
|
$data | ) |
|
|
private |
Validate fields before create or update object.
- Parameters
-
array | $data | Data to validate |
- Returns
- array
- Exceptions
-
Definition at line 432 of file api_tickets.class.php.
◆ _validateMessage()
Tickets::_validateMessage |
( |
|
$data | ) |
|
|
private |
Validate fields before create or update object message.
- Parameters
-
array | $data | Data to validate |
- Returns
- array
- Exceptions
-
Definition at line 452 of file api_tickets.class.php.
◆ delete()
◆ get()
Get properties of a Ticket object.
Return an array with ticket informations
- Parameters
-
- Returns
- array|mixed Data without useless information
- Exceptions
-
RestException | 401 |
RestException | 403 |
RestException | 404 |
Definition at line 75 of file api_tickets.class.php.
◆ getByRef()
Tickets::getByRef |
( |
|
$ref | ) |
|
Get properties of a Ticket object from ref.
Return an array with ticket informations
- Parameters
-
string | $ref | Reference for ticket |
- Returns
- array|mixed Data without useless information
@url GET ref/{ref}
- Exceptions
-
RestException | 401 |
RestException | 403 |
RestException | 404 |
Definition at line 113 of file api_tickets.class.php.
◆ getByTrackId()
Tickets::getByTrackId |
( |
|
$track_id | ) |
|
Get properties of a Ticket object from track id.
Return an array with ticket informations
- Parameters
-
string | $track_id | Tracking ID of ticket |
- Returns
- array|mixed Data without useless information
@url GET track_id/{track_id}
- Exceptions
-
RestException | 401 |
RestException | 403 |
RestException | 404 |
Definition at line 94 of file api_tickets.class.php.
◆ getCommon()
Tickets::getCommon |
( |
|
$id = 0 , |
|
|
|
$track_id = '' , |
|
|
|
$ref = '' |
|
) |
| |
|
private |
Get properties of a Ticket object Return an array with ticket informations.
- Parameters
-
int | $id | ID of ticket |
string | $track_id | Tracking ID of ticket |
string | $ref | Reference for ticket |
- Returns
- array|mixed Data without useless information
Definition at line 127 of file api_tickets.class.php.
◆ index()
Tickets::index |
( |
|
$socid = 0 , |
|
|
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = "ASC" , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$sqlfilters = '' |
|
) |
| |
List tickets.
Get a list of tickets
- Parameters
-
int | $socid | Filter list with thirdparty ID |
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') and (t.fk_statut:=:1)" |
- Returns
- array Array of ticket objects
Definition at line 201 of file api_tickets.class.php.
◆ post()
Tickets::post |
( |
|
$request_data = null | ) |
|
Create ticket object.
- Parameters
-
array | $request_data | Request datas |
- Returns
- int ID of ticket
Definition at line 300 of file api_tickets.class.php.
References db.
◆ postNewMessage()
Tickets::postNewMessage |
( |
|
$request_data = null | ) |
|
Create ticket object.
- Parameters
-
array | $request_data | Request datas |
- Returns
- int ID of ticket
Definition at line 333 of file api_tickets.class.php.
References db.
◆ put()
Tickets::put |
( |
|
$id, |
|
|
|
$request_data = null |
|
) |
| |
Update ticket.
- Parameters
-
int | $id | Id of ticket to update |
array | $request_data | Datas |
- Returns
- int
Definition at line 365 of file api_tickets.class.php.
The documentation for this class was generated from the following file: