메소드 | 설명 | |
---|---|---|
cancel ( integer $eid, $cancel_message = '' ) : boolean | Cancels an event. Only works for events where application is the admin. | |
create ( string $uid, array $event_info ) : integer | Creates an event on behalf of the user is there is a session, otherwise on behalf of app. Successful creation guarantees app will be admin. | |
get ( array $options = [] ) : array | Returns events according to the filters specified. | |
getMembers ( integer $eid ) : array | Returns membership list data associated with an event. | |
rsvp ( integer $eid, string $rsvp ) : boolean | RSVPs the current user to this event. |
메소드 | 설명 | |
---|---|---|
_fromDriverStatus ( $driver_status ) |
public get ( array $options = [] ) : array | ||
$options | array | The filter options: - uid: (string) The user id. - eids: (string) Comma delimited list of event ids to filter on. - start: (integer) Only return events occuring after this timestamp. - end: (integet) Only return events occuring before this timestamp. - rsvp: (string) Only return events if uid is specified and the user has this rsvp status. |
리턴 | array | The events matching the query. |
public getMembers ( integer $eid ) : array | ||
$eid | integer | event id |
리턴 | array | An array of objects with 'name', 'id', and 'rsvp_status' values. |