AbstractRepetition
abstract class AbstractRepetition implements RepetitionInterface (View source)
Abstract repetition class This class is used to define and match against various time windows.
\@package Concrete\Core\Foundation\Repetition
Properties
protected string | $startDate | ||
protected string | $endDate | ||
protected bool | $startDateAllDay | ||
protected bool | $endDateAllDay | ||
protected int | $repeatPeriod | ||
protected int[] | $repeatPeriodWeekDays | ||
protected int | $repeatEveryNum | ||
protected int | $repeatMonthBy | ||
protected int | $repeatMonthLastWeekday | ||
protected string | $repeatPeriodEnd | ||
protected DateTimeZone | $timezone |
Methods
AbstractRepetition constructor.
Returns the start date/time as a timestamp
No description
No description
Toggle whether start_date
is all day.
No description
Toggle whether end_date
is all day.
No description
No description
No description
No description
No description
No description
No description
Set the start date.
No description
Set the end date.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Returns the difference between two DateTime objects without considering DST changes.
No description
Details
__construct($timezone = null)
AbstractRepetition constructor.
setTimezone(DateTimeZone $timezone)
No description
getStartDateTimestamp()
Returns the start date/time as a timestamp
getEndDateTimestamp()
No description
bool
isStartDateAllDay()
No description
setStartDateAllDay(bool $start_date_all_day)
Toggle whether start_date
is all day.
bool
isEndDateAllDay()
No description
setEndDateAllDay(bool $end_date_all_day)
Toggle whether end_date
is all day.
mixed
isActive($now = null)
No description
getTimezone()
No description
array|null
getActiveRange($now = null)
No description
mixed
repeats()
No description
mixed
getRepeatPeriod()
No description
setRepeatPeriod($repeat_period)
No description
mixed
getStartDate()
No description
setStartDate($start_date)
Set the start date.
mixed
getEndDate()
No description
setEndDate($end_date)
Set the end date.
protected
rangeFromTime($start, $end = null)
No description
string
getRepeatPeriodEnd()
No description
mixed
setRepeatPeriodEnd($repeat_period_end)
No description
int
getRepeatEveryNum()
No description
mixed
setRepeatEveryNum($repeat_every_num)
No description
mixed
getRepeatPeriodWeekDays()
No description
mixed
setRepeatPeriodWeekDays($repeat_period_week_days)
No description
int
getRepeatMonthBy()
No description
mixed
setRepeatMonthBy(int $repeat_month_by)
No description
mixed
getTextRepresentation()
No description
__toString()
No description
getRepeatPeriodEveryNum()
deprecated
deprecated
This method is deprecated, use getRepeatEveryNum
.
int
getRepeatMonthLastWeekday()
No description
setRepeatMonthLastWeekday(int $repeatMonthLastWeekday)
No description
array[]
activeRangesBetween(int $start, int $end)
No description
protected
getDayString($day)
No description
protected DateInterval
dateDiffNoDST(DateTime $from, DateTime $to)
Returns the difference between two DateTime objects without considering DST changes.
jsonSerialize()
No description