Remind extends BaseProperty
Table of Contents
Constants
- UNIT_DATES = 'date'
- UNIT_DAY_BEFORE = 'daybefore'
- UNIT_DAYS = 'day'
- UNIT_HOURS = 'hour'
- UNIT_MINUTES = 'minutes'
- UNIT_MONTHS = 'months'
- UNIT_SECONDS = 'seconds'
- UNIT_WEEKS = 'weeks'
- UNIT_YEARS = 'years'
Methods
- __construct() : mixed
- __toString() : string
- calculateDayBeforeToMinute() : int
- getDaysBefore() : int|null
- getEventStart() : Date|null
- getFields() : array<string|int, mixed>
- getMethod() : string
- getRank() : int
- getSpecificTime() : Date
- getTime() : int|null
- getTimeBeforeStartInMinutes() : int
- getTimeOffset() : int
- getUnits() : string|null
- isBeforeEventStart() : bool
- isSimpleType() : bool
- setDaysBefore() : Remind
- setEventStart() : Remind
- setSpecificTime() : Remind
- setTimeBeforeEvent() : $this
- toString() : string
Constants
UNIT_DATES
public
mixed
UNIT_DATES
= 'date'
UNIT_DAY_BEFORE
public
mixed
UNIT_DAY_BEFORE
= 'daybefore'
UNIT_DAYS
public
mixed
UNIT_DAYS
= 'day'
UNIT_HOURS
public
mixed
UNIT_HOURS
= 'hour'
UNIT_MINUTES
public
mixed
UNIT_MINUTES
= 'minutes'
UNIT_MONTHS
public
mixed
UNIT_MONTHS
= 'months'
UNIT_SECONDS
public
mixed
UNIT_SECONDS
= 'seconds'
UNIT_WEEKS
public
mixed
UNIT_WEEKS
= 'weeks'
UNIT_YEARS
public
mixed
UNIT_YEARS
= 'years'
Methods
__construct()
public
__construct([string $method = 'popup' ]) : mixed
Parameters
- $method : string = 'popup'
__toString()
public
__toString() : string
Return values
stringcalculateDayBeforeToMinute()
public
static calculateDayBeforeToMinute(int $dayBefore, int $minute) : int
Parameters
- $dayBefore : int
- $minute : int
Return values
intgetDaysBefore()
public
getDaysBefore() : int|null
Return values
int|nullgetEventStart()
public
getEventStart() : Date|null
Return values
Date|null —Clone of date event start
getFields()
public
getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>getMethod()
public
getMethod() : string
Return values
stringgetRank()
public
getRank() : int
Return values
intgetSpecificTime()
public
getSpecificTime() : Date
Tags
Return values
DategetTime()
public
getTime() : int|null
Return values
int|nullgetTimeBeforeStartInMinutes()
public
getTimeBeforeStartInMinutes() : int
Return values
intgetTimeOffset()
public
getTimeOffset() : int
Tags
Return values
intgetUnits()
public
getUnits() : string|null
Return values
string|nullisBeforeEventStart()
public
isBeforeEventStart() : bool
Return values
boolisSimpleType()
public
isSimpleType() : bool
Return values
boolsetDaysBefore()
public
setDaysBefore(int $daysBefore) : Remind
Parameters
- $daysBefore : int
Return values
RemindsetEventStart()
public
setEventStart(Date $eventStart) : Remind
Parameters
- $eventStart : Date
Return values
RemindsetSpecificTime()
public
setSpecificTime(Date $specificTime) : Remind
Parameters
- $specificTime : Date
Return values
RemindsetTimeBeforeEvent()
public
setTimeBeforeEvent([int $time = 15 ][, string $units = self::UNIT_MINUTES ]) : $this
Parameters
- $time : int = 15
- $units : string = self::UNIT_MINUTES
Return values
$thistoString()
public
toString() : string