MediaWiki  REL1_21
ForeignDBFile.php
Go to the documentation of this file.
00001 <?php
00029 class ForeignDBFile extends LocalFile {
00030 
00037         static function newFromTitle( $title, $repo, $unused = null ) {
00038                 return new self( $title, $repo );
00039         }
00040 
00050         static function newFromRow( $row, $repo ) {
00051                 $title = Title::makeTitle( NS_FILE, $row->img_name );
00052                 $file = new self( $title, $repo );
00053                 $file->loadFromRow( $row );
00054                 return $file;
00055         }
00056 
00064         function publish( $srcPath, $flags = 0, array $options = array() ) {
00065                 $this->readOnlyError();
00066         }
00067 
00080         function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
00081                 $watch = false, $timestamp = false, User $user = null ) {
00082                 $this->readOnlyError();
00083         }
00084 
00091         function restore( $versions = array(), $unsuppress = false ) {
00092                 $this->readOnlyError();
00093         }
00094 
00101         function delete( $reason, $suppress = false ) {
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 
00125         function getDescriptionText() {
00126                 // Restore remote behavior
00127                 return File::getDescriptionText();
00128         }
00129 }