MediaWiki
REL1_19
|
00001 <?php 00014 class ForeignDBFile extends LocalFile { 00015 00022 static function newFromTitle( $title, $repo, $unused = null ) { 00023 return new self( $title, $repo ); 00024 } 00025 00035 static function newFromRow( $row, $repo ) { 00036 $title = Title::makeTitle( NS_FILE, $row->img_name ); 00037 $file = new self( $title, $repo ); 00038 $file->loadFromRow( $row ); 00039 return $file; 00040 } 00041 00042 function publish( $srcPath, $flags = 0 ) { 00043 $this->readOnlyError(); 00044 } 00045 00046 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '', 00047 $watch = false, $timestamp = false ) { 00048 $this->readOnlyError(); 00049 } 00050 00051 function restore( $versions = array(), $unsuppress = false ) { 00052 $this->readOnlyError(); 00053 } 00054 00055 function delete( $reason, $suppress = false ) { 00056 $this->readOnlyError(); 00057 } 00058 00059 function move( $target ) { 00060 $this->readOnlyError(); 00061 } 00062 00066 function getDescriptionUrl() { 00067 // Restore remote behaviour 00068 return File::getDescriptionUrl(); 00069 } 00070 00074 function getDescriptionText() { 00075 // Restore remote behaviour 00076 return File::getDescriptionText(); 00077 } 00078 }