Class Horde_Date_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.
Category: Horde
Author: Jan Schneider jan@horde.org
Located at Horde/Date/Recurrence.php
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
integer
|
|
public
boolean
|
|
public
|
|
public
integer
|
|
public
string
|
|
public
|
|
public
integer
|
|
public
|
|
public
integer
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
#
nextRecurrence(
Finds the next recurrence of this event that's after $afterDate. |
public
boolean
|
#
hasActiveRecurrence( )
Returns whether this event has any date that matches the recurrence rules and is not an exception. |
public
|
|
public
|
#
addException( integer $year, integer $month, integer $mday )
Adds an exception to a recurring event. |
public
|
#
deleteException( integer $year, integer $month, integer $mday )
Deletes an exception from a recurring event. |
public
boolean
|
#
hasException( integer $year, integer $month, integer $mday )
Checks if an exception exists for a given reccurence of an event. |
public
array
|
|
public
|
#
addCompletion( integer $year, integer $month, integer $mday )
Adds a completion to a recurring event. |
public
|
#
deleteCompletion( integer $year, integer $month, integer $mday )
Deletes a completion from a recurring event. |
public
boolean
|
#
hasCompletion( integer $year, integer $month, integer $mday )
Checks if a completion exists for a given reccurence of an event. |
public
array
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
boolean
|
|
public
array
|
|
public
object
|
integer |
RECUR_NONE
No Recurrence * |
#
0
|
integer |
RECUR_DAILY
Recurs daily. |
#
1
|
integer |
RECUR_WEEKLY
Recurs weekly. |
#
2
|
integer |
RECUR_MONTHLY_DATE
Recurs monthly on the same date. |
#
3
|
integer |
RECUR_MONTHLY_WEEKDAY
Recurs monthly on the same week day. |
#
4
|
integer |
RECUR_YEARLY_DATE
Recurs yearly on the same date. |
#
5
|
integer |
RECUR_YEARLY_DAY
Recurs yearly on the same day of the year. |
#
6
|
integer |
RECUR_YEARLY_WEEKDAY
Recurs yearly on the same week day. |
#
7
|
public
|
$start
The start time of the event. |
|
public
|
$recurEnd
The end date of the recurrence interval. |
#
null
|
public
integer
|
$recurCount
The number of recurrences. |
#
null
|
public
integer
|
$recurType
The type of recurrence this event follows. RECUR_* constant. |
|
public
integer
|
$recurInterval
The length of time between recurrences. The time unit depends on the recurrence type. |
#
1
|
public
integer
|
$recurData
Any additional recurrence data. |
#
null
|
public
array
|
$exceptions
All the exceptions from recurrence for this event. |
#
array()
|
public
array
|
$completions
All the dates this recurrence has been marked as completed. |
#
array()
|