src/Subjects/ExportableTrait.php
/**
     * Export's the artefacts to CSV files and resets the array with the artefacts to free the memory.
     *
     * @param integer $timestamp The timestamp part of the original import file
     * @param string  $counter   The counter part of the origin import file
     *
     * @return void
     */
Export's the artefacts to CSV files and resets the array with the artefacts to free the memory.
@param integer $timestamp The timestamp part of the original import file
@param string  $counter   The counter part of the origin import file

@return void
Export ' s the artefacts to CSV files and resets the array with the artefacts to free the memory . @param integer $timestamp The timestamp part of the original import file @param string $counter The counter part of the origin import file @return void
public function export($timestamp, $counter)
    {
        $this->getExportAdapter()->export($this->getArtefacts(), $this->getTargetDir(), $timestamp, $counter);
        $status = array();
        foreach ($this->getExportAdapter()->getExportedFilenames() as $filename) {
            $status[$filename] = array();
        }
        $this->mergeStatus(
            array(
                RegistryKeys::STATUS => array(
                    RegistryKeys::FILES => $status
                )
            )
        );
        $this->resetArtefacts();
    }
public function export ( $ timestamp , $ counter ) { $ this -> getExportAdapter ( ) -> export ( $ this -> getArtefacts ( ) , $ this -> getTargetDir ( ) , $ timestamp , $ counter ) ; $ status = array ( ) ; foreach ( $ this -> getExportAdapter ( ) -> getExportedFilenames ( ) as $ filename ) { $ status [ $ filename ] = array ( ) ; } $ this -> mergeStatus ( array ( RegistryKeys :: STATUS => array ( RegistryKeys :: FILES => $ status ) ) ) ; $ this -> resetArtefacts ( ) ; }
Export's the artefacts to CSV files and resets the array with the artefacts to free the memory.
Export ' s the artefacts to CSV files and resets the array with the artefacts to free the memory .
// export the artefacts // initialize the array with the status // add the exported artefacts to the status // merge the status // reset the artefacts