class Version (View source)

Handles regular and retina thumbnails. e.g. Each thumbnail type has two versions of itself the regular one and the 2x one.

Properties

protected $directoryName
protected $handle
protected $name
protected $sizingMode
protected $width
protected $height
protected $isDoubledVersion

Methods

__construct($directoryName, $handle, $name, $width, $height, $isDoubledVersion = false, $sizingMode = ThumbnailType::RESIZE_DEFAULT)

No description

setHandle(mixed $handle)

No description

setName(mixed $name)

No description

setSizingMode(mixed $sizingMode)

No description

setHeight($height)

No description

mixed
getHandle()

No description

string
getName()

No description

string
getSizingMode()

No description

getSizingModeDisplayName()

No description

string
getDisplayName(string $format = 'html')

Returns the display name for this thumbnail type version (localized and escaped accordingly to $format)

setWidth(mixed $width)

No description

mixed
getWidth()

No description

mixed
getHeight()

No description

setDirectoryName(mixed $directoryName)

No description

mixed
getDirectoryName()

No description

static 
getByHandle($handle)

No description

getFilePath(Version $fv)

No description

Details

__construct($directoryName, $handle, $name, $width, $height, $isDoubledVersion = false, $sizingMode = ThumbnailType::RESIZE_DEFAULT)

No description

Parameters

$directoryName
$handle
$name
$width
$height
$isDoubledVersion
$sizingMode

setHandle(mixed $handle)

No description

Parameters

mixed $handle

setName(mixed $name)

No description

Parameters

mixed $name

setSizingMode(mixed $sizingMode)

No description

Parameters

mixed $sizingMode

setHeight($height)

No description

Parameters

$height

mixed getHandle()

No description

Return Value

mixed

string getName()

No description

Return Value

string

string getSizingMode()

No description

Return Value

string

getSizingModeDisplayName()

No description

string getDisplayName(string $format = 'html')

Returns the display name for this thumbnail type version (localized and escaped accordingly to $format)

Parameters

string $format

= 'html' Escape the result in html format (if $format is 'html'). If $format is 'text' or any other value, the display name won't be escaped.

Return Value

string

setWidth(mixed $width)

No description

Parameters

mixed $width

mixed getWidth()

No description

Return Value

mixed

mixed getHeight()

No description

Return Value

mixed

setDirectoryName(mixed $directoryName)

No description

Parameters

mixed $directoryName

mixed getDirectoryName()

No description

Return Value

mixed

static getByHandle($handle)

No description

Parameters

$handle

getFilePath(Version $fv)

No description

Parameters

Version $fv