ImportableUploadRevision.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * @since 1.31
  4. */
  5. interface ImportableUploadRevision {
  6. /**
  7. * @since 1.31
  8. * @return string Archive name of a revision if archived.
  9. */
  10. public function getArchiveName();
  11. /**
  12. * @since 1.31
  13. * @return Title
  14. */
  15. public function getTitle();
  16. /**
  17. * @since 1.31
  18. * @return string
  19. */
  20. public function getTimestamp();
  21. /**
  22. * @since 1.31
  23. * @return string|null HTTP source of revision to be used for downloading.
  24. */
  25. public function getSrc();
  26. /**
  27. * @since 1.31
  28. * @return string Local file source of the revision.
  29. */
  30. public function getFileSrc();
  31. /**
  32. * @since 1.31
  33. * @return bool Is the return of getFileSrc only temporary?
  34. */
  35. public function isTempSrc();
  36. /**
  37. * @since 1.31
  38. * @return string|bool sha1 of the revision, false if not set or errors occour.
  39. */
  40. public function getSha1();
  41. /**
  42. * @since 1.31
  43. * @return User
  44. */
  45. public function getUserObj();
  46. /**
  47. * @since 1.31
  48. * @return string The username of the user that created this revision
  49. */
  50. public function getUser();
  51. /**
  52. * @since 1.31
  53. * @return string
  54. */
  55. public function getComment();
  56. }