E_STRICT
[lhc/web/wiklou.git] / includes / filerepo / ForeignDBFile.php
1 <?php
2
3 class ForeignDBFile extends LocalFile {
4 static function newFromTitle( $title, $repo, $unused = null ) {
5 return new self( $title, $repo );
6 }
7
8 function getCacheKey() {
9 if ( $this->repo->hasSharedCache ) {
10 $hashedName = md5($this->name);
11 return wfForeignMemcKey( $this->repo->dbName, $this->repo->tablePrefix,
12 'file', $hashedName );
13 } else {
14 return false;
15 }
16 }
17
18 function publish( $srcPath, $flags = 0 ) {
19 $this->readOnlyError();
20 }
21
22 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
23 $watch = false, $timestamp = false ) {
24 $this->readOnlyError();
25 }
26 function restore( $versions = array(), $unsuppress = false ) {
27 $this->readOnlyError();
28 }
29 function delete( $reason, $suppress = false ) {
30 $this->readOnlyError();
31 }
32 function move( $target ) {
33 $this->readOnlyError();
34 }
35
36 function getDescriptionUrl() {
37 // Restore remote behaviour
38 return File::getDescriptionUrl();
39 }
40
41 function getDescriptionText() {
42 // Restore remote behaviour
43 return File::getDescriptionText();
44 }
45 }