lib/ezimage/classes/ezimagemanager.php
File containing the eZImageManager class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZImageManager
File containing the eZImageManager class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Properties


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


null|\eZImageManager
$instance= ''
Singleton instance of eZImageManager used by {@link eZImageManager::instance()} Reset with {@link 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()
)
:
bool
Converts 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()
)
:
bool
Creates 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(
)
:
\eZImageManager
Returns a shared instance of the eZImageManager class and makes it ready for use.
As in calls {@link self::readINISettings()} and {@link 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
)
:
array
Image 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(
)
:
\eZImageManager
Returns a shared instance of the eZImageManager class.
Note: In most cases you'd want to use {@link 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(
)
:
void
Reset a shared instance of the eZImageManager class and factory variable.
As used by {@link eZImageManager::instance()} and {@link eZImageManager::factory()}
- Since
- 4.3