MediaWiki
REL1_24
|
Media More...
Public Member Functions | |
__construct ($dimensions) | |
getHeight ($page=1) | |
Return the height of the image. | |
getPath () | |
Return the storage path to the file. | |
getWidth ($page=1) | |
Return the width of the image. | |
mustRender () | |
Return true if the file is of a type that can't be directly rendered by typical browsers and needs to be re-rasterized. | |
Public Attributes | |
$mustRender = false |
Media
Definition at line 6 of file FakeDimensionFile.php.
FakeDimensionFile::__construct | ( | $ | dimensions | ) |
Definition at line 9 of file FakeDimensionFile.php.
References Title\makeTitle().
FakeDimensionFile::getHeight | ( | $ | page = 1 | ) |
Return the height of the image.
Returns false if the height is unknown or undefined
STUB Overridden by LocalFile, UnregisteredLocalFile
int | $page |
Reimplemented from File.
Definition at line 20 of file FakeDimensionFile.php.
Return the storage path to the file.
Note that this does not mean that a file actually exists under that location.
This path depends on whether directory hashing is active or not, i.e. whether the files are all found in the same directory, or in hashed paths like /images/3/3c.
Most callers don't check the return value, but ForeignAPIFile::getPath returns false.
Reimplemented from File.
Definition at line 28 of file FakeDimensionFile.php.
FakeDimensionFile::getWidth | ( | $ | page = 1 | ) |
Return the width of the image.
Returns false if the width is unknown or undefined.
STUB Overridden by LocalFile, UnregisteredLocalFile
int | $page |
Reimplemented from File.
Definition at line 16 of file FakeDimensionFile.php.
Return true if the file is of a type that can't be directly rendered by typical browsers and needs to be re-rasterized.
This returns true for everything but the bitmap types supported by all browsers, i.e. JPEG; GIF and PNG. It will also return true for any non-image formats.
Reimplemented from File.
Definition at line 24 of file FakeDimensionFile.php.
FakeDimensionFile::$mustRender = false |
Definition at line 7 of file FakeDimensionFile.php.