3 class ForeignDBFile
extends LocalFile
{
4 static function newFromTitle( $title, $repo, $unused = null ) {
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( $srcPath, $flags = 0 ) {
19 $this->readOnlyError();
22 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
23 $watch = false, $timestamp = false ) {
24 $this->readOnlyError();
26 function restore( $versions = array(), $unsuppress = false ) {
27 $this->readOnlyError();
29 function delete( $reason, $suppress = false ) {
30 $this->readOnlyError();
32 function move( $target ) {
33 $this->readOnlyError();
36 function getDescriptionUrl() {
37 // Restore remote behaviour
38 return File
::getDescriptionUrl();
41 function getDescriptionText() {
42 // Restore remote behaviour
43 return File
::getDescriptionText();