MediaWiki
REL1_24
|
Foreign file accessible through api.php requests. More...
Public Member Functions | |
__construct ($title, $repo, $info, $exists=false) | |
exists () | |
getDescription ($audience=self::FOR_PUBLIC, User $user=null) | |
getDescriptionUrl () | |
getExtendedMetadata () | |
getHeight ($page=1) | |
getMediaType () | |
getMetadata () | |
getMimeType () | |
getPath () | |
getSha1 () | |
getSize () | |
getThumbnails () | |
getThumbPath ($suffix= '') | |
Only useful if we're locally caching thumbs anyway... | |
getTimestamp () | |
getUrl () | |
getUser ($method= 'text') | |
getWidth ($page=1) | |
purgeCache ($options=array()) | |
purgeDescriptionPage () | |
purgeThumbnails ($options=array()) | |
transform ($params, $flags=0) | |
Static Public Member Functions | |
static | getProps () |
Get the property string for iiprop and aiprop. | |
static | newFromTitle (Title $title, $repo) |
static | parseMetadata ($metadata) |
Protected Attributes | |
$repoClass = 'ForeignApiRepo' | |
Required Repository class type *. | |
Private Attributes | |
$mExists |
Foreign file accessible through api.php requests.
Very hacky and inefficient, do not use :D
Definition at line 30 of file ForeignAPIFile.php.
ForeignAPIFile::__construct | ( | $ | title, |
$ | repo, | ||
$ | info, | ||
$ | exists = false |
||
) |
Title | string | bool | $title | |
ForeignApiRepo | $repo | |
array | $info | |
bool | $exists |
Definition at line 41 of file ForeignAPIFile.php.
References File\$repo, File\$title, and File\assertRepoDefined().
ForeignAPIFile::getDescription | ( | $ | audience = self::FOR_PUBLIC , |
User $ | user = null |
||
) |
int | $audience | |
User | $user |
Reimplemented from File.
Definition at line 234 of file ForeignAPIFile.php.
Definition at line 183 of file ForeignAPIFile.php.
ForeignAPIFile::getHeight | ( | $ | page = 1 | ) |
int | $page |
Reimplemented from File.
Definition at line 164 of file ForeignAPIFile.php.
Reimplemented from File.
Definition at line 273 of file ForeignAPIFile.php.
References getMimeType(), and MimeMagic\singleton().
Reimplemented from File.
Definition at line 171 of file ForeignAPIFile.php.
Reimplemented from File.
Definition at line 261 of file ForeignAPIFile.php.
References File\getExtension(), and MimeMagic\singleton().
Referenced by getMediaType().
static ForeignAPIFile::getProps | ( | ) | [static] |
Get the property string for iiprop and aiprop.
Definition at line 92 of file ForeignAPIFile.php.
Referenced by newFromTitle().
Reimplemented from File.
Definition at line 241 of file ForeignAPIFile.php.
References wfBaseConvert().
Reimplemented from File.
Definition at line 312 of file ForeignAPIFile.php.
References $dir, $file, $files, array(), as, File\getName(), and getThumbPath().
Referenced by purgeThumbnails().
ForeignAPIFile::getThumbPath | ( | $ | suffix = '' | ) |
Only useful if we're locally caching thumbs anyway...
string | $suffix |
Reimplemented from File.
Definition at line 296 of file ForeignAPIFile.php.
References File\$path, File\getHashPath(), and File\getName().
Referenced by getThumbnails(), and purgeThumbnails().
Reimplemented from File.
Definition at line 250 of file ForeignAPIFile.php.
References wfTimestamp().
ForeignAPIFile::getUser | ( | $ | method = 'text' | ) |
string | $method |
Reimplemented from File.
Definition at line 225 of file ForeignAPIFile.php.
ForeignAPIFile::getWidth | ( | $ | page = 1 | ) |
int | $page |
Reimplemented from File.
Definition at line 156 of file ForeignAPIFile.php.
static ForeignAPIFile::newFromTitle | ( | Title $ | title, |
$ | repo | ||
) | [static] |
Title | $title | |
ForeignApiRepo | $repo |
Definition at line 55 of file ForeignAPIFile.php.
References File\$repo, File\$title, array(), Title\getDBkey(), MediaHandler\getMetadataVersion(), getProps(), Title\newFromText(), and true.
static ForeignAPIFile::parseMetadata | ( | $ | metadata | ) | [static] |
ForeignAPIFile::purgeCache | ( | $ | options = array() | ) |
Reimplemented from File.
Definition at line 327 of file ForeignAPIFile.php.
References $options, purgeDescriptionPage(), and purgeThumbnails().
Definition at line 332 of file ForeignAPIFile.php.
References $key, File\$url, $wgContLang, $wgMemc, File\getName(), and global.
Referenced by purgeCache().
ForeignAPIFile::purgeThumbnails | ( | $ | options = array() | ) |
array | $options |
Definition at line 344 of file ForeignAPIFile.php.
References $dir, $file, $files, File\$handler, $key, $options, $wgMemc, array(), as, MediaHandler\filterThumbnailPurgeList(), File\getHandler(), File\getName(), getThumbnails(), getThumbPath(), and global.
Referenced by purgeCache().
ForeignAPIFile::transform | ( | $ | params, |
$ | flags = 0 |
||
) |
array | $params | |
int | $flags |
Reimplemented from File.
Definition at line 117 of file ForeignAPIFile.php.
References $flags, $params, $wgLang, File\canRender(), File\getName(), and global.
ForeignAPIFile::$mExists [private] |
Definition at line 31 of file ForeignAPIFile.php.
ForeignAPIFile::$repoClass = 'ForeignApiRepo' [protected] |
Required Repository class type *.
Reimplemented from File.
Definition at line 33 of file ForeignAPIFile.php.