コード例 #1
0
ファイル: revision.php プロジェクト: Sajaki/customisation-db
 /**
  * Final submission step.
  *
  * @return null
  */
 protected function submit()
 {
     $this->revision->revision_submitted = true;
     $this->revision->allow_author_repack = false;
     $this->revision->validation_date = 0;
     // Automatically approve the revision and contrib if the queue is not being used
     if (!$this->use_queue) {
         $this->revision->validation_date = time();
         $this->revision->revision_status = TITANIA_REVISION_APPROVED;
         if ($this->contrib->contrib_status != TITANIA_CONTRIB_APPROVED) {
             $this->contrib->change_status(TITANIA_CONTRIB_APPROVED);
         }
         $this->revision->update_composer_package();
     }
     $this->revision->submit();
     $this->uploader->get_operator()->submit();
     // After revision is set to submitted we must update the queue
     $this->revision->update_queue($this->get_repack_exclusions());
 }