|
dolibarr
13.0.2
|
Inheritance diagram for Subscriptions:
Collaboration diagram for Subscriptions:Public Member Functions | |
| __construct () | |
| Constructor. | |
| get ($id) | |
| Get properties of a subscription object. More... | |
| index ($sortfield="dateadh", $sortorder= 'ASC', $limit=100, $page=0, $sqlfilters= '') | |
| List subscriptions. More... | |
| post ($request_data=null) | |
| Create subscription object. More... | |
| put ($id, $request_data=null) | |
| Update subscription. More... | |
| delete ($id) | |
| Delete subscription. More... | |
Public Member Functions inherited from DolibarrApi | |
| __construct ($db, $cachedir= '', $refreshCache=false) | |
| Constructor. More... | |
Private Member Functions | |
| _validate ($data) | |
| Validate fields before creating an 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 28 of file api_subscriptions.class.php.
|
private |
Validate fields before creating an object.
| array | null | $data | Data to validate |
| RestException |
Definition at line 235 of file api_subscriptions.class.php.
Referenced by post().
| Subscriptions::delete | ( | $id | ) |
Delete subscription.
| int | $id | ID of subscription to delete |
Definition at line 203 of file api_subscriptions.class.php.
References db.
| Subscriptions::get | ( | $id | ) |
Get properties of a subscription object.
Return an array with subscription informations
| int | $id | ID of subscription |
| RestException |
Definition at line 59 of file api_subscriptions.class.php.
References DolibarrApi\_cleanObjectDatas(), and db.
| Subscriptions::index | ( | $sortfield = "dateadh", |
|
$sortorder = 'ASC', |
|||
$limit = 100, |
|||
$page = 0, |
|||
$sqlfilters = '' |
|||
| ) |
List subscriptions.
Get a list of subscriptions
| 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.import_key:<:'20160101')" |
| RestException |
Definition at line 88 of file api_subscriptions.class.php.
References DolibarrApi\_checkFilters(), DolibarrApi\_cleanObjectDatas(), and db.
| Subscriptions::post | ( | $request_data = null | ) |
Create subscription object.
| array | $request_data | Request data |
Definition at line 148 of file api_subscriptions.class.php.
References _validate(), and db.
| Subscriptions::put | ( | $id, | |
$request_data = null |
|||
| ) |
Update subscription.
| int | $id | ID of subscription to update |
| array | $request_data | Datas |
Definition at line 173 of file api_subscriptions.class.php.
References db.