TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ImageManipulationElement Class Reference
Inheritance diagram for ImageManipulationElement:
AbstractFormElement AbstractNode NodeInterface

Public Member Functions

 render ()
 
 getPreview (File $file, $crop)
 
- Public Member Functions inherited from AbstractFormElement
 __construct (NodeFactory $nodeFactory, array $data)
 
- Public Member Functions inherited from AbstractNode
 __construct (NodeFactory $nodeFactory, array $data)
 
 render ()
 

Protected Member Functions

 getFile (array $row, $fieldName)
 
 getImageManipulationInfoTable ($rawImageManipulationValue)
 
- Protected Member Functions inherited from AbstractFormElement
 isWizardsDisabled ()
 
 formMaxWidth ($size=48)
 
 getClipboardElements ($allowed, $mode)
 
 getLanguageService ()
 
- Protected Member Functions inherited from AbstractNode
 initializeResultArray ()
 
 mergeChildReturnIntoExistingResult (array $existing, array $childReturn)
 
 getValidationDataAsDataAttribute (array $config)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

 $defaultConfig
 
- Protected Attributes inherited from AbstractFormElement
 $defaultInputWidth = 30
 
 $minimumInputWidth = 10
 
 $maxInputWidth = 50
 
 $clipboard = null
 
 $iconFactory
 
- Protected Attributes inherited from AbstractNode
 $data = array()
 

Detailed Description

Generation of image manipulation TCEform element

Definition at line 29 of file ImageManipulationElement.php.

Member Function Documentation

getFile ( array  $row,
  $fieldName 
)
protected

Get file object

Parameters
array$row
string$fieldName
Returns
NULL|

Definition at line 160 of file ImageManipulationElement.php.

References MathUtility\canBeInterpretedAsInteger(), and ResourceFactory\getInstance().

Referenced by ImageManipulationElement\render().

getImageManipulationInfoTable (   $rawImageManipulationValue)
protected

Get image manipulation info table

Parameters
string$rawImageManipulationValue
Returns
string

Definition at line 224 of file ImageManipulationElement.php.

References AbstractFormElement\getLanguageService().

Referenced by ImageManipulationElement\render().

getPreview ( File  $file,
  $crop 
)

Get preview image if cropping is set

Parameters
File$file
string$crop
Returns
string

Definition at line 190 of file ImageManipulationElement.php.

References ProcessedFile\CONTEXT_IMAGECROPSCALEMASK, and File\process().

Referenced by ImageManipulationElement\render().

render ( )

Member Data Documentation

$defaultConfig
protected
Initial value:
= array(
'file_field' => 'uid_local',
'enableZoom' => false,
'allowedExtensions' => null,
'ratios' => array(
'1.7777777777777777' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.16_9',
'1.3333333333333333' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.4_3',
'1' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.1_1',
'NaN' => 'LLL:EXT:lang/locallang_wizards.xlf:imwizard.ratio.free',
)
)

Definition at line 36 of file ImageManipulationElement.php.