Importer/PKP/IssueFileImporter.php
public function importIssueFiles($issue, $oldId, $slug)
    {
        $issueFilesSql = "SELECT * FROM issue_files WHERE issue_id = :id";
        $issueFilesStatement = $this->dbalConnection->prepare($issueFilesSql);
        $issueFilesStatement->bindValue('id', $oldId);
        $issueFilesStatement->execute();

        $issueFiles = $issueFilesStatement->fetchAll();
        foreach ($issueFiles as $issueFile) {
            $this->importIssueFile($issueFile['file_id'], $oldId, $issue, $slug);
        }
    }
public function importIssueFiles($issue, $oldId, $slug)
    {
        $issueFilesSql = "SELECT * FROM issue_files WHERE issue_id = :id";
        $issueFilesStatement = $this->dbalConnection->prepare($issueFilesSql);
        $issueFilesStatement->bindValue('id', $oldId);
        $issueFilesStatement->execute();

        $issueFiles = $issueFilesStatement->fetchAll();
        foreach ($issueFiles as $issueFile) {
            $this->importIssueFile($issueFile['file_id'], $oldId, $issue, $slug);
        }
    }
public function importIssueFiles ( $ issue , $ oldId , $ slug ) { $ issueFilesSql = "SELECT * FROM issue_files WHERE issue_id = :id" ; $ issueFilesStatement = $ this -> dbalConnection -> prepare ( $ issueFilesSql ) ; $ issueFilesStatement -> bindValue ( 'id' , $ oldId ) ; $ issueFilesStatement -> execute ( ) ; $ issueFiles = $ issueFilesStatement -> fetchAll ( ) ; foreach ( $ issueFiles as $ issueFile ) { $ this -> importIssueFile ( $ issueFile [ 'file_id' ] , $ oldId , $ issue , $ slug ) ; } }
Imports files of given issue
@param Issue  $issue The issue whose files are going to be imported
@param int    $oldId Old ID of the issue
@param String $slug Journal's slug
@throws \Doctrine\DBAL\DBALException
Imports files of given issue