OXID eShop CE
4.10.4
|
Public Member Functions | |
__call ($sMethod, $aArgs) | |
getImagePath ($sAbsPath=false) | |
outputImage () |
Static Public Member Functions | |
static | getInstance () |
Protected Member Functions | |
_getShopBasePath () | |
_getImageUri () | |
_getImageName () | |
_getImageMasterPath () | |
_getImageInfo () | |
_getImageTarget () | |
_getNopicImageTarget () | |
_getImageType () | |
_generatePng ($sSource, $sTarget, $iWidth, $iHeight) | |
_generateJpg ($sSource, $sTarget, $iWidth, $iHeight, $iQuality) | |
_generateGif ($sSource, $sTarget, $iWidth, $iHeight) | |
_isTargetPathValid ($sPath) | |
_createFolders ($sDir) | |
_isValidPath ($sPath) | |
_generateImage ($sImageSource, $sImageTarget) | |
_getLockName ($sName) | |
_lock ($sSource) | |
_unlock ($sSource) | |
_setHeader ($sHeader) | |
_getHeaders () |
Protected Attributes | |
$_aHeaders = array() | |
$_aAllowedImgTypes = array("jpg", "jpeg", "png", "gif") | |
$_sImageInfoSep = "_" | |
$_hLockHandle = null | |
$_sImageUri = null | |
$_aConfParamToPath |
Static Protected Attributes | |
static | $_oInstance = null |
Image generator class
Definition at line 106 of file oxdynimggenerator.php.
oxDynImgGenerator::__call | ( | $sMethod, | |
$aArgs | |||
) |
Only used for convenience in UNIT tests by doing so we avoid writing extended classes for testing protected or private methods
string | $sMethod | Methods name |
array | $aArgs | Argument array |
oxSystemComponentException | Throws an exception if the called method does not exist or is not accessable in current class |
Definition at line 198 of file oxdynimggenerator.php.
|
protected |
Checks if valid and creates missing needed folders
string | $sDir | folder(s) to create |
Definition at line 401 of file oxdynimggenerator.php.
|
protected |
Generates GIF type image and returns its location on file system
string | $sSource | image source |
string | $sTarget | image target |
int | $iWidth | image width |
int | $iHeight | image height |
Definition at line 365 of file oxdynimggenerator.php.
|
protected |
Generates requested image
string | $sImageSource | image source |
string | $sImageTarget | image target |
Definition at line 519 of file oxdynimggenerator.php.
|
protected |
Generates JPG type image and returns its location on file system
string | $sSource | image source |
string | $sTarget | image target |
int | $iWidth | image width |
int | $iHeight | image height |
int | $iQuality | new image quality |
Definition at line 350 of file oxdynimggenerator.php.
|
protected |
Generates PNG type image and returns its location on file system
string | $sSource | image source |
string | $sTarget | image target |
int | $iWidth | image width |
int | $iHeight | image height |
Definition at line 334 of file oxdynimggenerator.php.
|
protected |
|
protected |
|
protected |
Returns path to possible master image
Definition at line 262 of file oxdynimggenerator.php.
|
protected |
|
protected |
Returns full requested image path on file system
Definition at line 294 of file oxdynimggenerator.php.
|
protected |
Returns image type used for image generation and header setting
Definition at line 316 of file oxdynimggenerator.php.
|
protected |
|
protected |
Returns lock file name
string | $sName | original file name |
Definition at line 567 of file oxdynimggenerator.php.
|
protected |
|
protected |
|
protected |
Checks if requested image path is valid. If path is valid but is not created - creates directory structure
string | $sPath | image path name to check |
Definition at line 380 of file oxdynimggenerator.php.
|
protected |
Checks if main folder matches requested
string | $sPath | image path name to check |
Definition at line 434 of file oxdynimggenerator.php.
|
protected |
Locks file and returns locking state
string | $sSource | source file which should be locked |
Definition at line 579 of file oxdynimggenerator.php.
|
protected |
Custom header setter
string | $sHeader | header |
Definition at line 718 of file oxdynimggenerator.php.
|
protected |
Deletes lock file
string | $sSource | source file which should be locked |
Definition at line 611 of file oxdynimggenerator.php.
oxDynImgGenerator::getImagePath | ( | $sAbsPath = false | ) |
Returns path to image file which needs should be rendered. If file cannot be found - return false
string | $sAbsPath | absolute requested image path (not url, but real path on file system) |
Definition at line 628 of file oxdynimggenerator.php.
|
static |
Creates and returns picture generator instance
Definition at line 177 of file oxdynimggenerator.php.
oxDynImgGenerator::outputImage | ( | ) |
Creates and outputs requested image. If source file was not found - tries to render related "nopic.jpg". If "nopic.jpg" is not available - sends 404 header to browser
Definition at line 675 of file oxdynimggenerator.php.
|
protected |
Definition at line 128 of file oxdynimggenerator.php.
|
protected |
Definition at line 157 of file oxdynimggenerator.php.
|
protected |
Definition at line 121 of file oxdynimggenerator.php.
|
protected |
Definition at line 143 of file oxdynimggenerator.php.
|
staticprotected |
Definition at line 114 of file oxdynimggenerator.php.
|
protected |
Definition at line 136 of file oxdynimggenerator.php.
|
protected |
Definition at line 150 of file oxdynimggenerator.php.