3 * Foreign file with an accessible MediaWiki database
10 * Foreign file with an accessible MediaWiki database
14 class ForeignDBFile
extends LocalFile
{
15 static function newFromTitle( $title, $repo, $unused = null ) {
16 return new self( $title, $repo );
20 * Create a ForeignDBFile from a title
21 * Do not call this except from inside a repo class.
23 static function newFromRow( $row, $repo ) {
24 $title = Title
::makeTitle( NS_FILE
, $row->img_name
);
25 $file = new self( $title, $repo );
26 $file->loadFromRow( $row );
30 function publish( $srcPath, $flags = 0 ) {
31 $this->readOnlyError();
34 function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
35 $watch = false, $timestamp = false ) {
36 $this->readOnlyError();
38 function restore( $versions = array(), $unsuppress = false ) {
39 $this->readOnlyError();
41 function delete( $reason, $suppress = false ) {
42 $this->readOnlyError();
44 function move( $target ) {
45 $this->readOnlyError();