eZPublish  3.8
eZImageLayer Class Reference

Defines a layer in a image object. More...

+ Inheritance diagram for eZImageLayer:
+ Collaboration diagram for eZImageLayer:

Public Member Functions

createForFile ($fileName, $filePath, $fileType=false)
 
 eZImageLayer ($imageObjectRef=null, $imageObject=null, $width=false, $height=false, $font=false)
 
 mergeLayer (&$image, &$layerData, &$lastLayerData)
 
 setTemplateURI ($uri)
 
 templateData ()
 
- Public Member Functions inherited from eZImageInterface
 allocateColor ($name, $red, $green, $blue)
 
 alternativeText ()
 
attribute ($name)
 
 attributes ()
 
 blendImage ($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX=0, $sourceY=0)
 
 cleanupRegisteredImages ()
 
 clear ($color=false)
 
 clone (&$image)
 
 cloneImage ($imageObject, $width, $height, $useTruecolor=null)
 
 color ($name)
 
 copyImage ($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX=0, $sourceY=0)
 
 create ($width, $height, $useTruecolor=null)
 
 destroy ()
 
 drawText (&$font, $textColor, $text, $x, $y, $angle, $imageObject=null)
 
 eZImageInterface ($imageObjectRef=null, $imageObject=null, $width=false, $height=false)
 
 font ()
 
 hasAttribute ($name)
 
hasSize ()
 
 height ()
 
 imageObject ($createMissing=true)
 
imagePath ()
 
 isProcessed ()
 
 isTruecolor ()
 
 load ()
 
 loadGIF ($storedPath, $storedFile)
 
 loadJPEG ($storedPath, $storedFile)
 
 loadPNG ($storedPath, $storedFile)
 
 merge ($imageObject, $x, $y, $width, $height)
 
 mergeImage ($destinationImageObject, $imageObject, $destinationX, $destinationY, $sourceWidth, $sourceHeight, $sourceX=0, $sourceY=0, $transparency=0)
 
 process ()
 
 processImage ()
 
 setAlternativeText ($text)
 
 setFont ($font)
 
 setHeight ($h)
 
 setStoredFile ($file, $path, $type)
 
 setTextColor ($textColor)
 
 setWidth ($w)
 
 store ($fileName, $filePath, $type)
 
 textColor ()
 
 unregisterImage ($imageRef)
 
 width ()
 

Private Attributes

 $TemplateURI
 

Additional Inherited Members

- Static Public Member Functions inherited from eZImageInterface
 hasGD2 ()
 
- Protected Member Functions inherited from eZImageInterface
 imageObjectInternal ($createMissing=true)
 
 registerImage ($image)
 

Detailed Description

Defines a layer in a image object.

Member Function Documentation

& eZImageLayer::createForFile (   $fileName,
  $filePath,
  $fileType = false 
)

Creates a new file layer for the file $fileName in path $filePath.

Referenced by eZTemplateImageOperator\loadImage(), and eZTemplateImageOperator\modify().

eZImageLayer::eZImageLayer (   $imageObjectRef = null,
  $imageObject = null,
  $width = false,
  $height = false,
  $font = false 
)

Constructor

Referenced by createForFile(), and eZImageTextLayer\eZImageTextLayer().

eZImageLayer::mergeLayer ( $image,
$layerData,
$lastLayerData 
)

Tries to merge the current layer with the layer $lastLayerData onto the image object $image. Different kinds of layer classes will merge layers differently.

eZImageLayer::setTemplateURI (   $uri)

Sets the URI of the template to use for displaying it using the template engine to $uri.

eZImageLayer::templateData ( )

A definition which tells the template engine which template to use for displaying the image.

Member Data Documentation

eZImageLayer::$TemplateURI
private

The documentation for this class was generated from the following file: