Definition at line 28 of file api_memberstypes.class.php.
◆ _cleanObjectDatas()
MembersTypes::_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 274 of file api_memberstypes.class.php.
◆ _validate()
MembersTypes::_validate |
( |
|
$data | ) |
|
|
private |
◆ delete()
MembersTypes::delete |
( |
|
$id | ) |
|
◆ get()
Get properties of a member type object.
Return an array with member type informations
- Parameters
-
- Returns
- array|mixed data without useless information
- Exceptions
-
Definition at line 56 of file api_memberstypes.class.php.
◆ index()
MembersTypes::index |
( |
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$sqlfilters = '' |
|
) |
| |
List members types.
Get a list of members types
- 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.libelle:like:'SO-%') and (t.subscription:=:'1')" |
- Returns
- array Array of member type objects
- Exceptions
-
Definition at line 89 of file api_memberstypes.class.php.
◆ post()
MembersTypes::post |
( |
|
$request_data = null | ) |
|
Create member type object.
- Parameters
-
array | $request_data | Request data |
- Returns
- int ID of member type
Definition at line 152 of file api_memberstypes.class.php.
◆ put()
MembersTypes::put |
( |
|
$id, |
|
|
|
$request_data = null |
|
) |
| |
Update member type.
- Parameters
-
int | $id | ID of member type to update |
array | $request_data | Datas |
- Returns
- int
Definition at line 177 of file api_memberstypes.class.php.
The documentation for this class was generated from the following file: