Follow-up r75476: Windows set command treats everything until the && as part of the...
[lhc/web/wiklou.git] / includes / filerepo / ForeignDBFile.php
1 <?php
2 /**
3 * Foreign file with an accessible MediaWiki database
4 *
5 * @file
6 * @ingroup FileRepo
7 */
8
9 /**
10 * Foreign file with an accessible MediaWiki database
11 *
12 * @ingroup FileRepo
13 */
14 class ForeignDBFile extends LocalFile {
15 static function newFromTitle( $title, $repo, $unused = null ) {
16 return new self( $title, $repo );
17 }
18
19 /**
20 * Create a ForeignDBFile from a title
21 * Do not call this except from inside a repo class.
22 */
23 static function newFromRow( $row, $repo ) {
24 $title = Title::makeTitle( NS_FILE, $row->img_name );
25 $file = new self( $title, $repo );
26 $file->loadFromRow( $row );
27 return $file;
28 }
29
30 function publish( $srcPath, $flags = 0 ) {
31 $this->readOnlyError();
32 }
33
34 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
35 $watch = false, $timestamp = false ) {
36 $this->readOnlyError();
37 }
38 function restore( $versions = array(), $unsuppress = false ) {
39 $this->readOnlyError();
40 }
41 function delete( $reason, $suppress = false ) {
42 $this->readOnlyError();
43 }
44 function move( $target ) {
45 $this->readOnlyError();
46 }
47 }