1 | <?php |
||
24 | class ICalendarService |
||
25 | { |
||
26 | |||
27 | /** |
||
28 | * The object manager |
||
29 | * |
||
30 | * @var \TYPO3\CMS\Extbase\Object\ObjectManager |
||
31 | * @inject |
||
32 | */ |
||
33 | protected $objectManager; |
||
34 | |||
35 | /** |
||
36 | * The configuration manager |
||
37 | * |
||
38 | * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManager |
||
39 | * @inject |
||
40 | */ |
||
41 | protected $configurationManager; |
||
42 | |||
43 | /** |
||
44 | * ResourceFactory |
||
45 | * |
||
46 | * @var \TYPO3\CMS\Core\Resource\ResourceFactory |
||
47 | * @inject |
||
48 | */ |
||
49 | protected $resourceFactory = null; |
||
50 | |||
51 | /** |
||
52 | * FluidStandaloneService |
||
53 | * |
||
54 | * @var \DERHANSEN\SfEventMgt\Service\FluidStandaloneService |
||
55 | * @inject |
||
56 | */ |
||
57 | protected $fluidStandaloneService; |
||
58 | |||
59 | /** |
||
60 | * Initiates the ICS download for the given event |
||
61 | * |
||
62 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event The event |
||
63 | * |
||
64 | * @throws \RuntimeException Exception |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | 2 | public function downloadiCalendarFile(\DERHANSEN\SfEventMgt\Domain\Model\Event $event) |
|
80 | |||
81 | /** |
||
82 | * Returns the rendered iCalendar entry for the given event |
||
83 | * according to RFC 2445 |
||
84 | * |
||
85 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event The event |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | 1 | public function getiCalendarContent(\DERHANSEN\SfEventMgt\Domain\Model\Event $event) |
|
110 | } |