MediaWiki
REL1_24
|
Foreign file with an accessible MediaWiki database. More...
Public Member Functions | |
delete ($reason, $suppress=false, $user=null) | |
getDescriptionText ($lang=false) | |
getDescriptionUrl () | |
move ($target) | |
publish ($srcPath, $flags=0, array $options=array()) | |
recordUpload ($oldver, $desc, $license= '', $copyStatus= '', $source= '', $watch=false, $timestamp=false, User $user=null) | |
restore ($versions=array(), $unsuppress=false) | |
Static Public Member Functions | |
static | newFromRow ($row, $repo) |
Create a ForeignDBFile from a title Do not call this except from inside a repo class. | |
static | newFromTitle ($title, $repo, $unused=null) |
Foreign file with an accessible MediaWiki database.
Definition at line 29 of file ForeignDBFile.php.
ForeignDBFile::delete | ( | $ | reason, |
$ | suppress = false , |
||
$ | user = null |
||
) |
string | $reason | |
bool | $suppress | |
User | null | $user |
MWException |
Reimplemented from LocalFile.
Definition at line 101 of file ForeignDBFile.php.
References File\readOnlyError().
ForeignDBFile::getDescriptionText | ( | $ | lang = false | ) |
bool | Language | $lang | Optional language to fetch description in. |
Reimplemented from LocalFile.
Definition at line 126 of file ForeignDBFile.php.
ForeignDBFile::move | ( | $ | target | ) |
Title | $target |
MWException |
Reimplemented from LocalFile.
Definition at line 110 of file ForeignDBFile.php.
References File\readOnlyError().
static ForeignDBFile::newFromRow | ( | $ | row, |
$ | repo | ||
) | [static] |
Create a ForeignDBFile from a title Do not call this except from inside a repo class.
stdClass | $row | |
FileRepo | $repo |
Reimplemented from LocalFile.
Definition at line 48 of file ForeignDBFile.php.
References $file, File\$repo, File\$title, and Title\makeTitle().
static ForeignDBFile::newFromTitle | ( | $ | title, |
$ | repo, | ||
$ | unused = null |
||
) | [static] |
Reimplemented from LocalFile.
Definition at line 36 of file ForeignDBFile.php.
References File\$repo, and File\$title.
ForeignDBFile::publish | ( | $ | srcPath, |
$ | flags = 0 , |
||
array $ | options = array() |
||
) |
string | $srcPath | |
int | $flags | |
array | $options |
MWException |
Reimplemented from LocalFile.
Definition at line 63 of file ForeignDBFile.php.
References File\readOnlyError().
ForeignDBFile::recordUpload | ( | $ | oldver, |
$ | desc, | ||
$ | license = '' , |
||
$ | copyStatus = '' , |
||
$ | source = '' , |
||
$ | watch = false , |
||
$ | timestamp = false , |
||
User $ | user = null |
||
) |
string | $oldver | |
string | $desc | |
string | $license | |
string | $copyStatus | |
string | $source | |
bool | $watch | |
bool | string | $timestamp | |
User | $user | User object or null to use $wgUser |
MWException |
Reimplemented from LocalFile.
Definition at line 79 of file ForeignDBFile.php.
References File\readOnlyError().
ForeignDBFile::restore | ( | $ | versions = array() , |
$ | unsuppress = false |
||
) |
array | $versions | |
bool | $unsuppress |
MWException |
Reimplemented from LocalFile.
Definition at line 90 of file ForeignDBFile.php.
References File\readOnlyError().