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