‪TYPO3CMS  ‪main
TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset Class Reference
Inheritance diagram for TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset:
TYPO3\CMS\Install\Configuration\AbstractPreset TYPO3\CMS\Install\Configuration\PresetInterface TYPO3\CMS\Install\Configuration\Image\GraphicsMagickPreset TYPO3\CMS\Install\Configuration\Image\ImageMagick6Preset

Public Member Functions

string getFoundPath ()
 
bool isActive ()
 
bool isAvailable ()
 
array getConfigurationValues ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Install\Configuration\AbstractPreset
 __construct (ConfigurationManager $configurationManager=null)
 
mixed setPostValues (array $postValues)
 
bool getIsAvailable ()
 
bool getIsActive ()
 
string getName ()
 
int getPriority ()
 

Protected Member Functions

mixed findExecutableInPath (array $searchPaths)
 
array getSearchPaths ()
 
string cleanUpPath ($path)
 

Protected Attributes

array $defaultExecutableSearchPaths
 
string $foundPath = ''
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Install\Configuration\AbstractPreset
TYPO3 CMS Core Configuration ConfigurationManager $configurationManager
 
string $name = ''
 
int $priority = 50
 
array $configurationValues = array( )
 
array $readonlyConfigurationValues = array( )
 
array $postValues = array( )
 

Detailed Description

Abstract class implements common image preset code

only to be used within EXT:install

Definition at line 25 of file AbstractImagePreset.php.

Member Function Documentation

◆ cleanUpPath()

string TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::cleanUpPath (   $path)
protected

Consolidate between Windows and Unix and add trailing slash im missing

Parameters
string$path‪Given path
Returns
‪string Cleaned up path

Definition at line 141 of file AbstractImagePreset.php.

Referenced by TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset\getSearchPaths().

◆ findExecutableInPath()

mixed TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::findExecutableInPath ( array  $searchPaths)
abstractprotected

◆ getConfigurationValues()

array TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::getConfigurationValues ( )

◆ getFoundPath()

string TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::getFoundPath ( )

Path where executable was found

Returns
‪string Found path

Definition at line 50 of file AbstractImagePreset.php.

References TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset\$foundPath.

Referenced by TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset\getConfigurationValues().

◆ getSearchPaths()

array TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::getSearchPaths ( )
protected

◆ isActive()

bool TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::isActive ( )

Check is preset is currently active on the system. Overwrites parent method to ignore processor_path setting

Returns
‪bool TRUE if preset is active

Reimplemented from TYPO3\CMS\Install\Configuration\AbstractPreset.

Definition at line 61 of file AbstractImagePreset.php.

◆ isAvailable()

bool TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::isAvailable ( )

Find out if GraphicsMagick is available

Returns
‪bool TRUE if GraphicsMagick executable is found in path

Implements TYPO3\CMS\Install\Configuration\PresetInterface.

Definition at line 81 of file AbstractImagePreset.php.

References TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset\findExecutableInPath(), and TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset\getSearchPaths().

Member Data Documentation

◆ $defaultExecutableSearchPaths

array TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::$defaultExecutableSearchPaths
protected
Initial value:
= array(
'/usr/local/bin/',
'/opt/local/bin/',
'/usr/bin/',
'/usr/X11R6/bin/',
'/opt/bin/',
'C:/php/ImageMagick/',
'C:/php/GraphicsMagick/',
'C:/apache/ImageMagick/',
'C:/apache/GraphicsMagick/',
)

Default paths to search for executable, with trailing slash

Definition at line 29 of file AbstractImagePreset.php.

Referenced by TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset\getSearchPaths().

◆ $foundPath

string TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset::$foundPath = ''
protected

Absolute path with found executable

Definition at line 43 of file AbstractImagePreset.php.

Referenced by TYPO3\CMS\Install\Configuration\Image\AbstractImagePreset\getFoundPath().