function editVersion($args)
 {
     $this->validate();
     $rtDao =& DAORegistry::getDAO('RTDAO');
     $archiveId = (int) array_shift($args);
     $versionId = (int) array_shift($args);
     $version =& $rtDao->getVersion($versionId, $archiveId);
     if (isset($version)) {
         import('rt.harvester2.form.VersionForm');
         $this->setupTemplate(true, $archiveId, $version);
         $versionForm = new VersionForm($versionId, $archiveId);
         $versionForm->initData();
         $versionForm->display();
     } else {
         Request::redirect(null, 'versions');
     }
 }
Beispiel #2
0
 function editVersion($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');
         $this->setupTemplate($request, true, $version);
         $versionForm = new VersionForm($versionId, $conference->getId());
         $versionForm->initData();
         $versionForm->display();
     } else {
         $request->redirect(null, null, null, 'versions');
     }
 }
 function editVersion($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');
         $this->setupTemplate(true, $version);
         $versionForm = new VersionForm($versionId, $journal->getId());
         $versionForm->initData();
         $versionForm->display();
     } else {
         Request::redirect(null, null, 'versions');
     }
 }