PHP Class eZ\Publish\Core\REST\Common\FieldTypeProcessor\ImageProcessor

Inheritance: extends BinaryInputProcessor
Show file Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$router Symfony\Component\Routing\RouterInterface
$urlTemplate string Template for image URLs.
$variations string[] array( 'small', 'thumbnail', 'large' )

Public Methods

Method Description
__construct ( string $temporaryDirectory, Symfony\Component\Routing\RouterInterface $router, array $variations )
postProcessValueHash ( $outgoingValueHash )
preProcessValueHash ( $incomingValueHash )

Protected Methods

Method Description
generateUrl ( string $path, string $variation ) : string Generates a URL for $path in $variation.

Method Details

__construct() public method

public __construct ( string $temporaryDirectory, Symfony\Component\Routing\RouterInterface $router, array $variations )
$temporaryDirectory string
$router Symfony\Component\Routing\RouterInterface
$variations array array of variations identifiers

generateUrl() protected method

Generates a URL for $path in $variation.
protected generateUrl ( string $path, string $variation ) : string
$path string
$variation string
return string

postProcessValueHash() public method

public postProcessValueHash ( $outgoingValueHash )

preProcessValueHash() public method

public preProcessValueHash ( $incomingValueHash )

Property Details

$router protected property

protected RouterInterface,Symfony\Component\Routing $router
return Symfony\Component\Routing\RouterInterface

$urlTemplate protected property

Template for image URLs.
protected string $urlTemplate
return string

$variations protected property

array( 'small', 'thumbnail', 'large' )
protected string[] $variations
return string[]