Fix bug that brakes the 'jquery.tabIndex > firstTabIndex' test in IE8/IE9. Some value...
[mediawiki.git] / includes / filerepo / ForeignDBFile.php
blob09bee39c0a25e582fd1396312a6b01c4599d9ab1
1 <?php
2 /**
3 * Foreign file with an accessible MediaWiki database
5 * @file
6 * @ingroup FileRepo
7 */
9 /**
10 * Foreign file with an accessible MediaWiki database
12 * @ingroup FileRepo
14 class ForeignDBFile extends LocalFile {
16 /**
17 * @param $title
18 * @param $repo
19 * @param $unused
20 * @return ForeignDBFile
22 static function newFromTitle( $title, $repo, $unused = null ) {
23 return new self( $title, $repo );
26 /**
27 * Create a ForeignDBFile from a title
28 * Do not call this except from inside a repo class.
30 * @param $row
31 * @param $repo
33 * @return ForeignDBFile
35 static function newFromRow( $row, $repo ) {
36 $title = Title::makeTitle( NS_FILE, $row->img_name );
37 $file = new self( $title, $repo );
38 $file->loadFromRow( $row );
39 return $file;
42 function publish( $srcPath, $flags = 0 ) {
43 $this->readOnlyError();
46 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
47 $watch = false, $timestamp = false ) {
48 $this->readOnlyError();
51 function restore( $versions = array(), $unsuppress = false ) {
52 $this->readOnlyError();
55 function delete( $reason, $suppress = false ) {
56 $this->readOnlyError();
59 function move( $target ) {
60 $this->readOnlyError();
63 /**
64 * @return string
66 function getDescriptionUrl() {
67 // Restore remote behaviour
68 return File::getDescriptionUrl();
71 /**
72 * @return string
74 function getDescriptionText() {
75 // Restore remote behaviour
76 return File::getDescriptionText();