class ImageFile extends File

Methods

__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)

ImageFile constructor.

string
getFileName()

The name of this file.

from File
string
getContentType()

The Content- (or MIME-)Type of this file.

from File
string
getUrl(ImageOptions $options = null)

No description

int
getSize()

The size in bytes of this file.

from File
object
jsonSerialize()

Returns an object to be used by json_encode to serialize objects of this class.

int
getWidth()

Returns the width of the image.

int
getHeight()

Returns the height of the image.

Details

at line 34
__construct(string $fileName, string $contentType, string $url, int $size, int $width, int $height)

ImageFile constructor.

Parameters

string $fileName
string $contentType
string $url
int $size Size in bytes
int $width
int $height

in File at line 55
string getFileName()

The name of this file.

Return Value

string

in File at line 65
string getContentType()

The Content- (or MIME-)Type of this file.

Return Value

string

at line 67
string getUrl(ImageOptions $options = null)

Parameters

ImageOptions $options

Return Value

string

in File at line 85
int getSize()

The size in bytes of this file.

Return Value

int

at line 81
object jsonSerialize()

Returns an object to be used by json_encode to serialize objects of this class.

Return Value

object

See also

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

at line 47
int getWidth()

Returns the width of the image.

Return Value

int

at line 57
int getHeight()

Returns the height of the image.

Return Value

int