Property | Type | Description | |
---|---|---|---|
$completions | array | All the dates this recurrence has been marked as completed. | |
$exceptions | array | All the exceptions from recurrence for this event. | |
$recurCount | integer | The number of recurrences. | |
$recurData | integer | Any additional recurrence data. | |
$recurEnd | Horde_Date | The end date of the recurrence interval. | |
$recurInterval | integer | The length of time between recurrences. The time unit depends on the recurrence type. | |
$recurType | integer | The type of recurrence this event follows. RECUR_* constant. | |
$start | Horde_Date | The start time of the event. |
Method | Description | |
---|---|---|
__construct ( Horde_Date $start ) | Constructor. | |
addCompletion ( integer $year, integer $month, integer $mday ) | Adds a completion to a recurring event. | |
addException ( integer $year, integer $month, integer $mday ) | Adds an exception to a recurring event. | |
deleteCompletion ( integer $year, integer $month, integer $mday ) | Deletes a completion from a recurring event. | |
deleteException ( integer $year, integer $month, integer $mday ) | Deletes an exception from a recurring event. | |
fromKolab ( array $hash ) : boolean | Parses the recurrence data from a Kolab hash. | |
fromRRule10 ( string $rrule ) | Parses a vCalendar 1.0 recurrence rule. | |
fromRRule20 ( string $rrule ) | Parses an iCalendar 2.0 recurrence rule. | |
getCompletions ( ) : array | Retrieves all the completions for this event. | |
getExceptions ( ) : array | Retrieves all the exceptions for this event. | |
getRecurCount ( ) : integer | Retrieves the number of recurrences of this event. | |
getRecurEnd ( ) : Horde_Date | Retrieves the end date of the recurrence interval. | |
getRecurInterval ( ) : integer | Retrieves the length of time between recurrences of this event. | |
getRecurName ( ) : string | Returns a description of this event's recurring type. | |
getRecurOnDays ( ) : integer | Returns the days this event recurs on. | |
getRecurStart ( ) : Horde_Date | Retrieves the start date of the recurrence interval. | |
getRecurType ( ) : integer | Returns recurrence type of this event. | |
hasActiveRecurrence ( ) : boolean | Returns whether this event has any date that matches the recurrence rules and is not an exception. | |
hasCompletion ( integer $year, integer $month, integer $mday ) : boolean | Checks if a completion exists for a given reccurence of an event. | |
hasException ( integer $year, integer $month, integer $mday ) : boolean | Checks if an exception exists for a given reccurence of an event. | |
hasRecurCount ( ) : boolean | Returns whether this event has a recurrence with a fixed count. | |
hasRecurEnd ( ) : boolean | Returns whether this event has a recurrence end. | |
hasRecurType ( integer $recurrence ) : boolean | Returns whether this event has a specific recurrence type. | |
isEqual ( Horde_Date_Recurrence $recurrence ) : boolean | Return whether or not this object is equal to another recurrence object. | |
nextActiveRecurrence ( Horde_Date $afterDate ) : Horde_Date | boolean | Returns the next active recurrence. | |
nextRecurrence ( Horde_Date | string $after ) : Horde_Date | boolean | Finds the next recurrence of this event that's after $afterDate. | |
recurOnDay ( integer $dayMask ) : boolean | Checks if this event recurs on a given day of the week. | |
reset ( ) | Resets the class properties. | |
setRecurCount ( integer $count ) | Sets the number of recurrences of this event. | |
setRecurEnd ( Horde_Date $end ) | Sets the end date of the recurrence interval. | |
setRecurInterval ( integer $interval ) | Sets the length of time between recurrences of this event. | |
setRecurOnDay ( integer $dayMask ) | Specifies the days this event recurs on. | |
setRecurStart ( Horde_Date $start ) | Sets the start date of the recurrence interval. | |
setRecurType ( integer $recurrence ) | Sets a recurrence type for this event. | |
toJson ( ) : object | Returns a simple object suitable for json transport representing this object. | |
toKolab ( ) : array | Export this object into a Kolab hash. | |
toRRule10 ( Horde_Icalendar $calendar ) : string | Creates a vCalendar 1.0 recurrence rule. | |
toRRule20 ( Horde_Icalendar $calendar ) : string | Creates an iCalendar 2.0 recurrence rule. | |
toString ( $date_format ) : string | Output a human readable description of the recurrence rule. |
Method | Description | |
---|---|---|
_formatExceptionDate ( string $date, string $format ) : string | Returns a correcty formatted exception date for recurring events. |
public __construct ( Horde_Date $start ) | ||
$start | Horde_Date | Start of the recurring event. |
public fromRRule10 ( string $rrule ) | ||
$rrule | string | A vCalendar 1.0 conform RRULE value. |
public fromRRule20 ( string $rrule ) | ||
$rrule | string | An iCalendar 2.0 conform RRULE value. |
public getCompletions ( ) : array | ||
return | array | Array containing the dates of all the completions in YYYYMMDD form. |
public getExceptions ( ) : array | ||
return | array | Array containing the dates of all the exceptions in YYYYMMDD form. |
public getRecurCount ( ) : integer | ||
return | integer | The number recurrences. |
public getRecurEnd ( ) : Horde_Date | ||
return | Horde_Date | The recurrence end. |
public getRecurInterval ( ) : integer | ||
return | integer | The number of seconds between recurrences. |
public getRecurName ( ) : string | ||
return | string | Human readable recurring type. |
public getRecurOnDays ( ) : integer | ||
return | integer | A mask consisting of Horde_Date::MASK_* constants specifying the day(s) this event recurs on. |
public getRecurStart ( ) : Horde_Date | ||
return | Horde_Date | The recurrence start. |
public getRecurType ( ) : integer | ||
return | integer | A RECUR_* constant. |
public hasActiveRecurrence ( ) : boolean | ||
return | boolean | True if an active recurrence exists. |
public hasRecurCount ( ) : boolean | ||
return | boolean | True if this recurrence has a fixed count. |
public hasRecurEnd ( ) : boolean | ||
return | boolean | True if this recurrence ends. |
public hasRecurType ( integer $recurrence ) : boolean | ||
$recurrence | integer | RECUR_* constant of the recurrence type to check for. |
return | boolean | True if the event has the specified recurrence type. |
public nextActiveRecurrence ( Horde_Date $afterDate ) : Horde_Date | boolean | ||
$afterDate | Horde_Date | Return events after this date. |
return | Horde_Date | boolean | The date of the next active recurrence or false if the event has no active recurrence after $afterDate. |
public nextRecurrence ( Horde_Date | string $after ) : Horde_Date | boolean | ||
$after | Horde_Date | string | Return events after this date. |
return | Horde_Date | boolean | The date of the next recurrence or false if the event does not recur after $afterDate. |
public recurOnDay ( integer $dayMask ) : boolean | ||
$dayMask | integer | A mask consisting of Horde_Date::MASK_* constants specifying the day(s) to check. |
return | boolean | True if this event recurs on the given day(s). |
public setRecurCount ( integer $count ) | ||
$count | integer | The number of recurrences. |
public setRecurEnd ( Horde_Date $end ) | ||
$end | Horde_Date | The recurrence end. |
public setRecurInterval ( integer $interval ) | ||
$interval | integer | The time between recurrences. |
public setRecurOnDay ( integer $dayMask ) | ||
$dayMask | integer | A mask consisting of Horde_Date::MASK_* constants specifying the day(s) to recur on. |
public setRecurStart ( Horde_Date $start ) | ||
$start | Horde_Date | The recurrence start. |
public setRecurType ( integer $recurrence ) | ||
$recurrence | integer | A RECUR_* constant. |
public array $completions | ||
return | array |
public array $exceptions | ||
return | array |
public Horde_Date $recurEnd | ||
return | Horde_Date |
public int $recurInterval | ||
return | integer |
public int $recurType | ||
return | integer |