Interface RepetitionInterface

Indirect known implementers

Concrete\Core\Permission\Duration

Methods summary

public integer|string|null
# getID( )

The ID of this repetition, null for unsaved

public
# setStartDate( $start_date )

Set the start date

public
# setEndDate( $end_date )

Set the end date

public
# setStartDateAllDay( boolean $start_date_all_day )

Toggle whether start_date is all day

public
# setEndDateAllDay( boolean $end_date_all_day )

Toggle whether end_date is all day

public
# setRepeatPeriod( $repeat_period )
public mixed
# setRepeatPeriodWeekDays( $repeat_period_week_days )
public mixed
# setRepeatEveryNum( $repeat_every_num )
public mixed
# setRepeatMonthBy( integer $repeat_month_by )
public mixed
# setRepeatPeriodEnd( $repeat_period_end )
public mixed
# getStartDate( )
public boolean
# isStartDateAllDay( )
public boolean
# isEndDateAllDay( )
public mixed
# getEndDate( )
public mixed
# repeats( )
public mixed
# getRepeatPeriod( )
public mixed
# getRepeatPeriodWeekDays( )
public integer
# getRepeatMonthBy( )
public integer
# getRepeatEveryNum( )
public string
# getRepeatPeriodEnd( )
public mixed
# isActive( $now = null )
public mixed
# getTextRepresentation( )
public boolean
# save( )
public array[]
# activeRangesBetween( integer $start, integer $end )

Get all active time slots that start within two time periods

Constants summary

integer REPEAT_NONE

Repeat constants

# 0
integer REPEAT_DAILY
# 1
integer REPEAT_WEEKLY
# 2
integer REPEAT_MONTHLY
# 4
integer MONTHLY_REPEAT_WEEKLY

Monthly repeat constants

# 1
integer MONTHLY_REPEAT_MONTHLY
# 2
integer MONTHLY_REPEAT_LAST_WEEKDAY
# 3