Methods summary
public static
string
|
#
generate( string|array $calendars, integer $startstamp = null, integer $endstamp = null, boolean $returnObj = false, string $user = null )
Generates the free/busy text for $calendars. Cache it for at least an
hour, as well.
Generates the free/busy text for $calendars. Cache it for at least an
hour, as well.
Parameters
- $calendars
- The calendar to view free/busy slots for.
- $startstamp
- The start of the time period to retrieve.
- $endstamp
- The end of the time period to retrieve.
- $returnObj
- <p>Default false. Return a vFreebusy object
instead of text.</p>
- $user
- Set organizer to this user.
Returns
string The free/busy text.
Throws
Horde_Exception
|
public static
Horde_Icalendar_Vfreebusy
|
#
get( string $email, boolean $json = false )
Retrieves the free/busy information for a given email address, if any
information is available.
Retrieves the free/busy information for a given email address, if any
information is available.
Parameters
- $email
- The email address to look for.
- $json
- <p>Whether to return the free/busy data as a simple
object suitable to be transferred as json.</p>
Returns
Horde_Icalendar_Vfreebusy Free/busy component.
Throws
|
public static
mixed
|
#
getUrl( string $email )
Searches address books for the freebusy URL for a given email address.
Searches address books for the freebusy URL for a given email address.
Parameters
- $email
- The email address to look for.
Returns
mixed The url on success or false on failure.
|
public
object
|
#
toJson( Horde_Icalendar_Vfreebusy $fb )
Converts free/busy data to a simple object suitable to be transferred
as json.
Converts free/busy data to a simple object suitable to be transferred
as json.
Parameters
- $fb
- A Free/busy component.
Returns
object A simple object representation.
|