00001 <?php
00002
00006 class ForeignDBFile extends LocalFile {
00007 static function newFromTitle( $title, $repo, $unused = null ) {
00008 return new self( $title, $repo );
00009 }
00010
00015 static function newFromRow( $row, $repo ) {
00016 $title = Title::makeTitle( NS_FILE, $row->img_name );
00017 $file = new self( $title, $repo );
00018 $file->loadFromRow( $row );
00019 return $file;
00020 }
00021
00022 function publish( $srcPath, $flags = 0 ) {
00023 $this->readOnlyError();
00024 }
00025
00026 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
00027 $watch = false, $timestamp = false ) {
00028 $this->readOnlyError();
00029 }
00030 function restore( $versions = array(), $unsuppress = false ) {
00031 $this->readOnlyError();
00032 }
00033 function delete( $reason, $suppress = false ) {
00034 $this->readOnlyError();
00035 }
00036 function move( $target ) {
00037 $this->readOnlyError();
00038 }
00039
00040 function getDescriptionUrl() {
00041
00042 return File::getDescriptionUrl();
00043 }
00044
00045 function getDescriptionText() {
00046
00047 return File::getDescriptionText();
00048 }
00049 }