62 $this->_processedObjectsIds = array();
116 $this->_context = $context;
132 $this->_submission = $submission;
149 $this->_publication = $publication;
167 $this->_processedObjectsIds[$assocType][] = $assocId;
176 function addError($assocType, $assocId, $errorMsg) {
177 $this->_processedObjectsErrors[$assocType][$assocId][] = $errorMsg;
186 function addWarning($assocType, $assocId, $warningMsg) {
187 $this->_processedObjectsWarnings[$assocType][$assocId][] = $warningMsg;
196 if (array_key_exists($assocType, $this->_processedObjectsIds)) {
197 return $this->_processedObjectsIds[$assocType];
208 if (array_key_exists($assocType, $this->_processedObjectsErrors)) {
209 return $this->_processedObjectsErrors[$assocType];
220 if (array_key_exists($assocType, $this->_processedObjectsWarnings)) {
221 return $this->_processedObjectsWarnings[$assocType];
231 switch ($assocType) {
232 case ASSOC_TYPE_SUBMISSION:
234 if (!empty($processedSubmisssionsIds)) {
236 foreach ($processedSubmisssionsIds as $submissionId) {
238 $submissionDao->deleteById($submissionId);
251 $this->_user = $user;
275 return $this->_fileDBIds = $fileDBIds;
284 function getFileDBId($fileId, $revisionId =
null) {
285 if (array_key_exists($fileId, $this->_fileDBIds)) {
288 if (array_key_exists($revisionId, $this->_fileDBIds[$fileId])) {
289 return $this->_fileDBIds[$fileId][$revisionId];
296 return current($this->_fileDBIds[$fileId]);
308 function setFileDBId($fileId, $revisionId, $DBId) {
309 return $this->_fileDBIds[$fileId][$revisionId]= $DBId;
317 return $this->_authorDBIds = $authorDBIds;
334 if (array_key_exists($authorId, $this->_authorDBIds)) {
335 return $this->_authorDBIds[$authorId];
347 return $this->_authorDBIds[$authorId] = $DBId;
355 $this->_baseImportPath = $path;