1 | <?php |
||
21 | class EventImport |
||
22 | { |
||
23 | /** |
||
24 | * Event repository. |
||
25 | * |
||
26 | * @var \HDNET\Calendarize\Domain\Repository\EventRepository |
||
27 | */ |
||
28 | protected $eventRepository; |
||
29 | |||
30 | public function injectEventRepository(EventRepository $eventRepository) |
||
34 | |||
35 | /** |
||
36 | * Run the import. |
||
37 | * |
||
38 | * @param array $event |
||
39 | * @param ImportCommandController $commandController |
||
40 | * @param int $pid |
||
41 | * @param bool $handled |
||
42 | * |
||
43 | * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | public function importCommand(array $event, $commandController, $pid, $handled) |
||
77 | |||
78 | /** |
||
79 | * Get the configuration. |
||
80 | * |
||
81 | * @param int $pid |
||
82 | * @param \DateTime $startDate |
||
83 | * @param \DateTime $endDate |
||
84 | * |
||
85 | * @return Configuration |
||
86 | */ |
||
87 | protected function getConfiguration($pid, \DateTime $startDate, \DateTime $endDate) |
||
109 | |||
110 | /** |
||
111 | * Get the right event object (or a new one). |
||
112 | * |
||
113 | * @param string $importId |
||
114 | * |
||
115 | * @return Event |
||
116 | */ |
||
117 | protected function getEvent($importId) |
||
127 | |||
128 | /** |
||
129 | * Store to the DB. |
||
130 | */ |
||
131 | protected function persist() |
||
136 | |||
137 | /** |
||
138 | * Replace new lines. |
||
139 | * |
||
140 | * @param string $string |
||
141 | * |
||
142 | * @return string |
||
143 | */ |
||
144 | protected function nl2br($string) |
||
150 | } |
||
151 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.