Localisation updates for core and extension messages from translatewiki.net (2009...
[mediawiki.git] / includes / filerepo / ForeignDBFile.php
bloba24ff72b9d00bd22587b869dbef0147ff0f0f41d
1 <?php
3 /**
4 * @ingroup FileRepo
5 */
6 class ForeignDBFile extends LocalFile {
7 static function newFromTitle( $title, $repo, $unused = null ) {
8 return new self( $title, $repo );
11 /**
12 * Create a ForeignDBFile from a title
13 * Do not call this except from inside a repo class.
15 static function newFromRow( $row, $repo ) {
16 $title = Title::makeTitle( NS_FILE, $row->img_name );
17 $file = new self( $title, $repo );
18 $file->loadFromRow( $row );
19 return $file;
22 function publish( $srcPath, $flags = 0 ) {
23 $this->readOnlyError();
26 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
27 $watch = false, $timestamp = false ) {
28 $this->readOnlyError();
30 function restore( $versions = array(), $unsuppress = false ) {
31 $this->readOnlyError();
33 function delete( $reason, $suppress = false ) {
34 $this->readOnlyError();
36 function move( $target ) {
37 $this->readOnlyError();
40 function getDescriptionUrl() {
41 // Restore remote behaviour
42 return File::getDescriptionUrl();
45 function getDescriptionText() {
46 // Restore remote behaviour
47 return File::getDescriptionText();