OXID eShop CE
6.2.2
|
Public Member Functions | |
deleteArticleMasterPicture ($oObject, $iIndex, $blDeleteMasterPicture=true) | |
deleteMainIcon ($oObject) | |
deleteThumbnail ($oObject) | |
deleteZoomPicture ($oObject, $iIndex) | |
getIconName ($sFilename) | |
getMainIconName ($sMasterImageFile) | |
getThumbName ($sMasterImageFile) | |
getZoomName ($sMasterImageFile, $iIndex) | |
getImageSize ($aImgSizes, $sIndex=null) | |
getAltImageUrl ($sFilePath, $sFile, $blSSL=null) | |
getPicUrl ($sPath, $sFile, $sSize, $sIndex=null, $sAltPath=false, $bSsl=null) | |
getProductPicUrl ($sPath, $sFile, $sSize, $sIndex=null, $bSsl=null) | |
Protected Member Functions | |
_getBaseMasterImageFileName ($sMasterImageFile) | |
_getPictureInfo ($sFilePath, $sFile, $blAdmin=false, $blSSL=null, $iLang=null, $iShopId=null) | |
class for pictures processing
|
protected |
Gets master image file name and removes suffics (e.g. _p1) from file end.
string | $sMasterImageFile | master image file name |
|
protected |
Returns dir/url info for given image file
string | $sFilePath | path to file |
string | $sFile | filename in pictures dir |
bool | $blAdmin | is admin mode ? |
bool | $blSSL | is ssl ? |
int | $iLang | language id |
int | $iShopId | shop id |
OxidEsales\EshopCommunity\Core\PictureHandler::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.
\OxidEsales\Eshop\Application\Model\Article | $oObject | article object |
int | $iIndex | master picture index |
bool | $blDeleteMasterPicture | delete master picture, default is true |
OxidEsales\EshopCommunity\Core\PictureHandler::deleteMainIcon | ( | $oObject | ) |
Deletes custom main icon, which name is specified in oxicon field.
\OxidEsales\Eshop\Application\Model\Article | $oObject | article object |
OxidEsales\EshopCommunity\Core\PictureHandler::deleteThumbnail | ( | $oObject | ) |
Deletes custom thumbnail, which name is specified in oxthumb field.
\OxidEsales\Eshop\Application\Model\Article | $oObject | article object |
OxidEsales\EshopCommunity\Core\PictureHandler::deleteZoomPicture | ( | $oObject, | |
$iIndex | |||
) |
Deletes custom zoom picture, which name is specified in oxzoom field.
\OxidEsales\Eshop\Application\Model\Article | $oObject | article object |
int | $iIndex | zoom picture index |
OxidEsales\EshopCommunity\Core\PictureHandler::getAltImageUrl | ( | $sFilePath, | |
$sFile, | |||
$blSSL = null |
|||
) |
Returns alternative image url
string | $sFilePath | path to file |
string | $sFile | filename in pictures dir |
bool | $blSSL | is ssl ? |
OxidEsales\EshopCommunity\Core\PictureHandler::getIconName | ( | $sFilename | ) |
Returns article picture icon name for selected article picture
string | $sFilename | file name |
OxidEsales\EshopCommunity\Core\PictureHandler::getImageSize | ( | $aImgSizes, | |
$sIndex = null |
|||
) |
Returns image sizes from provided config array
mixed | $aImgSizes | array or string of sizes in format x*y |
string | $sIndex | index in array |
OxidEsales\EshopCommunity\Core\PictureHandler::getMainIconName | ( | $sMasterImageFile | ) |
Returns article main icon name generated from master picture
string | $sMasterImageFile | master image file name |
OxidEsales\EshopCommunity\Core\PictureHandler::getPicUrl | ( | $sPath, | |
$sFile, | |||
$sSize, | |||
$sIndex = null , |
|||
$sAltPath = false , |
|||
$bSsl = null |
|||
) |
Returns requested picture url. If image is not available - returns false
string | $sPath | path from pictures/master/ |
string | $sFile | picture file name |
string | $sSize | picture sizes (x, y) |
string | $sIndex | picture index [optional] |
string | $sAltPath | alternative picture path [optional] |
bool | $bSsl | Whether to force SSL |
OxidEsales\EshopCommunity\Core\PictureHandler::getProductPicUrl | ( | $sPath, | |
$sFile, | |||
$sSize, | |||
$sIndex = null , |
|||
$bSsl = null |
|||
) |
Returns requested product picture url. If image is not available - returns url to nopic.jpg
string | $sPath | path from pictures/master/ |
string | $sFile | picture file name |
string | $sSize | picture sizes (x, y) |
string | $sIndex | picture index [optional] |
bool | $bSsl | Whether to force SSL |
OxidEsales\EshopCommunity\Core\PictureHandler::getThumbName | ( | $sMasterImageFile | ) |
Returns thumb image name generated from master picture
string | $sMasterImageFile | master image file name |
OxidEsales\EshopCommunity\Core\PictureHandler::getZoomName | ( | $sMasterImageFile, | |
$iIndex | |||
) |
Returns zoom image name generated from master picture
string | $sMasterImageFile | master image file name |
string | $iIndex | master image index |