Property | Type | Description | |
---|---|---|---|
$endDate | |||
$endTime | |||
$recurring | |||
$spawns | |||
$startDate | |||
$startTime |
Method | Description | |
---|---|---|
__clone ( ) | clears spawns | |
__construct ( mixed $format, string $recurring = null ) | ||
getEndDate ( ) : DateTime | ||
getEndTime ( ) : DateTime | ||
getRecurring ( ) | Get if date object is recurring | |
getSpawns ( ) | Get other spawned objects from a contruct | |
getStartDate ( ) : DateTime | ||
getStartTime ( ) : DateTime | ||
setEndDate ( string $value ) | ||
setEndTime ( string $value ) | ||
setRecurring ( string $value ) | Set recurring flag | |
setStartDate ( string $value ) | ||
setStartTime ( string $value ) |
public __construct ( mixed $format, string $recurring = null ) | ||
$format | mixed | array of start_date, end_date, etc. keys array with 1 element: start_date => end_date strings - Date and Time formats: http://php.net/manual/en/datetime.formats.php string formatted like above and start separated by end with a - (dash) padded with spaces also in case of array you can add recurring => [daily|weekly|etc.] |
$recurring | string |
public setRecurring ( string $value ) | ||
$value | string | daily|weekly|monthly|yearly |