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
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
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