$outputHandle =
fopen($output, 'w'
);
if (!\
is_resource($outputHandle)) { throw new \
RuntimeException(sprintf('Output file %s can not be opened',
$outputHandle));
} $this->export->sSmarty =
$this->
View()->
Engine();
$this->export->
sInitSmarty();
// Export the feed
$this->export->
executeExport($outputHandle);
} /**
* initialize the base class sExport
*/
private function prepareExport() { $this->export->sSYSTEM =
Shopware()->
System();
$this->export->sFeedID =
(int) $this->
Request()->feedID;
$this->export->sHash =
$this->
Request()->hash;