* Fixed E_NOTICE..
[mediawiki.git] / includes / filerepo / ForeignDBFile.php
blob4d11640a0c6eb042594de87ad65289a5d847e307
1 <?php
3 class ForeignDBFile extends LocalFile {
4 static function newFromTitle( $title, $repo ) {
5 return new self( $title, $repo );
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;
18 function publish( /*...*/ ) {
19 $this->readOnlyError();
22 function recordUpload( /*...*/ ) {
23 $this->readOnlyError();
25 function restore( /*...*/ ) {
26 $this->readOnlyError();
28 function delete( /*...*/ ) {
29 $this->readOnlyError();
32 function getDescriptionUrl() {
33 // Restore remote behaviour
34 return File::getDescriptionUrl();
37 function getDescriptionText() {
38 // Restore remote behaviour
39 return File::getDescriptionText();