MediaWiki
REL1_24
|
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 00101 function delete( $reason, $suppress = false, $user = null ) { 00102 $this->readOnlyError(); 00103 } 00104 00110 function move( $target ) { 00111 $this->readOnlyError(); 00112 } 00113 00117 function getDescriptionUrl() { 00118 // Restore remote behavior 00119 return File::getDescriptionUrl(); 00120 } 00121 00126 function getDescriptionText( $lang = false ) { 00127 // Restore remote behavior 00128 return File::getDescriptionText( $lang ); 00129 } 00130 }