MediaWiki  REL1_19
PNGHandler Class Reference

Handler for PNG images. More...

Inheritance diagram for PNGHandler:
Collaboration diagram for PNGHandler:

List of all members.

Public Member Functions

 formatMetadata ($image)
 getLongDesc ($image)
 getMetadata ($image, $filename)
 getMetadataType ($image)
 Get a string describing the type of metadata, for display purposes.
 isAnimatedImage ($image)
 isMetadataValid ($image, $metadata)
 Check if the metadata string is valid for this handler.

Public Attributes

const BROKEN_FILE = '0'

Detailed Description

Handler for PNG images.

Definition at line 14 of file PNG.php.


Member Function Documentation

Parameters:
$imageFile
Returns:
array|bool

Reimplemented from MediaHandler.

Definition at line 39 of file PNG.php.

References MediaHandler\formatMetadataHelper().

Here is the call graph for this function:

Parameters:
$imageFile
Returns:
string

Reimplemented from ImageHandler.

Definition at line 101 of file PNG.php.

References $wgLang, wfMsgExt(), wfRestoreWarnings(), and wfSuppressWarnings().

Here is the call graph for this function:

PNGHandler::getMetadata ( image,
filename 
)
Parameters:
File$image
string$filename
Returns:
string

Reimplemented from MediaHandler.

Definition at line 23 of file PNG.php.

References BROKEN_FILE, BitmapMetadataHandler\PNG(), and wfDebug().

Here is the call graph for this function:

Get a string describing the type of metadata, for display purposes.

Returns:
string

Reimplemented from MediaHandler.

Definition at line 69 of file PNG.php.

Parameters:
$imageFile
Returns:
bool

Reimplemented from ImageHandler.

Definition at line 60 of file PNG.php.

PNGHandler::isMetadataValid ( image,
metadata 
)

Check if the metadata string is valid for this handler.

If it returns MediaHandler::METADATA_BAD (or false), Image will reload the metadata from the file and update the database. MediaHandler::METADATA_GOOD for if the metadata is a-ok, MediaHanlder::METADATA_COMPATIBLE if metadata is old but backwards compatible (which may or may not trigger a metadata reload).

Reimplemented from MediaHandler.

Definition at line 73 of file PNG.php.

References MediaHandler\METADATA_BAD, MediaHandler\METADATA_COMPATIBLE, MediaHandler\METADATA_GOOD, PNGMetadataExtractor\VERSION, wfDebug(), wfRestoreWarnings(), and wfSuppressWarnings().

Here is the call graph for this function:


Member Data Documentation


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