Importer/PKP/IssueImporter.php
public function importJournalIssues($oldJournalId, $newJournalId, $sectionIds)
    {
        $issuesSql = "SELECT * FROM issues WHERE journal_id = :id";
        $issuesStatement = $this->dbalConnection->prepare($issuesSql);
        $issuesStatement->bindValue('id', $oldJournalId);
        $issuesStatement->execute();
        $issues = $issuesStatement->fetchAll();

        return $this->importIssues($issues, $newJournalId, $sectionIds);
    }
public function importJournalIssues($oldJournalId, $newJournalId, $sectionIds)
    {
        $issuesSql = "SELECT * FROM issues WHERE journal_id = :id";
        $issuesStatement = $this->dbalConnection->prepare($issuesSql);
        $issuesStatement->bindValue('id', $oldJournalId);
        $issuesStatement->execute();
        $issues = $issuesStatement->fetchAll();

        return $this->importIssues($issues, $newJournalId, $sectionIds);
    }
public function importJournalIssues ( $ oldJournalId , $ newJournalId , $ sectionIds ) { $ issuesSql = "SELECT * FROM issues WHERE journal_id = :id" ; $ issuesStatement = $ this -> dbalConnection -> prepare ( $ issuesSql ) ; $ issuesStatement -> bindValue ( 'id' , $ oldJournalId ) ; $ issuesStatement -> execute ( ) ; $ issues = $ issuesStatement -> fetchAll ( ) ; return $ this -> importIssues ( $ issues , $ newJournalId , $ sectionIds ) ; }
Imports issues of given journal
@param  int $oldJournalId Issue's old Journal ID
@param  int $newJournalId Issue's new Journal ID
@param  array $sectionIds Sections that the created issue will include
@return array An array whose keys are old IDs and values are new IDs
@throws Exception
@throws \Doctrine\DBAL\DBALException
Imports issues of given journal