Stud.IP
6.0
|
Public Member Functions | |
getAllEventData () | |
getEventDataForTimeRange (\DateTime $begin, \DateTime $end) | |
getFilteredEventData ( $user_id=null, $range_id=null, $range_type=null, $begin=null, $end=null) | |
This interface defines methods that can be implemented by classes that can provide calendar event data in a standardised format. The methods are meant to be called on a "per-object base", meaning that filtering of the event sources has to be done before calling methods of this interface.
getAllEventData | ( | ) |
Returns all event data this event source can provide.
Implemented in ResourceRequest, and ResourceBooking.
getEventDataForTimeRange | ( | \DateTime | $begin, |
\DateTime | $end | ||
) |
getFilteredEventData | ( | $user_id = null , |
|
$range_id = null , |
|||
$range_type = null , |
|||
$begin = null , |
|||
$end = null |
|||
) |
Allows a filtered output of event data based on a specified user, a specified range-ID and range type (must be supported by the Context class) or a specified time range. If no filters are applied the result should be the same as if the getAllEventData method from this interface is called.
string | $user_id | The user for whom the event data shall be retrieved. Depending on the implementation, this parameter might be necessary to check permissions for event objects. |
string | $range_id | An optional range-ID that may be necessary for an implementation to check for permissions. |
string | $range_type | An optional range type that may be necessary for an implementation to check for permissions. |
DateTime | int | string | $begin | The begin date as DateTime object or unix timestamp. |
DateTime | int | string | $end | The end date as DateTime object or unix timestamp. |
Implemented in ResourceRequest, and ResourceBooking.