class ThumbnailSize extends AbstractParameter

The size for the thumbnail image. The default for this union is 64x64.

Methods

array
jsonSerialize()

Specify data which should be serialized to JSON

string
__toString()

A shorthand for JSON-encoding parameters

__construct( int $width, int $height)

ThumbnailSize constructor.

static  ThumbnailSize
w32h32()

Make the size 32 pixels wide, 32 pixels height

static  ThumbnailSize
w64h64()

Make the size 64 pixels wide, 64 pixels high

static  ThumbnailSize
w128h128()

Make the size 128 pixels wide, 128 pixels high

static  ThumbnailSize
w640h480()

Make the size 640 pixels wide, 480 pixels high

static  ThumbnailSize
w1024h768()

Make the size 1024 pixels wide, 768 pixels high

static  array
availableSizes()

Return a list ov available thumbnail sizes

Details

in AbstractParameter at line line 64
array jsonSerialize()

Specify data which should be serialized to JSON

Return Value

array data which can be serialized by json_encode, which is a value of any type other than a resource.

See also

http://php.net/manual/en/jsonserializable.jsonserialize.php

in AbstractParameter at line line 75
string __toString()

A shorthand for JSON-encoding parameters

Return Value

string

at line line 27
__construct( int $width, int $height)

ThumbnailSize constructor.

Parameters

int $width Thumbnail width
int $height Thumbnail height

at line line 37
static ThumbnailSize w32h32()

Make the size 32 pixels wide, 32 pixels height

Return Value

ThumbnailSize

at line line 47
static ThumbnailSize w64h64()

Make the size 64 pixels wide, 64 pixels high

Return Value

ThumbnailSize

at line line 57
static ThumbnailSize w128h128()

Make the size 128 pixels wide, 128 pixels high

Return Value

ThumbnailSize

at line line 67
static ThumbnailSize w640h480()

Make the size 640 pixels wide, 480 pixels high

Return Value

ThumbnailSize

at line line 77
static ThumbnailSize w1024h768()

Make the size 1024 pixels wide, 768 pixels high

Return Value

ThumbnailSize

at line line 87
static array availableSizes()

Return a list ov available thumbnail sizes

Return Value

array