PHP Interface RRule\RRuleInterface

Inheritance: extends Iterator, extends ArrayAccess, extends Countable
Afficher le fichier Open project: rlanvin/php-rrule

Méthodes publiques

Méthode Description
getOccurrences ( ) : array Return all the occurrences in an array of \DateTime.
getOccurrencesBetween ( mixed $begin, mixed $end ) : array Return all the ocurrences after a date, before a date, or between two dates.
isFinite ( ) : boolean Return true if the rrule has an end condition, false otherwise
isInfinite ( ) : boolean Return true if the rrule has no end condition (infite)
occursAt ( mixed $date ) : boolean Return true if $date is an occurrence.

Method Details

getOccurrences() public méthode

Return all the occurrences in an array of \DateTime.
public getOccurrences ( ) : array
Résultat array An array of \DateTime objects

getOccurrencesBetween() public méthode

Return all the ocurrences after a date, before a date, or between two dates.
public getOccurrencesBetween ( mixed $begin, mixed $end ) : array
$begin mixed Can be null to return all occurrences before $end
$end mixed Can be null to return all occurrences after $begin
Résultat array An array of \DateTime objects

isFinite() public méthode

Return true if the rrule has an end condition, false otherwise
public isFinite ( ) : boolean
Résultat boolean

isInfinite() public méthode

Return true if the rrule has no end condition (infite)
public isInfinite ( ) : boolean
Résultat boolean

occursAt() public méthode

Return true if $date is an occurrence.
public occursAt ( mixed $date ) : boolean
$date mixed
Résultat boolean