MediaWiki
REL1_23
|
00001 <?php 00029 class ForeignDBFile extends LocalFile { 00036 static function newFromTitle( $title, $repo, $unused = null ) { 00037 return new self( $title, $repo ); 00038 } 00039 00048 static function newFromRow( $row, $repo ) { 00049 $title = Title::makeTitle( NS_FILE, $row->img_name ); 00050 $file = new self( $title, $repo ); 00051 $file->loadFromRow( $row ); 00052 00053 return $file; 00054 } 00055 00063 function publish( $srcPath, $flags = 0, array $options = array() ) { 00064 $this->readOnlyError(); 00065 } 00066 00079 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '', 00080 $watch = false, $timestamp = false, User $user = null ) { 00081 $this->readOnlyError(); 00082 } 00083 00090 function restore( $versions = array(), $unsuppress = false ) { 00091 $this->readOnlyError(); 00092 } 00093 00100 function delete( $reason, $suppress = false ) { 00101 $this->readOnlyError(); 00102 } 00103 00109 function move( $target ) { 00110 $this->readOnlyError(); 00111 } 00112 00116 function getDescriptionUrl() { 00117 // Restore remote behavior 00118 return File::getDescriptionUrl(); 00119 } 00120 00125 function getDescriptionText( $lang = false ) { 00126 // Restore remote behavior 00127 return File::getDescriptionText( $lang ); 00128 } 00129 }