134 : void
135 {
136
137 $object_ids = [];
141 $obj_id = $cat->getObjId();
142
143 $this->
logger->debug(
'Handling event: ' . $event[
'event']->getPresentationTitle());
144
145 if (
147 $cat->getObjType() == 'exc' ||
148 !in_array($obj_id, $object_ids)
149 ) {
150 $this->
logger->debug(
'New obj_id..');
151 $object_ids[] = $obj_id;
152
154
155 if ($event['fullday']) {
157 } else {
159
162
163 if ($start_time != $end_time) {
164 $start_time .= (' - ' . $end_time);
165 }
166 $folder_app = $start_time . ' ' .
168 }
169
170 $this->
logger->debug(
"collecting files...event title = " . $folder_app);
172 $this->
logger->debug(
'Current file handler: ' . get_class($file_handler));
173
174 if ($files = $file_handler->getFiles()) {
175 $this->has_files = true;
176 }
177
178 $this->
logger->dump($files);
179 foreach ($files as $idx => $file_property) {
180 $this->
logger->debug(
'Filename:' . $file_property->getFileName());
181 $ressource = '';
182 $target = $folder_date . '/' . $folder_app . '/' . $file_property->getFileName();
183 if (!is_null($file_property->getFileRId())) {
184 $this->
logger->debug(
'Ressource Id: ' . $file_property->getFileRId());
185 $ressource = $file_property->getFileRId();
187 } else {
188 $this->
logger->debug(
'Absolute Path: ' . $file_property->getAbsolutePath());
189 $ressource = $file_property->getAbsolutePath();
191 }
193 'Added new copy definition: ' .
194 $folder_date . '/' . $folder_app . '/' . $file_property->getFileName() . ' => ' .
195 $ressource
196 );
197 }
198 } else {
199 $this->
logger->info(
'Ignoring obj_id: ' . $obj_id .
' already processed.');
200 }
201 }
202 }
static getInstance(array $a_appointment)
static getInstanceByCategoryId(int $a_cat_id)
addCopyDefinition(string $a_path, string $a_target)
Add copy definition.
addCopyDefinitionRId(string $a_ressource_id, string $a_target)
@classDescription Date and time handling
static getASCIIFilename(string $a_filename)