MediaWiki
REL1_24
|
A file object referring to either a standalone local file, or a file in a local repository with no database, for example an FileRepo repository. More...
Public Member Functions | |
__construct ($title=false, $repo=false, $path=false, $mime=false) | |
Create an UnregisteredLocalFile based on a path or a (title,repo) pair. | |
getHeight ($page=1) | |
getImageSize ($filename) | |
getMetadata () | |
getMimeType () | |
getSize () | |
getURL () | |
getWidth ($page=1) | |
setLocalReference (FSFile $fsFile) | |
Optimize getLocalRefPath() by using an existing local reference. | |
Static Public Member Functions | |
static | newFromPath ($path, $mime) |
static | newFromTitle ($title, $repo) |
Public Attributes | |
MediaHandler | $handler |
* | |
Protected Attributes | |
array | $dims |
Dimension data *. | |
bool string | $metadata |
Handler-specific metadata which will be saved in the img_metadata field *. | |
bool string | $mime |
* | |
string | $path |
* | |
Title | $title |
* | |
Private Member Functions | |
cachePageDimensions ($page=1) |
A file object referring to either a standalone local file, or a file in a local repository with no database, for example an FileRepo repository.
Read-only.
Definition at line 36 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::__construct | ( | $ | title = false , |
$ | repo = false , |
||
$ | path = false , |
||
$ | mime = false |
||
) |
Create an UnregisteredLocalFile based on a path or a (title,repo) pair.
A FileRepo object is not required here, unlike most other File classes.
MWException |
Definition at line 77 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::cachePageDimensions | ( | $ | page = 1 | ) | [private] |
UnregisteredLocalFile::getHeight | ( | $ | page = 1 | ) |
int | $page |
Reimplemented from File.
Definition at line 132 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::getImageSize | ( | $ | filename | ) |
string | $filename |
Reimplemented from File.
Definition at line 154 of file UnregisteredLocalFile.php.
Reimplemented from File.
Definition at line 141 of file UnregisteredLocalFile.php.
Definition at line 180 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::getWidth | ( | $ | page = 1 | ) |
int | $page |
Reimplemented from File.
Definition at line 122 of file UnregisteredLocalFile.php.
static UnregisteredLocalFile::newFromPath | ( | $ | path, |
$ | mime | ||
) | [static] |
string | $path | Storage path |
string | $mime |
Definition at line 54 of file UnregisteredLocalFile.php.
static UnregisteredLocalFile::newFromTitle | ( | $ | title, |
$ | repo | ||
) | [static] |
Definition at line 63 of file UnregisteredLocalFile.php.
References File\$repo, $title, and false.
UnregisteredLocalFile::setLocalReference | ( | FSFile $ | fsFile | ) |
Optimize getLocalRefPath() by using an existing local reference.
The file at the path of $fsFile should not be deleted (or at least not until the end of the request). This is mostly a performance hack.
FSFile | $fsFile |
Definition at line 206 of file UnregisteredLocalFile.php.
array UnregisteredLocalFile::$dims [protected] |
Dimension data *.
Definition at line 43 of file UnregisteredLocalFile.php.
MediaHandler UnregisteredLocalFile::$handler |
bool string UnregisteredLocalFile::$metadata [protected] |
Handler-specific metadata which will be saved in the img_metadata field *.
Definition at line 45 of file UnregisteredLocalFile.php.
bool string UnregisteredLocalFile::$mime [protected] |
string UnregisteredLocalFile::$path [protected] |
*
Reimplemented from File.
Definition at line 39 of file UnregisteredLocalFile.php.
Referenced by newFromPath().
*
Reimplemented from File.
Definition at line 37 of file UnregisteredLocalFile.php.
Referenced by newFromTitle().