_issue = $issue; } /** * Get the import/export issue. * @return Issue */ function getIssue() { return $this->_issue; } /** * Remove the processed objects. * @param $assocType integer ASSOC_TYPE_... */ function removeImportedObjects($assocType) { switch ($assocType) { case ASSOC_TYPE_ISSUE: $processedIssuesIds = $this->getProcessedObjectsIds(ASSOC_TYPE_ISSUE); if (!empty($processedIssuesIds)) { $issueDao = DAORegistry::getDAO('IssueDAO'); foreach ($processedIssuesIds as $issueId) { if ($issueId) { $issue = $issueDao->getById($issueId); $issueDao->deleteObject($issue); } } } break; case ASSOC_TYPE_SECTION: $processedSectionIds = $this->getProcessedObjectsIds(ASSOC_TYPE_SECTION); if (!empty($processedSectionIds)) { $sectionDao = DAORegistry::getDAO('SectionDAO'); foreach ($processedSectionIds as $sectionId) { if ($sectionId) { $section = $sectionDao->getById($sectionId); $sectionDao->deleteObject($section); } } } break; default: parent::removeImportedObjects($assocType); } } } ?>