Inherits MediaTransformOutput.
Public Member Functions | |
ThumbnailImage ($file, $url, $width, $height, $path=false, $page=false) | |
toHtml ($options=array()) | |
Return HTML. |
Definition at line 106 of file MediaTransformOutput.php.
ThumbnailImage::ThumbnailImage | ( | $ | file, | |
$ | url, | |||
$ | width, | |||
$ | height, | |||
$ | path = false , |
|||
$ | page = false | |||
) |
string | $path Filesystem path to the thumb | |
string | $url URL path to the thumb |
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).
array | $options Associative array of options. Boolean options should be indicated with a value of true for true, and false or absent for false. |
For images, desc-link and file-link are implemented as a click-through. For sounds and videos, they may be displayed in other ways.
Reimplemented from MediaTransformOutput.
Definition at line 148 of file MediaTransformOutput.php.
References $options, $title, Xml::element(), MediaTransformOutput::getDescLinkAttribs(), and MediaTransformOutput::linkWrap().