function saveVersion($args)
 {
     $this->validate();
     $rtDao =& DAORegistry::getDAO('RTDAO');
     $versionId = (int) array_shift($args);
     $archiveId = (int) Request::getUserVar('archiveId');
     $version =& $rtDao->getVersion($versionId, $archiveId);
     if (isset($version)) {
         import('rt.harvester2.form.VersionForm');
         $versionForm = new VersionForm($versionId, $archiveId);
         $versionForm->readInputData();
         $versionForm->execute();
     }
     Request::redirect(null, 'versions', $archiveId);
 }
Beispiel #2
0
 function saveVersion($args, &$request)
 {
     $this->validate();
     $rtDao = DAORegistry::getDAO('RTDAO');
     $conference = $request->getConference();
     $versionId = isset($args[0]) ? $args[0] : 0;
     $version =& $rtDao->getVersion($versionId, $conference->getId());
     if (isset($version)) {
         import('classes.rt.ocs.form.VersionForm');
         $versionForm = new VersionForm($versionId, $conference->getId());
         $versionForm->readInputData();
         $versionForm->execute();
     }
     $request->redirect(null, null, null, 'versions');
 }
 function saveVersion($args)
 {
     $this->validate();
     $rtDao =& DAORegistry::getDAO('RTDAO');
     $journal = Request::getJournal();
     $versionId = isset($args[0]) ? $args[0] : 0;
     $version =& $rtDao->getVersion($versionId, $journal->getId());
     if (isset($version)) {
         import('classes.rt.ojs.form.VersionForm');
         $versionForm = new VersionForm($versionId, $journal->getId());
         $versionForm->readInputData();
         $versionForm->execute();
     }
     Request::redirect(null, null, 'versions');
 }