MediaWiki
REL1_19
|
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 |
Definition at line 130 of file BitmapScalingTest.php.
FakeDimensionFile::__construct | ( | $ | dimensions | ) |
Definition at line 133 of file BitmapScalingTest.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
$page | int |
Reimplemented from File.
Definition at line 142 of file BitmapScalingTest.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 148 of file BitmapScalingTest.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
$page | int |
Reimplemented from File.
Definition at line 139 of file BitmapScalingTest.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 145 of file BitmapScalingTest.php.
FakeDimensionFile::$mustRender = false |
Definition at line 131 of file BitmapScalingTest.php.