RepetitionInterface
interface RepetitionInterface implements JsonSerializable (View source)
Constants
REPEAT_NONE |
Repeat constants. |
REPEAT_DAILY |
|
REPEAT_WEEKLY |
|
REPEAT_MONTHLY |
|
MONTHLY_REPEAT_WEEKLY |
Monthly repeat constants. |
MONTHLY_REPEAT_MONTHLY |
|
MONTHLY_REPEAT_LAST_WEEKDAY |
|
Methods
No description
The ID of this repetition, null for unsaved.
Returns the start date/time as a timestamp
Set the start date.
Set the end date.
Toggle whether start_date
is all day.
Toggle whether end_date
is all day.
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
No description
No description
Get all active time slots that start within two time periods.
Details
getTimezone()
No description
setTimezone(DateTimeZone $timezone)
No description
int|string|null
getID()
The ID of this repetition, null for unsaved.
getStartDateTimestamp()
Returns the start date/time as a timestamp
setStartDate($start_date)
Set the start date.
setEndDate($end_date)
Set the end date.
setStartDateAllDay(bool $start_date_all_day)
Toggle whether start_date
is all day.
setEndDateAllDay(bool $end_date_all_day)
Toggle whether end_date
is all day.
setRepeatPeriod($repeat_period)
No description
mixed
setRepeatPeriodWeekDays($repeat_period_week_days)
No description
mixed
setRepeatEveryNum($repeat_every_num)
No description
mixed
setRepeatMonthBy(int $repeat_month_by)
No description
mixed
setRepeatPeriodEnd($repeat_period_end)
No description
mixed
getStartDate()
No description
bool
isStartDateAllDay()
No description
bool
isEndDateAllDay()
No description
mixed
getEndDate()
No description
mixed
repeats()
No description
mixed
getRepeatPeriod()
No description
mixed
getRepeatPeriodWeekDays()
No description
int
getRepeatMonthBy()
No description
int
getRepeatEveryNum()
No description
string
getRepeatPeriodEnd()
No description
mixed
isActive($now = null)
No description
mixed
getTextRepresentation()
No description
array[]
activeRangesBetween(int $start, int $end)
Get all active time slots that start within two time periods.