Public Member Functions | |
generateArticlePictures ($oObject, $iIndex) | |
deleteArticleMasterPicture ($oObject, $iIndex, $blDeleteMasterPicture=true) | |
deleteMainIcon ($oObject) | |
deleteThumbnail ($oObject) | |
deleteZoomPicture ($oObject, $iIndex) | |
getIconName ($sFilename) | |
getMainIconName ($sMasterImageFile) | |
getThumbName ($sMasterImageFile) | |
getZoomName ($sMasterImageFile, $iIndex) | |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
_getArticleMasterPictureName ($oObject, $iIndex) | |
_getBaseMasterImageFileName ($sMasterImageFile) | |
Static Private Attributes | |
static | $_instance = null |
class for pictures processing
Definition at line 6 of file oxpicturehandler.php.
oxPictureHandler._getArticleMasterPictureName | ( | $ | oObject, | |
$ | iIndex | |||
) | [protected] |
Get article master picture file name.
oxArticle | $oObject article object | |
int | $iIndex master picture index |
Definition at line 124 of file oxpicturehandler.php.
oxPictureHandler._getBaseMasterImageFileName | ( | $ | sMasterImageFile | ) | [protected] |
Gets master image file name and removes suffics (e.g. _p1) from file end.
string | $sMasterImageFile master image file name |
Definition at line 388 of file oxpicturehandler.php.
oxPictureHandler.deleteArticleMasterPicture | ( | $ | oObject, | |
$ | iIndex, | |||
$ | blDeleteMasterPicture = true | |||
) |
Deletes master picture and all images generated from it. If third parameter is false, skips master image delete, only all generated images will be deleted.
oxArticle | $oObject article object | |
int | $iIndex master picture index | |
bool | $blDeleteMasterPicture delete master picture, default is true |
Definition at line 148 of file oxpicturehandler.php.
oxPictureHandler.deleteMainIcon | ( | $ | oObject | ) |
Deletes custom main icon, which name is specified in oxicon field.
oxArticle | $oObject article object |
Definition at line 222 of file oxpicturehandler.php.
oxPictureHandler.deleteThumbnail | ( | $ | oObject | ) |
Deletes custom thumbnail, which name is specified in oxthumb field.
oxArticle | $oObject article object |
Definition at line 255 of file oxpicturehandler.php.
oxPictureHandler.deleteZoomPicture | ( | $ | oObject, | |
$ | iIndex | |||
) |
Deletes custom zoom picture, which name is specified in oxzoom field.
oxArticle | $oObject article object | |
int | $iIndex zoom picture index |
Definition at line 288 of file oxpicturehandler.php.
oxPictureHandler.generateArticlePictures | ( | $ | oObject, | |
$ | iIndex | |||
) |
Generates article pictures (icon, thumbnail, zoom picture) from master picture.
oxArticle | $oObject article object | |
int | $iIndex master picture index |
Definition at line 47 of file oxpicturehandler.php.
oxPictureHandler.getIconName | ( | $ | sFilename | ) |
Returns article picture icon name for selected article picture
string | $sFilename file name |
Definition at line 328 of file oxpicturehandler.php.
static oxPictureHandler.getInstance | ( | ) | [static] |
Returns object instance
Definition at line 21 of file oxpicturehandler.php.
oxPictureHandler.getMainIconName | ( | $ | sMasterImageFile | ) |
Returns article main icon name generated from master picture
string | $sMasterImageFile master image file name |
Definition at line 342 of file oxpicturehandler.php.
oxPictureHandler.getThumbName | ( | $ | sMasterImageFile | ) |
Returns thumb image name generated from master picture
string | $sMasterImageFile master image file name |
Definition at line 357 of file oxpicturehandler.php.
oxPictureHandler.getZoomName | ( | $ | sMasterImageFile, | |
$ | iIndex | |||
) |
Returns zoom image name generated from master picture
string | $sMasterImageFile master image file name | |
string | $iIndex master image index |
Definition at line 373 of file oxpicturehandler.php.
oxPictureHandler.$_instance = null [static, private] |
Definition at line 13 of file oxpicturehandler.php.