private function moveAttachmentToFinalPlace(Tracker_FileInfo $attachment, $method, $src_path) { if ($method($src_path, $attachment->getPath())) { $attachment->postUploadActions(); return true; } else { $attachment->delete(); return false; } }
/** * @param Tracker_FileInfo $file_info * * @return string */ public function getPath(Tracker_FileInfo $file_info) { return $file_info->getPath(); }