FeaturePhp/Exporter/LocalExporter.php
public function export($product) {
        $files = $product->generateFiles();
        mkdir($this->target, 0777, true);
        
        foreach ($files as $file)
            if (!$file->getContent()->copy(fphp\Helper\Path::join($this->target, $file->getTarget())))
                throw new LocalExporterException("could not copy file \"{$file->getTarget()}\"");
    }
public function export($product) {
        $files = $product->generateFiles();
        mkdir($this->target, 0777, true);
        
        foreach ($files as $file)
            if (!$file->getContent()->copy(fphp\Helper\Path::join($this->target, $file->getTarget())))
                throw new LocalExporterException("could not copy file \"{$file->getTarget()}\"");
    }
public function export ( $ product ) { $ files = $ product -> generateFiles ( ) ; mkdir ( $ this -> target , 0777 , true ) ; foreach ( $ files as $ file ) if ( ! $ file -> getContent ( ) -> copy ( fphp \ Helper \ Path :: join ( $ this -> target , $ file -> getTarget ( ) ) ) ) throw new LocalExporterException ( "could not copy file \"{$file->getTarget()}\"" ) ; }
Exports a product in the local filesystem.
Every generated file is copied to the filesystem at its target path.
@param \FeaturePhp\ProductLine\Product $product
Exports a product in the local filesystem . Every generated file is copied to the filesystem at its target path .