|
dolibarr
13.0.2
|
Inheritance diagram for ZapierApi:
Collaboration diagram for ZapierApi:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| get ($id) | |
| Get properties of a hook object. More... | |
| getModulesChoices () | |
| Get list of possibles choices for module. More... | |
| index ($sortfield="t.rowid", $sortorder= 'ASC', $limit=100, $page=0, $sqlfilters= '') | |
| List hooks. More... | |
| post ($request_data=null) | |
| Create hook object. More... | |
| delete ($id) | |
| Update hook. More... | |
| _cleanObjectDatas ($object) | |
| Clean sensible object datas. More... | |
Public Member Functions inherited from DolibarrApi | |
| __construct ($db, $cachedir= '', $refreshCache=false) | |
| Constructor. More... | |
Private Member Functions | |
| validate ($data, $fields) | |
| Validate fields before create or update object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from DolibarrApi | |
| _cleanObjectDatas ($object) | |
| Executed method when API is called without parameter. More... | |
| _checkFilters ($sqlfilters) | |
| Return if a $sqlfilters parameter is valid. More... | |
Static Protected Member Functions inherited from DolibarrApi | |
| static | _checkAccessToResource ($resource, $resource_id=0, $dbtablename= '', $feature2= '', $dbt_keyfield= 'fk_soc', $dbt_select= 'rowid') |
| Check user access to a resource. More... | |
| static | _forge_criteria_callback ($matches) |
| Function to forge a SQL criteria. More... | |
Definition at line 35 of file api_zapier.class.php.
| ZapierApi::__construct | ( | ) |
| ZapierApi::_cleanObjectDatas | ( | $object | ) |
Clean sensible object datas.
| Object | $object | Object to clean |
Definition at line 342 of file api_zapier.class.php.
| ZapierApi::delete | ( | $id | ) |
Update hook.
| int | $id | Id of hook to update |
| array | $request_data | Datas |
PUT /hooks/{id} Delete hook
| int | $id | Hook ID |
DELETE /hook/{id}
Definition at line 309 of file api_zapier.class.php.
References DolibarrApi\_checkAccessToResource().
| ZapierApi::get | ( | $id | ) |
Get properties of a hook object.
Return an array with hook informations
| int | $id | ID of hook |
GET /hooks/{id}
| RestException |
Definition at line 74 of file api_zapier.class.php.
References DolibarrApi\_checkAccessToResource(), and _cleanObjectDatas().
| ZapierApi::getModulesChoices | ( | ) |
Get list of possibles choices for module.
Return an array with hook informations
GET /getmoduleschoices/
| RestException |
Definition at line 102 of file api_zapier.class.php.
| ZapierApi::index | ( | $sortfield = "t.rowid", |
|
$sortorder = 'ASC', |
|||
$limit = 100, |
|||
$page = 0, |
|||
$sqlfilters = '' |
|||
| ) |
List hooks.
Get a list of hooks
| 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 | GET /hooks/ |
Definition at line 142 of file api_zapier.class.php.
References DolibarrApi\_checkFilters(), _cleanObjectDatas(), and db.
| ZapierApi::post | ( | $request_data = null | ) |
Create hook object.
| array | $request_data | Request datas |
POST /hook/
Definition at line 238 of file api_zapier.class.php.
References dol_syslog(), and validate().
|
private |
Validate fields before create or update object.
| array | $data | Array of data to validate |
| array | $fields | Array of fields needed |
| RestException |
Definition at line 366 of file api_zapier.class.php.
Referenced by post().