Inherits File.
Public Member Functions | |
__construct ($title=false, $repo=false, $path=false, $mime=false) | |
getPageDimensions ($page=1) | |
getWidth ($page=1) | |
Return the width of the image. | |
getHeight ($page=1) | |
Return the height of the image. | |
getMimeType () | |
Returns the mime type of the file. | |
getImageSize ($filename) | |
Get an image size array like that returned by getimagesize(), or false if it can't be determined. | |
getMetadata () | |
Get handler-specific metadata Overridden by LocalFile, UnregisteredLocalFile STUB. | |
getURL () | |
getSize () | |
Return the size of the image file, in bytes Overridden by LocalFile, UnregisteredLocalFile STUB. | |
Static Public Member Functions | |
static | newFromPath ($path, $mime) |
static | newFromTitle ($title, $repo) |
Public Attributes | |
$title | |
$path | |
$mime | |
$handler | |
$dims |
Read-only.
TODO: Currently it doesn't really work in the repository role, there are lots of functions missing. It is used by the WebStore extension in the standalone role.
Definition at line 15 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::__construct | ( | $ | title = false , |
|
$ | repo = false , |
|||
$ | path = false , |
|||
$ | mime = false | |||
) |
Definition at line 26 of file UnregisteredLocalFile.php.
References $mime, $path, File::$repo, $title, and Title::makeTitleSafe().
UnregisteredLocalFile::getHeight | ( | $ | page = 1 |
) |
Return the height of the image.
Returns false if the height is unknown or undefined
STUB Overridden by LocalFile, UnregisteredLocalFile
Reimplemented from File.
Definition at line 64 of file UnregisteredLocalFile.php.
References $page, and getPageDimensions().
UnregisteredLocalFile::getImageSize | ( | $ | fileName | ) |
Get an image size array like that returned by getimagesize(), or false if it can't be determined.
string | $fileName The filename |
Reimplemented from File.
Definition at line 77 of file UnregisteredLocalFile.php.
References File::getHandler(), and File::getPath().
UnregisteredLocalFile::getMetadata | ( | ) |
Get handler-specific metadata Overridden by LocalFile, UnregisteredLocalFile STUB.
Reimplemented from File.
Definition at line 84 of file UnregisteredLocalFile.php.
References File::getHandler(), and File::getPath().
UnregisteredLocalFile::getMimeType | ( | ) |
Returns the mime type of the file.
Overridden by LocalFile, UnregisteredLocalFile STUB
Reimplemented from File.
Definition at line 69 of file UnregisteredLocalFile.php.
References MimeMagic::singleton().
UnregisteredLocalFile::getPageDimensions | ( | $ | page = 1 |
) |
Definition at line 49 of file UnregisteredLocalFile.php.
References $page, and File::getHandler().
Referenced by getHeight(), and getWidth().
UnregisteredLocalFile::getSize | ( | ) |
Return the size of the image file, in bytes Overridden by LocalFile, UnregisteredLocalFile STUB.
Reimplemented from File.
Definition at line 103 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::getURL | ( | ) |
Definition at line 95 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::getWidth | ( | $ | page = 1 |
) |
Return the width of the image.
Returns false if the width is unknown or undefined.
STUB Overridden by LocalFile, UnregisteredLocalFile
Reimplemented from File.
Definition at line 59 of file UnregisteredLocalFile.php.
References $page, and getPageDimensions().
static UnregisteredLocalFile::newFromPath | ( | $ | path, | |
$ | mime | |||
) | [static] |
static UnregisteredLocalFile::newFromTitle | ( | $ | title, | |
$ | repo | |||
) | [static] |
UnregisteredLocalFile::$dims |
Definition at line 16 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::$handler |
Definition at line 16 of file UnregisteredLocalFile.php.
UnregisteredLocalFile::$mime |
Definition at line 16 of file UnregisteredLocalFile.php.
Referenced by __construct(), and newFromPath().
UnregisteredLocalFile::$path |
Definition at line 16 of file UnregisteredLocalFile.php.
Referenced by __construct(), and newFromPath().
UnregisteredLocalFile::$title |
Reimplemented from File.
Definition at line 16 of file UnregisteredLocalFile.php.
Referenced by __construct(), and newFromTitle().