This function may throw away data in case you add a period with a start
date that already exists. The longer of the two periods will be chosen
(and all information associated with the shorter one will be removed).
public addBusyPeriod ( string $type, integer $start, integer $end = null, integer $duration = null, array $extra = [] ) | ||
$type | string | The type of the period. Either 'FREE' or 'BUSY'; only 'BUSY' supported at the moment. |
$start | integer | The start timestamp of the period. |
$end | integer | The end timestamp of the period. |
$duration | integer | The duration of the period. If specified, the $end parameter will be ignored. |
$extra | array | Additional parameters for this busy period. |