dolibarr 19.0.3
|
Public Member Functions | |
__construct () | |
Constructor. | |
get ($id) | |
Get properties of a hook object. | |
getModulesChoices () | |
Get list of possibles choices for module. | |
index ($sortfield="t.rowid", $sortorder='ASC', $limit=100, $page=0, $sqlfilters='', $properties='') | |
List hooks. | |
post ($request_data=null) | |
Create hook object. | |
delete ($id) | |
Update hook. | |
_cleanObjectDatas ($object) | |
Clean sensible object datas. | |
Public Member Functions inherited from DolibarrApi | |
__construct ($db, $cachedir='', $refreshCache=false) | |
Constructor. | |
Private Member Functions | |
validate ($data, $fields) | |
Validate fields before create or update object. | |
Additional Inherited Members | |
Protected Member Functions inherited from DolibarrApi | |
_checkValForAPI ($field, $value, $object) | |
Check and convert a string depending on its type/name. | |
_filterObjectProperties ($object, $properties) | |
Filter properties that will be returned on object. | |
_checkFilters ($sqlfilters, &$error='') | |
Return if a $sqlfilters parameter is valid Function no more used. | |
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. | |
static | _forge_criteria_callback ($matches) |
Function to forge a SQL criteria from a Generic filter string. | |
Definition at line 36 of file api_zapier.class.php.
Zapier::__construct | ( | ) |
Zapier::_cleanObjectDatas | ( | $object | ) |
Clean sensible object datas.
Object | $object | Object to clean |
Reimplemented from DolibarrApi.
Definition at line 359 of file api_zapier.class.php.
Zapier::delete | ( | $id | ) |
Update hook.
int | $id | Id of hook to update |
array | $request_data | Datas |
@url PUT /hooks/{id} Delete hook
int | $id | Hook ID |
@url DELETE /hook/{id}
Definition at line 325 of file api_zapier.class.php.
References DolibarrApi\_checkAccessToResource().
Zapier::get | ( | $id | ) |
Get properties of a hook object.
Return an array with hook informations
int | $id | ID of hook |
@url GET /hooks/{id}
RestException |
Definition at line 75 of file api_zapier.class.php.
References DolibarrApi\_checkAccessToResource(), and _cleanObjectDatas().
Zapier::getModulesChoices | ( | ) |
Get list of possibles choices for module.
Return an array with hook informations
@url GET /getmoduleschoices/
RestException |
Definition at line 103 of file api_zapier.class.php.
Zapier::index | ( | $sortfield = "t.rowid", | |
$sortorder = 'ASC', | |||
$limit = 100, | |||
$page = 0, | |||
$sqlfilters = '', | |||
$properties = '' ) |
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')" |
string | $properties | Restrict the data returned to theses properties. Ignored if empty. Comma separated list of properties names |
RestException |
@url GET /hooks/
Definition at line 145 of file api_zapier.class.php.
References _cleanObjectDatas(), DolibarrApi\_filterObjectProperties(), and forgeSQLFromUniversalSearchCriteria().
Zapier::post | ( | $request_data = null | ) |
Create hook object.
array | $request_data | Request datas |
@url POST /hook/
Definition at line 245 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 376 of file api_zapier.class.php.
Referenced by post().