Definition at line 28 of file ThumbnailInterface.php.
Xoops\Core\Service\Contract\ThumbnailInterface::getImgTag |
( |
Response |
$response, |
|
|
|
$imgPath, |
|
|
|
$width = 0 , |
|
|
|
$height = 0 , |
|
|
|
$attributes = array() |
|
) |
| |
getImgTag - get a full HTML img tag to display a thumbnail of the supplied image
- Parameters
-
Response | $response | object |
string | $imgPath | path to image to be thumbed |
integer | $width | maximum width of thumbnail in pixels, 0 to use default |
integer | $height | maximum height of thumbnail in pixels, 0 to use default |
array | $attributes | array of attribute name => value pairs for img tag |
- Returns
- void - response->value set to image tag
Implemented in ThumbsProvider.
Xoops\Core\Service\Contract\ThumbnailInterface::getImgUrl |
( |
Response |
$response, |
|
|
|
$imgPath, |
|
|
|
$width = 0 , |
|
|
|
$height = 0 |
|
) |
| |
getImgUrl - get URL to a thumbnail of the supplied image
- Parameters
-
Response | $response | object |
string | $imgPath | path to image to be thumbed |
integer | $width | maximum width of thumbnail in pixels, 0 to use default |
integer | $height | maximum height of thumbnail in pixels, 0 to use default |
- Returns
- void - response->value set to URL string
Implemented in ThumbsProvider.
The documentation for this interface was generated from the following file: