oVersion = new version($iVersionId); if($iVersionId) { if($this->oVersion->sQueued == "true") $bQueued = TRUE; if($this->oVersion->sQueued == "false") $bQueued = FALSE; $iTestingId = testData::getNewestTestIdFromVersionId($iVersionId, $bQueued); } $this->oTestDataQueue = new testData_queue($iTestingId); $this->oDownloadUrl = new downloadurl(); } function create() { global $aClean; if(!$this->oVersion->create()) return FALSE; $this->oTestDataQueue->oTestData->iVersionId = $this->oVersion->iVersionId; $this->oTestDataQueue->create(); $this->oDownloadUrl->processFormSingle($this->oVersion->iVersionId, $aClean, $this->oVersion->canEdit()); return TRUE; } function reject() { $this->oVersion->reject(); if($this->oDownloadUrl->iId) $this->oDownloadUrl->reject(); $this->oTestDataQueue->reject(); } function update() { $this->oVersion->update(); $this->oTestDataQueue->update(); } function delete() { return $this->oVersion->delete(); } function unQueue() { $this->oVersion->unQueue(); $this->oTestDataQueue->unQueue(); } function outputEditor() { $this->oVersion->outputEditor(); /* Allow the user to apply as maintainer if this is a new version. If it is a new application as well, radio boxes will be displayed by the application class instead. */ if(!$this->oVersion->iVersionId && $this->oVersion->iAppId) { echo html_frame_start("Become Maintainer", "90%"); echo "