コード例 #1
0
 /**
  *
  * @param TemporaryFile $file
  * @return FileInfoRepresentation
  */
 private function buildFileRepresentation(TemporaryFile $file)
 {
     $reference = new FileInfoRepresentation();
     return $reference->build($file->getId(), $file->getCreatorId(), $file->getDescription(), $file->getName(), $file->getSize(), $file->getType(), null, null);
 }
コード例 #2
0
 public function removeTemporaryFile(Tracker_Artifact_Attachment_TemporaryFile $file)
 {
     $this->removeTemporaryFileInDB($file->getId());
     $this->removeTemporaryFileFomFileSystem($file);
 }