Exports products as ZIP archives.
This \FeaturePhp\Exporter\Exporter takes a product's generated files and bundles them up in a ZIP archive on the server. To download the file, see \FeaturePhp\Exporter\DownloadZipExporter.
package | Default |
---|---|
inherited_from | \FeaturePhp\Exporter\Exporter |
__construct(string $target)
string
export(\FeaturePhp\ProductLine\Product $product)
Every generated file is added to the archive at its target path. If there are no files, a NOTICE file is generated because \ZipArchive does not support saving an empty ZIP archive. The archive's root directory has the product line's name.
inherited_from | \FeaturePhp\Exporter\Exporter::export() |
---|
\FeaturePhp\ProductLine\Product
export(\FeaturePhp\ProductLine\Product $product)
The implementation is expected to have some side effect, e.g. downloading a file.
\FeaturePhp\ProductLine\Product
close(\ZipArchive $zip)
\ZipArchive
open() : \ZipArchive
\ZipArchive
$target : string