BasicRepetition
class BasicRepetition extends AbstractRepetition (View source)
Properties
| protected string | $startDate | from AbstractRepetition | |
| protected string | $endDate | from AbstractRepetition | |
| protected bool | $startDateAllDay | from AbstractRepetition | |
| protected bool | $endDateAllDay | from AbstractRepetition | |
| protected int | $repeatPeriod | from AbstractRepetition | |
| protected int[] | $repeatPeriodWeekDays | from AbstractRepetition | |
| protected int | $repeatEveryNum | from AbstractRepetition | |
| protected int | $repeatMonthBy | from AbstractRepetition | |
| protected int | $repeatMonthLastWeekday | from AbstractRepetition | |
| protected string | $repeatPeriodEnd | from AbstractRepetition | |
| protected DateTimeZone | $timezone | from AbstractRepetition | 
Methods
Toggle whether start_date is all day.
Toggle whether end_date is all day.
Returns the difference between two DateTime objects without considering DST changes.
The ID of this repetition, null for unsaved.
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
        
                            int|string|null
    getID()
        
    
    The ID of this repetition, null for unsaved.