MediaWiki  REL1_20
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 
00062         function publish( $srcPath, $flags = 0 ) {
00063                 $this->readOnlyError();
00064         }
00065 
00076         function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
00077                 $watch = false, $timestamp = false ) {
00078                 $this->readOnlyError();
00079         }
00080 
00086         function restore( $versions = array(), $unsuppress = false ) {
00087                 $this->readOnlyError();
00088         }
00089 
00095         function delete( $reason, $suppress = false ) {
00096                 $this->readOnlyError();
00097         }
00098 
00103         function move( $target ) {
00104                 $this->readOnlyError();
00105         }
00106 
00110         function getDescriptionUrl() {
00111                 // Restore remote behaviour
00112                 return File::getDescriptionUrl();
00113         }
00114 
00118         function getDescriptionText() {
00119                 // Restore remote behaviour
00120                 return File::getDescriptionText();
00121         }
00122 }