| @@ 272-280 (lines=9) @@ | ||
| 269 | * |
|
| 270 | * @return string |
|
| 271 | */ |
|
| 272 | public function getFeedFilename(FeedTypeInterface $type, $gzip = false) |
|
| 273 | { |
|
| 274 | $path = [ |
|
| 275 | $this->exportDir, |
|
| 276 | sprintf('%s.%s', $type->getName(), ($gzip ? 'xml.gz' : 'xml')), |
|
| 277 | ]; |
|
| 278 | ||
| 279 | return implode(DIRECTORY_SEPARATOR, $path); |
|
| 280 | } |
|
| 281 | ||
| 282 | /** |
|
| 283 | * Returns the location of the feed file to export. This is the location where the actual |
|
| @@ 291-299 (lines=9) @@ | ||
| 288 | * |
|
| 289 | * @return string |
|
| 290 | */ |
|
| 291 | public function getFeedCacheFilename(FeedTypeInterface $type, $gzip = false) |
|
| 292 | { |
|
| 293 | $path = [ |
|
| 294 | $this->cacheDir, |
|
| 295 | sprintf('%s.%s', $type->getName(), ($gzip ? 'xml.gz' : 'xml')), |
|
| 296 | ]; |
|
| 297 | ||
| 298 | return implode(DIRECTORY_SEPARATOR, $path); |
|
| 299 | } |
|
| 300 | ||
| 301 | /** |
|
| 302 | * @param object $item |
|