RECUR_NONE
RECUR_NONE
No Recurrence
The Horde_Date_Recurrence class implements algorithms for calculating recurrences of events, including several recurrence types, intervals, exceptions, and conversion from and to vCalendar and iCalendar recurrence rules.
All methods expecting dates as parameters accept all values that the Horde_Date constructor accepts, i.e. a timestamp, another Horde_Date object, an ISO time string or a hash.
$start : \Horde_Date
The start time of the event.
$recurEnd : \Horde_Date
The end date of the recurrence interval.
__construct(\Horde_Date $start)
Constructor.
\Horde_Date | $start | Start of the recurring event. |
setRecurStart(\Horde_Date $start)
Sets the start date of the recurrence interval.
\Horde_Date | $start | The recurrence start. |
getRecurStart() : \Horde_Date
Retrieves the start date of the recurrence interval.
The recurrence start.
setRecurEnd(\Horde_Date $end)
Sets the end date of the recurrence interval.
\Horde_Date | $end | The recurrence end. |
getRecurEnd() : \Horde_Date
Retrieves the end date of the recurrence interval.
The recurrence end.
nextRecurrence(\Horde_Date|string $after) : \Horde_Date|boolean
Finds the next recurrence of this event that's after $afterDate.
\Horde_Date|string | $after | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.
nextActiveRecurrence(\Horde_Date $afterDate) : \Horde_Date|boolean
Returns the next active recurrence.
\Horde_Date | $afterDate | Return events after this date. |
The date of the next active recurrence or false if the event has no active recurrence after $afterDate.
hasException(integer $year, integer $month, integer $mday) : boolean
Checks if an exception exists for a given reccurence of an event.
integer | $year | The year of the reucrance. |
integer | $month | The month of the reucrance. |
integer | $mday | The day of the month of the reucrance. |
True if an exception exists for the given date.
hasCompletion(integer $year, integer $month, integer $mday) : boolean
Checks if a completion exists for a given reccurence of an event.
integer | $year | The year of the recurrance. |
integer | $month | The month of the recurrance. |
integer | $mday | The day of the month of the recurrance. |
True if a completion exists for the given date.
isEqual(\Horde_Date_Recurrence $recurrence) : boolean
Return whether or not this object is equal to another recurrence object.
The objects are considered equal if the recurrence rules are the same. This does not take any exceptions into account.
\Horde_Date_Recurrence | $recurrence | The recurrence object to check equality to. |
True if the recurrence rules are the same.
_nextDaily(\Horde_Date|string $after) : \Horde_Date|boolean
Finds the next daily recurrence of this event that's after $afterDate.
\Horde_Date|string | $after | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.
_nextWeekly(\Horde_Date|string $after) : \Horde_Date|boolean
Finds the next weekly recurrence of this event that's after $afterDate.
\Horde_Date|string | $after | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.
_nextMonthlyDate(\Horde_Date|string $after) : \Horde_Date|boolean
Finds the next monthly recurrence on the same date of this event that's after $afterDate.
\Horde_Date|string | $after | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.
_nextMonthlyWeekday(\Horde_Date|string $after) : \Horde_Date|boolean
Finds the next monthly recurrence on the same weekday of this event that's after $afterDate.
\Horde_Date|string | $after | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.
_nextYearlyDate(\Horde_Date|string $after) : \Horde_Date|boolean
Finds the next yearly recurrence on the same date of this event that's after $afterDate.
\Horde_Date|string | $after | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.
_nextYearlyDay(\Horde_Date|string $after) : \Horde_Date|boolean
Finds the next yearly recurrence on the same day of the year of this event that's after $afterDate.
\Horde_Date|string | $after | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.
_nextYearlyWeekday(\Horde_Date|string $after) : \Horde_Date|boolean
Finds the next yearly recurrence on the same weekday of this event that's after $afterDate.
\Horde_Date|string | $after | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.