lib/ezimage/classes/ezimagemanager.php
\eZImageManager
Properties

bool
$factory= 'false'
Factory flag as used by {@see eZImageManager::factory()} Reset with {@see eZImageManager::resetInstance()}
falseDetails- Type
- bool

null|\eZImageManager
$instance= ''
Singleton instance of eZImageManager used by {@see eZImageManager::instance()} Reset with {@see eZImageManager::resetInstance()}
- Type
- null | \eZImageManager
Methods

analyzeImage(
$mimeData, $parameters
=
array()
)
:
void| Name | Type | Description |
|---|---|---|
| $mimeData | ||
| $parameters |

appendQualityValue(
$mimeType, $qualityValue
)
:
void| Name | Type | Description |
|---|---|---|
| $mimeType | ||
| $qualityValue |

convert(
mixed $sourceMimeData, mixed $destinationMimeData, mixed $aliasName
=
false, array $parameters
=
array()
)
:
boolConverts the source image $sourceMimeData into the destination image $destinationMimeData.
| Name | Type | Description |
|---|---|---|
| $sourceMimeData | mixed | Source image, either a mimedata array or the source image path |
| $destinationMimeData | mixed | Either a mimedata array or the target image path |
| $aliasName | mixed | Target alias (small, medium, large...) |
| $parameters | array | Optional parameters. Known ones so far: (basename) |
| Type | Description |
|---|---|
| bool |

createImageAlias(
string $aliasName, array $existingAliasList, array $parameters
=
array()
)
:
boolCreates the image alias $aliasName if it's not already part of the existing aliases
| Name | Type | Description |
|---|---|---|
| $aliasName | string | Name of the alias to create |
| $existingAliasList | array | Reference to the current alias list. The created alias will be added to the list. |
| $parameters | array | Optional array that can be used to specify the image's basename |
| Type | Description |
|---|---|
| bool | true if the alias was created, false if it wasn't |

factory(
)
:
\eZImageManagerReturns a shared instance of the eZImageManager class and makes it ready for use.
As in calls {@see self::readINISettings()} and {@see eZImageAnalyzer::readAnalyzerSettingsFromINI()}
| Type | Description |
|---|---|
| \eZImageManager |
- Since
- 4.3

factoryFor(
$factoryName, $iniFile
=
false, $converterName
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $factoryName | ||
| $iniFile | ||
| $converterName |

imageAliasInfo(
mixed $mimeData, string $aliasName, $isAliasNew
=
false
)
:
arrayImage information for $aliasName. This is the information which normally would be provided during generation of aliasName. This so that requests not holding the lock will provide meaningful information.
| Name | Type | Description |
|---|---|---|
| $mimeData | mixed | |
| $aliasName | string | |
| $isAliasNew |
| Type | Description |
|---|---|
| array |

instance(
)
:
\eZImageManagerReturns a shared instance of the eZImageManager class.
Note: In most cases you'd want to use {@see self:factory()} instead.
| Type | Description |
|---|---|
| \eZImageManager |

isFilterAllowed(
$filterName, $mimeData
)
:
void| Name | Type | Description |
|---|---|---|
| $filterName | ||
| $mimeData |

readConversionRuleSettingsFromINI(
$iniFile
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $iniFile |

readMIMETypeQualitySettingFromINI(
$iniFile
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $iniFile |

readMIMETypeSettingFromINI(
$mimeGroup, $iniFile
=
false
)
:
void| Name | Type | Description |
|---|---|---|
| $mimeGroup | ||
| $iniFile |

resetInstance(
)
:
voidReset a shared instance of the eZImageManager class and factory variable.
As used by {@see eZImageManager::instance()} and {@see eZImageManager::factory()}
- Since
- 4.3