Fixed typo in LocalFileDeleteBatch::execute() which was causing complete breakage...
[lhc/web/wiklou.git] / includes / filerepo / ForeignDBFile.php
1 <?php
2
3 class ForeignDBFile extends LocalFile {
4 static function newFromTitle( $title, $repo ) {
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( /*...*/ ) {
19 $this->readOnlyError();
20 }
21
22 function recordUpload( /*...*/ ) {
23 $this->readOnlyError();
24 }
25 function restore( /*...*/ ) {
26 $this->readOnlyError();
27 }
28 function delete( /*...*/ ) {
29 $this->readOnlyError();
30 }
31
32 function getDescriptionUrl() {
33 // Restore remote behaviour
34 return File::getDescriptionUrl();
35 }
36
37 function getDescriptionText() {
38 // Restore remote behaviour
39 return File::getDescriptionText();
40 }
41 }
42