XOOPS
2.6.0
|
Public Member Functions | |
getDescription () | |
getImgTag (Response $response, $imgPath, $width=0, $height=0, $attributes=array()) | |
getImgUrl (Response $response, $imgPath, $width=0, $height=0) | |
getName () | |
Public Member Functions inherited from Xoops\Core\Service\AbstractContract | |
getDescription () | |
getMode () | |
getName () | |
getPriority () | |
setPriority ($priority) | |
Protected Attributes | |
$renderScript = 'modules/thumbs/include/thumbrender.php' | |
Protected Attributes inherited from Xoops\Core\Service\AbstractContract | |
$priority = Manager::PRIORITY_MEDIUM | |
Private Member Functions | |
getThumbnailUrl ($imgPath, $width, $height) | |
Additional Inherited Members | |
Public Attributes inherited from Xoops\Core\Service\Contract\ThumbnailInterface | |
const | MODE = \Xoops\Core\Service\Manager::MODE_EXCLUSIVE |
Definition at line 27 of file ThumbsProvider.php.
ThumbsProvider::getDescription | ( | ) |
getDescription - get human readable description of the service provider
Definition at line 48 of file ThumbsProvider.php.
ThumbsProvider::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
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 |
Implements Xoops\Core\Service\Contract\ThumbnailInterface.
Definition at line 115 of file ThumbsProvider.php.
References $height, $imgPath, $url, $width, getThumbnailUrl(), and Xoops\Core\Service\Response\setValue().
ThumbsProvider::getImgUrl | ( | Response | $response, |
$imgPath, | |||
$width = 0 , |
|||
$height = 0 |
|||
) |
getImgUrl - get URL to a thumbnail of the supplied image
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 |
Implements Xoops\Core\Service\Contract\ThumbnailInterface.
Definition at line 99 of file ThumbsProvider.php.
References $height, $imgPath, $width, getThumbnailUrl(), and Xoops\Core\Service\Response\setValue().
ThumbsProvider::getName | ( | ) |
getName - get a short name for this service provider. This should be unique within the scope of the named service, so using module dirname is suggested.
Definition at line 38 of file ThumbsProvider.php.
|
private |
getThumbnailUrl
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 |
Definition at line 63 of file ThumbsProvider.php.
References $height, $helper, $imgPath, $thumbPath, $url, $width, $xoops, and Xoops\getInstance().
Referenced by getImgTag(), and getImgUrl().
|
protected |
Definition at line 30 of file ThumbsProvider.php.