| 1 | <?php |
||
| 21 | class iCalFormat extends AbstractFormat |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string the event summary |
||
| 25 | */ |
||
| 26 | public $summary; |
||
| 27 | /** |
||
| 28 | * @var integer the unix timestamp of the start date of the event |
||
| 29 | */ |
||
| 30 | public $startTimestamp; |
||
| 31 | /** |
||
| 32 | * @var integer the unix timestamp of the end date of the event |
||
| 33 | */ |
||
| 34 | public $endTimestamp; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @inheritdoc |
||
| 38 | */ |
||
| 39 | public function getText(): string |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Converts a unix timestamp to iCal format. Timezones are assumed to be included into the timestamp. |
||
| 53 | * |
||
| 54 | * @param int $value the unix timestamp to convert |
||
| 55 | * |
||
| 56 | * @return bool|string the formatted date |
||
| 57 | */ |
||
| 58 | protected function unixToiCal($value) |
||
| 62 | } |
||
| 63 |