MediaWiki
REL1_21
|
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 () | |
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 | ||
$repo | ForeignApiRepo | |
$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 |
||
) |
ForeignAPIFile::getHeight | ( | $ | page = 1 | ) |
$page | int |
Reimplemented from File.
Definition at line 145 of file ForeignAPIFile.php.
Reimplemented from File.
Definition at line 238 of file ForeignAPIFile.php.
References getMimeType(), and MimeMagic\singleton().
Reimplemented from File.
Definition at line 152 of file ForeignAPIFile.php.
Reimplemented from File.
Definition at line 226 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 88 of file ForeignAPIFile.php.
Referenced by ForeignAPIRepo\findBySha1(), and newFromTitle().
Reimplemented from File.
Definition at line 206 of file ForeignAPIFile.php.
References wfBaseConvert().
Reimplemented from File.
Definition at line 272 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...
$suffix | string |
Reimplemented from File.
Definition at line 257 of file ForeignAPIFile.php.
References File\$path, File\getHashPath(), and File\getName().
Referenced by getThumbnails(), and purgeThumbnails().
Reimplemented from File.
Definition at line 215 of file ForeignAPIFile.php.
References wfTimestamp().
ForeignAPIFile::getUser | ( | $ | method = 'text' | ) |
string | $method |
Reimplemented from File.
Definition at line 192 of file ForeignAPIFile.php.
ForeignAPIFile::getWidth | ( | $ | page = 1 | ) |
$page | int |
Reimplemented from File.
Definition at line 137 of file ForeignAPIFile.php.
static ForeignAPIFile::newFromTitle | ( | Title $ | title, |
$ | repo | ||
) | [static] |
$title | Title |
$repo | ForeignApiRepo |
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 287 of file ForeignAPIFile.php.
References $options, purgeDescriptionPage(), and purgeThumbnails().
Definition at line 292 of file ForeignAPIFile.php.
References File\$url, $wgContLang, $wgMemc, File\getName(), and global.
Referenced by purgeCache().
ForeignAPIFile::purgeThumbnails | ( | $ | options = array() | ) |
$options | array |
Definition at line 304 of file ForeignAPIFile.php.
References $dir, $file, $files, File\$handler, $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 113 of file ForeignAPIFile.php.
References $flags, $params, File\canRender(), and File\getName().
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.