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 31
__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 54
string getFileName()

The name of this file

Return Value

string

in File at line 66
string getContentType()

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

Return Value

string

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

Parameters

ImageOptions $options

Return Value

string

in File at line 90
int getSize()

The size in bytes of this file.

Return Value

int

at line 86
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 46
int getWidth()

Returns the width of the image.

Return Value

int

at line 58
int getHeight()

Returns the height of the image.

Return Value

int