1 | <?php |
||
20 | class ICalendarService |
||
21 | { |
||
22 | /** |
||
23 | * The object manager |
||
24 | * |
||
25 | * @var \TYPO3\CMS\Extbase\Object\ObjectManager |
||
26 | */ |
||
27 | protected $objectManager; |
||
28 | |||
29 | /** |
||
30 | * The configuration manager |
||
31 | * |
||
32 | * @var \TYPO3\CMS\Extbase\Configuration\ConfigurationManager |
||
33 | */ |
||
34 | protected $configurationManager; |
||
35 | |||
36 | /** |
||
37 | * FluidStandaloneService |
||
38 | * |
||
39 | * @var \DERHANSEN\SfEventMgt\Service\FluidStandaloneService |
||
40 | */ |
||
41 | protected $fluidStandaloneService; |
||
42 | |||
43 | /** |
||
44 | * DI for $configurationManager |
||
45 | * |
||
46 | * @param \TYPO3\CMS\Extbase\Configuration\ConfigurationManager $configurationManager |
||
47 | */ |
||
48 | public function injectConfigurationManager( |
||
53 | |||
54 | /** |
||
55 | * DI for $fluidStandaloneService |
||
56 | * |
||
57 | * @param FluidStandaloneService $fluidStandaloneService |
||
58 | */ |
||
59 | public function injectFluidStandaloneService( |
||
64 | |||
65 | /** |
||
66 | * DI for $objectManager |
||
67 | * |
||
68 | 4 | * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager |
|
69 | */ |
||
70 | 4 | public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) |
|
74 | 2 | ||
75 | 2 | /** |
|
76 | 2 | * Initiates the ICS download for the given event |
|
77 | 2 | * |
|
78 | 2 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event The event |
|
79 | 2 | * @throws Exception Exception |
|
80 | * @return void |
||
81 | */ |
||
82 | public function downloadiCalendarFile(\DERHANSEN\SfEventMgt\Domain\Model\Event $event) |
||
93 | 2 | ||
94 | 2 | /** |
|
95 | 2 | * Returns the rendered iCalendar entry for the given event |
|
96 | * according to RFC 2445 |
||
97 | 2 | * |
|
98 | 2 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Event $event The event |
|
99 | 2 | * |
|
100 | 2 | * @return string |
|
101 | 2 | */ |
|
102 | 2 | public function getiCalendarContent(\DERHANSEN\SfEventMgt\Domain\Model\Event $event) |
|
125 | } |
||
126 |