MediaWiki  REL1_19
FakeDimensionFile Class Reference
Inheritance diagram for FakeDimensionFile:
Collaboration diagram for FakeDimensionFile:

List of all members.

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

Detailed Description

Definition at line 130 of file BitmapScalingTest.php.


Constructor & Destructor Documentation

FakeDimensionFile::__construct ( dimensions)

Definition at line 133 of file BitmapScalingTest.php.

References Title\makeTitle().

Here is the call graph for this function:


Member Function Documentation

Return the height of the image.

Returns false if the height is unknown or undefined

STUB Overridden by LocalFile, UnregisteredLocalFile

Parameters:
$pageint
Returns:
false|number

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.

Returns:
string|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

Parameters:
$pageint
Returns:
number

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.

Returns:
bool

Reimplemented from File.

Definition at line 145 of file BitmapScalingTest.php.


Member Data Documentation

FakeDimensionFile::$mustRender = false

Definition at line 131 of file BitmapScalingTest.php.


The documentation for this class was generated from the following file: