|
dolibarr 22.0.5
|


Public Member Functions | |
| __construct () | |
| Constructor of the class. | |
| deleteById ($id) | |
| Delete an event attendee. | |
| deleteByRef ($ref) | |
| Delete an event attendee. | |
| getById ($id) | |
| Get properties of a event attendee by id. | |
| getByRef ($ref) | |
| Get properties of an event attendee by ref. | |
| index ($sortfield="t.rowid", $sortorder='ASC', $limit=100, $page=0, $sqlfilters='', $properties='', $pagination_data=false) | |
| List Event attendees. | |
| post ($request_data=null) | |
| Create an event attendee. | |
| putById ($id, $request_data=null) | |
| Update an event attendee. | |
| putByRef ($ref, $request_data=null) | |
| Update an event attendee. | |
Public Member Functions inherited from DolibarrApi | |
| __construct ($db, $cachedir='', $refreshCache=false) | |
| Constructor. | |
Protected Member Functions | |
| _cleanObjectDatas ($object) | |
| Clean sensible object datas. | |
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. | |
Private Member Functions | |
| _fetch ($id, $ref='') | |
| Get properties of an event attendee. | |
| _validate ($data) | |
| Validate fields before create or update object. | |
| _checkAccessRights ($accesstype, $project_id=0) | |
| function to check for access rights - should probably have 1. | |
Additional Inherited Members | |
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 31 of file api_eventattendees.class.php.
|
private |
function to check for access rights - should probably have 1.
parameter which is read/write/delete/... Why a separate function? because we probably needs to check so many many different kinds of objects
| string | $accesstype | accesstype: read, write, delete, ... |
| int | $project_id | which project do we need to check for access to, 0 means don't check |
| RestException | 403 |
| RestException | 500 |
Definition at line 603 of file api_eventattendees.class.php.
References dol_syslog().
Referenced by _fetch(), deleteById(), deleteByRef(), index(), post(), putById(), and putByRef().
|
protected |
Clean sensible object datas.
| Object | $object | Object to clean @phan-param ConferenceOrBoothAttendee $object @phpstan-param ConferenceOrBoothAttendee $object |
Reimplemented from DolibarrApi.
Definition at line 497 of file api_eventattendees.class.php.
References $object.
|
private |
Get properties of an event attendee.
Return an array with Event attendees
| int | $id | ID of event_attendees |
| string | $ref | Ref of event_attendees |
| RestException | 403 |
| RestException | 404 |
Definition at line 463 of file api_eventattendees.class.php.
References $id, _checkAccessRights(), and _cleanObjectDatas().
Referenced by getById(), getByRef(), putById(), and putByRef().
|
private |
Validate fields before create or update object.
| ?array<string,null|int|string> | $data Data to validate |
| RestException | 400 |
Definition at line 580 of file api_eventattendees.class.php.
Referenced by post().
| EventAttendees::deleteById | ( | $id | ) |
Delete an event attendee.
| int | $id | event attendee ID |
@url DELETE {id}
| RestException | 403 |
| RestException | 404 |
| RestException | 500 |
Definition at line 85 of file api_eventattendees.class.php.
References $id, and _checkAccessRights().
| EventAttendees::deleteByRef | ( | $ref | ) |
Delete an event attendee.
| string | $ref | event attendee ref |
@url DELETE ref/{ref}
| RestException | 403 |
| RestException | 404 |
| RestException | 500 |
Definition at line 123 of file api_eventattendees.class.php.
References _checkAccessRights().
| EventAttendees::getById | ( | $id | ) |
Get properties of a event attendee by id.
Return an array with event attendee information
| int | $id | ID of event attendee |
@url GET {id}
| RestException | 403 |
| RestException | 404 |
Definition at line 162 of file api_eventattendees.class.php.
| EventAttendees::getByRef | ( | $ref | ) |
Get properties of an event attendee by ref.
Return an array with order information
| string | $ref | Ref of object |
@url GET ref/{ref}
| RestException | 403 |
| RestException | 404 |
Definition at line 182 of file api_eventattendees.class.php.
References _fetch().
| EventAttendees::index | ( | $sortfield = "t.rowid", | |
| $sortorder = 'ASC', | |||
| $limit = 100, | |||
| $page = 0, | |||
| $sqlfilters = '', | |||
| $properties = '', | |||
| $pagination_data = false ) |
List Event attendees.
Get a list of Event attendees
| 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.status:=:1) and (t.email:=:'bad@example.com')" |
| string | $properties | Restrict the data returned to these properties. Ignored if empty. Comma separated list of properties names |
| bool | $pagination_data | If this parameter is set to true the response will include pagination data. Default value is false. Page starts from 0* |
@url GET
| RestException | 403 Access denied |
| RestException | 503 Error |
Definition at line 208 of file api_eventattendees.class.php.
References _checkAccessRights(), _cleanObjectDatas(), DolibarrApi\_filterObjectProperties(), dol_syslog(), and forgeSQLFromUniversalSearchCriteria().
| EventAttendees::post | ( | $request_data = null | ) |
Create an event attendee.
Example: {"module":"adherent","type_template":"member","active": 1,"ref":"(SendingEmailOnAutoSubscription)","fk_user":0,"joinfiles": "0", ... } Required: {"ref":"myBestTemplate","topic":"myBestOffer","type_template":"propal_send"}
| array | $request_data | Request data @phan-param ?array<string,string> $request_data @phpstan-param ?array<string,string> $request_data |
@url POST
| RestException | 304 |
| RestException | 403 |
| RestException | 500 |
Definition at line 316 of file api_eventattendees.class.php.
References _checkAccessRights(), DolibarrApi\_checkValForAPI(), _validate(), and sanitizeVal().
| EventAttendees::putById | ( | $id, | |
| $request_data = null ) |
Update an event attendee.
Example: {"module":"adherent","type_template":"member","active": 1,"ref":"(SendingEmailOnAutoSubscription)","fk_user":0,"joinfiles": "0", ... } Required: {"ref":"myBestTemplate","topic":"myBestOffer","type_template":"propal_send"}
| int | $id | Id of order to update |
| array | $request_data | Data @phan-param ?array<string,string> $request_data @phpstan-param ?array<string,string> $request_data |
@url PUT {id}
| RestException | 403 |
| RestException | 404 |
| RestException | 500 |
Definition at line 362 of file api_eventattendees.class.php.
References $id, _checkAccessRights(), DolibarrApi\_checkValForAPI(), _fetch(), and sanitizeVal().
| EventAttendees::putByRef | ( | $ref, | |
| $request_data = null ) |
Update an event attendee.
Example: {"module":"adherent","type_template":"member","active": 1,"ref":"(SendingEmailOnAutoSubscription)","fk_user":0,"joinfiles": "0", ... } Required: {"ref":"myBestTemplate","topic":"myBestOffer","type_template":"propal_send"}
| string | $ref | Ref of order to update |
| array | $request_data | Data @phan-param ?array<string,string> $request_data @phpstan-param ?array<string,string> $request_data |
@url PUT ref/{ref}
| RestException | 403 |
| RestException | 404 |
| RestException | 500 |
Definition at line 413 of file api_eventattendees.class.php.
References _checkAccessRights(), DolibarrApi\_checkValForAPI(), _fetch(), and sanitizeVal().