GIFHandler Class Reference

Handler for GIF images. More...

Inherits BitmapHandler.

List of all members.

Public Member Functions

 getMetadata ($image, $filename)
 Get handler-specific metadata which will be saved in the img_metadata field.
 formatMetadata ($image)
 Get an array structure that looks like this:.
 getImageArea ($image, $width, $height)
 getMetadataType ($image)
 Get a string describing the type of metadata, for display purposes.
 getLongDesc ($image)


Detailed Description

Handler for GIF images.

Definition at line 12 of file GIF.php.


Member Function Documentation

GIFHandler::formatMetadata ( image  ) 

Get an array structure that looks like this:.

array( 'visible' => array( 'Human-readable name' => 'Human readable value', ... ), 'collapsed' => array( 'Human-readable name' => 'Human readable value', ... ) ) The UI will format this into a table where the visible fields are always visible, and the collapsed fields are optionally visible.

The function should return false if there is no metadata to display. FIXME: I don't really like this interface, it's not very flexible I think the media handler should generate HTML instead. It can do all the formatting according to some standard. That makes it possible to do things like visual indication of grouped and chained streams in ogg container files.

Reimplemented from BitmapHandler.

Definition at line 29 of file GIF.php.

GIFHandler::getImageArea ( image,
width,
height 
)

Reimplemented from BitmapHandler.

Definition at line 33 of file GIF.php.

GIFHandler::getLongDesc ( image  ) 

Reimplemented from ImageHandler.

Definition at line 47 of file GIF.php.

References $wgLang, $wgUser, and wfMsgExt().

GIFHandler::getMetadata ( image,
path 
)

Get handler-specific metadata which will be saved in the img_metadata field.

Parameters:
$image File: the image object, or false if there isn't one
$path String: the filename
Returns:
String

Reimplemented from BitmapHandler.

Definition at line 14 of file GIF.php.

References $filename, and wfDebug().

GIFHandler::getMetadataType ( image  ) 

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

Reimplemented from BitmapHandler.

Definition at line 43 of file GIF.php.


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

Generated on Sat Apr 30 22:57:38 2011 for MediaWiki by  doxygen 1.5.9