3 class ForeignDBFile
extends LocalFile
{
4 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 );
18 function publish( /*...*/ ) {
19 $this->readOnlyError();
22 function recordUpload( /*...*/ ) {
23 $this->readOnlyError();
25 function restore( /*...*/ ) {
26 $this->readOnlyError();
29 function getDescriptionUrl() {
30 // Restore remote behaviour
31 return File
::getDescriptionUrl();
34 function getDescriptionText() {
35 // Restore remote behaviour
36 return File
::getDescriptionText();