MediaWiki  1.23.14
ForeignDBFile.php
Go to the documentation of this file.
1 <?php
29 class ForeignDBFile extends LocalFile {
36  static function newFromTitle( $title, $repo, $unused = null ) {
37  return new self( $title, $repo );
38  }
39 
48  static function newFromRow( $row, $repo ) {
49  $title = Title::makeTitle( NS_FILE, $row->img_name );
50  $file = new self( $title, $repo );
51  $file->loadFromRow( $row );
52 
53  return $file;
54  }
55 
63  function publish( $srcPath, $flags = 0, array $options = array() ) {
64  $this->readOnlyError();
65  }
66 
79  function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',
80  $watch = false, $timestamp = false, User $user = null ) {
81  $this->readOnlyError();
82  }
83 
90  function restore( $versions = array(), $unsuppress = false ) {
91  $this->readOnlyError();
92  }
93 
100  function delete( $reason, $suppress = false ) {
101  $this->readOnlyError();
102  }
103 
109  function move( $target ) {
110  $this->readOnlyError();
111  }
112 
116  function getDescriptionUrl() {
117  // Restore remote behavior
118  return File::getDescriptionUrl();
119  }
120 
125  function getDescriptionText( $lang = false ) {
126  // Restore remote behavior
127  return File::getDescriptionText( $lang );
128  }
129 }
Title\makeTitle
static & makeTitle( $ns, $title, $fragment='', $interwiki='')
Create a new Title from a namespace index and a DB key.
Definition: Title.php:398
File\$repo
FileRepo LocalRepo ForeignAPIRepo bool $repo
Some member variables can be lazy-initialised using __get().
Definition: File.php:94
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
ForeignDBFile
Foreign file with an accessible MediaWiki database.
Definition: ForeignDBFile.php:29
ForeignDBFile\recordUpload
recordUpload( $oldver, $desc, $license='', $copyStatus='', $source='', $watch=false, $timestamp=false, User $user=null)
Definition: ForeignDBFile.php:79
LocalFile\$user
int $user
User ID of uploader *.
Definition: LocalFile.php:85
NS_FILE
const NS_FILE
Definition: Defines.php:85
$flags
it s the revision text itself In either if gzip is the revision text is gzipped $flags
Definition: hooks.txt:2124
ForeignDBFile\newFromTitle
static newFromTitle( $title, $repo, $unused=null)
Definition: ForeignDBFile.php:36
File\getDescriptionText
getDescriptionText( $lang=false)
Get the HTML text of the description page, if available.
Definition: File.php:1745
ForeignDBFile\newFromRow
static newFromRow( $row, $repo)
Create a ForeignDBFile from a title Do not call this except from inside a repo class.
Definition: ForeignDBFile.php:48
ForeignDBFile\publish
publish( $srcPath, $flags=0, array $options=array())
Definition: ForeignDBFile.php:63
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
LocalFile
Class to represent a local file in the wiki's own database.
Definition: LocalFile.php:46
false
processing should stop and the error should be shown to the user * false
Definition: hooks.txt:188
$options
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
Definition: hooks.txt:1530
ForeignDBFile\restore
restore( $versions=array(), $unsuppress=false)
Definition: ForeignDBFile.php:90
ForeignDBFile\move
move( $target)
Definition: ForeignDBFile.php:109
File\$title
Title string bool $title
Definition: File.php:96
File\getDescriptionUrl
getDescriptionUrl()
Get the URL of the image description page.
Definition: File.php:1731
LocalFile\$timestamp
string $timestamp
Upload timestamp *.
Definition: LocalFile.php:83
$file
if(PHP_SAPI !='cli') $file
Definition: UtfNormalTest2.php:30
File\readOnlyError
readOnlyError()
Definition: File.php:1482
ForeignDBFile\getDescriptionText
getDescriptionText( $lang=false)
Definition: ForeignDBFile.php:125
$source
if(PHP_SAPI !='cli') $source
Definition: mwdoc-filter.php:18
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:59
ForeignDBFile\getDescriptionUrl
getDescriptionUrl()
Definition: ForeignDBFile.php:116
$license
$license
Definition: importImages.php:123