PHP 클래스 Kronolith_FreeBusy, horde

저자: Chuck Hagenbuch ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
generate ( string | array $calendars, integer $startstamp = null, integer $endstamp = null, boolean $returnObj = false, string $user = null ) : string Generates the free/busy text for $calendars.
get ( string $email, boolean $json = false ) : Horde_Icalendar_Vfreebusy | object Retrieves the free/busy information for a given email address, if any information is available.
getForUser ( string $user, array $opts = [] ) : Horde_Icalendar_Vfreebusy | object Retrieves the free/busy information for a given user.
getUrl ( string $email ) : mixed Searches address books for the freebusy URL for a given email address.
toJson ( Horde_Icalendar_Vfreebusy $fb ) : object Converts free/busy data to a simple object suitable to be transferred as json.

메소드 상세

generate() 공개 정적인 메소드

Generates the free/busy text for $calendars.
public static generate ( string | array $calendars, integer $startstamp = null, integer $endstamp = null, boolean $returnObj = false, string $user = null ) : string
$calendars string | array The calendar to view free/busy slots for.
$startstamp integer The start of the time period to retrieve.
$endstamp integer The end of the time period to retrieve.
$returnObj boolean Default false. Return a vFreebusy object instead of text.
$user string Set organizer to this user.
리턴 string The free/busy text.

get() 공개 정적인 메소드

Retrieves the free/busy information for a given email address, if any information is available.
public static get ( string $email, boolean $json = false ) : Horde_Icalendar_Vfreebusy | object
$email string The email address to look for.
$json boolean Whether to return the free/busy data as a simple object suitable to be transferred as json.
리턴 Horde_Icalendar_Vfreebusy | object Free/busy component.

getForUser() 공개 정적인 메소드

Retrieves the free/busy information for a given user.
public static getForUser ( string $user, array $opts = [] ) : Horde_Icalendar_Vfreebusy | object
$user string The user to look for.
$opts array Options: - json: (boolean) Whether to return the free/busy data as a simple object suitable to be transferred as json. DEFAULT: false - start: (integer) The start of the time period to retrieve. DEFAULT: now - end: (integer) The end of the time period to retrieve. DEFAULT: now + freebusy_days pref
리턴 Horde_Icalendar_Vfreebusy | object Free/busy component.

getUrl() 공개 정적인 메소드

Searches address books for the freebusy URL for a given email address.
public static getUrl ( string $email ) : mixed
$email string The email address to look for.
리턴 mixed The url on success or false on failure.

toJson() 공개 정적인 메소드

Converts free/busy data to a simple object suitable to be transferred as json.
public static toJson ( Horde_Icalendar_Vfreebusy $fb ) : object
$fb Horde_Icalendar_Vfreebusy A Free/busy component.
리턴 object A simple object representation.