ThumbnailImage Class Reference

Media transform output for images. More...

Inherits MediaTransformOutput.

List of all members.

Public Member Functions

 ThumbnailImage ($file, $url, $width, $height, $path=false, $page=false)
 toHtml ($options=array())
 Return HTML.


Detailed Description

Media transform output for images.

Definition at line 106 of file MediaTransformOutput.php.


Member Function Documentation

ThumbnailImage::ThumbnailImage ( file,
url,
width,
height,
path = false,
page = false 
)

Parameters:
string $path Filesystem path to the thumb
string $url URL path to the thumb
Access:
private

Definition at line 112 of file MediaTransformOutput.php.

References MediaTransformOutput::$file, MediaTransformOutput::$height, MediaTransformOutput::$page, MediaTransformOutput::$path, MediaTransformOutput::$url, and MediaTransformOutput::$width.

ThumbnailImage::toHtml ( options = array()  ) 

Return HTML.

<img ... /> tag for the thumbnail, will include width and height attributes and a blank alt text (as required).

Parameters:
array $options Associative array of options. Boolean options should be indicated with a value of true for true, and false or absent for false.
alt HTML alt attribute title HTML title attribute desc-link Boolean, show a description link file-link Boolean, show a file download link valign vertical-align property, if the output is an inline element img-class Class applied to the tag, if there is such a tag desc-query String, description link query params custom-url-link Custom URL to link to custom-title-link Custom Title object to link to

For images, desc-link and file-link are implemented as a click-through. For sounds and videos, they may be displayed in other ways.

Returns:
string
Access:
public

Reimplemented from MediaTransformOutput.

Definition at line 148 of file MediaTransformOutput.php.

References $options, $title, Xml::element(), MediaTransformOutput::getDescLinkAttribs(), and MediaTransformOutput::linkWrap().


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

Generated on Sat Sep 5 02:08:48 2009 for MediaWiki by  doxygen 1.5.9