/**
* @param sExport $export
*/
private function generateFeed($export, ProductFeed
$feedModel) { $this->output->
writeln(sprintf('Refreshing cache for ' .
$feedModel->
getName()));
$export->sFeedID =
$feedModel->
getId();
$export->sHash =
$feedModel->
getHash();
$export->
sInitSettings();
$export->sSmarty =
clone $this->sSmarty;
$export->
sInitSmarty();
$fileName =
$feedModel->
getHash() . '_' .
$feedModel->
getFileName();
$feedCachePath =
$this->cacheDir . '/' .
$fileName;
$handleResource =
fopen($feedCachePath, 'w'
);
if (!\
is_resource($handleResource)) { throw new RuntimeException(sprintf('Feed cache path %s can not be opened',
$feedCachePath));
}