PHP Класс Horde_Service_Facebook_Events, horde

Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Автор: Michael J. Rubinsky ([email protected])
Наследование: extends Horde_Service_Facebook_Base
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )

Описание методов

_fromDriverStatus() защищенный Метод

protected _fromDriverStatus ( $driver_status )

cancel() публичный Метод

Cancels an event. Only works for events where application is the admin.
public cancel ( integer $eid, $cancel_message = '' ) : boolean
$eid integer event id
Результат boolean

create() публичный Метод

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.
public create ( string $uid, array $event_info ) : integer
$uid string The facebook id the event is attached to.
$event_info array json encoded event information
Результат integer event id

get() публичный Метод

Returns events according to the filters specified.
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.

getMembers() публичный Метод

Returns membership list data associated with an event.
public getMembers ( integer $eid ) : array
$eid integer event id
Результат array An array of objects with 'name', 'id', and 'rsvp_status' values.

rsvp() публичный Метод

RSVPs the current user to this event.
public rsvp ( integer $eid, string $rsvp ) : boolean
$eid integer event id
$rsvp string 'attending', 'maybe', or 'declined'
Результат boolean