PHP Class Pimcore\Model\Asset\Image\Thumbnail\Processor

Mostra file Open project: pimcore/pimcore Class Usage Examples

Protected Properties

Property Type Description
$argumentMapping

Public Methods

Method Description
getAllowedFormat ( $format, array $allowed = [], string $fallback = "png" ) : string
process ( $asset, Config $config, null $fileSystemPath = null, boolean $deferred = false, boolean $returnAbsolutePath = false, boolean &$generated = false ) : mixed | string
processOptimizeQueue ( )

Protected Methods

Method Description
returnPath ( $path, $absolute ) : mixed

Method Details

getAllowedFormat() public static method

public static getAllowedFormat ( $format, array $allowed = [], string $fallback = "png" ) : string
$format
$allowed array
$fallback string
return string

process() public static method

public static process ( $asset, Config $config, null $fileSystemPath = null, boolean $deferred = false, boolean $returnAbsolutePath = false, boolean &$generated = false ) : mixed | string
$asset
$config Config
$fileSystemPath null
$deferred boolean deferred means that the image will be generated on-the-fly (details see below)
$returnAbsolutePath boolean
$generated boolean
return mixed | string

processOptimizeQueue() public static method

public static processOptimizeQueue ( )

returnPath() protected static method

protected static returnPath ( $path, $absolute ) : mixed
$path
$absolute
return mixed

Property Details

$argumentMapping protected_oe static_oe property

protected static $argumentMapping