class Type (View source)

Constants

RESIZE_PROPORTIONAL

Thumbnail sizing mode: proportional.

RESIZE_EXACT

Thumbnail sizing mode: exact dimensions.

RESIZE_DEFAULT

Default thumbnail sizing mode.

Methods

static Type[]
getList()

Get the list of all the available thumbnail types.

static Version[]
getVersionList()

Get the list of all the available thumbnail type versions.

static 
exportList(SimpleXMLElement $node)

Export the list of all the thumbnail types.

static Type|null
getByID(int $id)

Get a thumbnail type given its id.

static Type|null
getByHandle(string $ftTypeHandle)

Get a thumbnail type given its handle.

static string[]
getSizingOptions()

Get all the available thumbnail sizing options.

Details

static Type[] getList()

Get the list of all the available thumbnail types.

Return Value

Type[]

static Version[] getVersionList()

Get the list of all the available thumbnail type versions.

Return Value

Version[]

static exportList(SimpleXMLElement $node)

Export the list of all the thumbnail types.

Parameters

SimpleXMLElement $node the parent node to append the thumbnailtypes XML node to

static Type|null getByID(int $id)

Get a thumbnail type given its id.

Parameters

int $id

Return Value

Type|null

static Type|null getByHandle(string $ftTypeHandle)

Get a thumbnail type given its handle.

Parameters

string $ftTypeHandle

Return Value

Type|null

static string[] getSizingOptions()

Get all the available thumbnail sizing options.

Return Value

string[] The list of all the Type::RESIZE_... constants.