CKFinder 3 – PHP Connector Documentation
ResizedImageAbstract Class Reference
Inheritance diagram for ResizedImageAbstract:
ResizedImage Thumbnail

Public Member Functions

 __construct (ResourceType $sourceFileResourceType, string $sourceFileDir, string $sourceFileName, int $requestedWidth, int $requestedHeight)
 
 getResourceType ()
 
 getFileName ()
 
 getFilePath ()
 
 getMimeType ()
 
 getTimestamp ()
 
 getSize ()
 
 getImageData ()
 
 setImageData ($imageData)
 
 exists ()
 
 save ()
 
 load ()
 
 readStream ()
 
 create ()
 
 getDirectory ()
 

Protected Attributes

 $sourceFileResourceType
 
 $backend
 
 $sourceFileDir
 
 $sourceFileName
 
 $requestedWidth
 
 $requestedHeight
 
 $resizedImageFileName
 
 $resizedImageData
 
 $resizedImageSize
 
 $resizedImageMimeType
 
 $timestamp
 
ExtensionMimeTypeDetector $mimeTypeDetector
 

Member Function Documentation

◆ create()

create ( )
abstract

Creates the resized image.

Reimplemented in ResizedImage, and Thumbnail.

◆ exists()

exists ( )

Checks if the resized image already exists.

Returns
bool

◆ getDirectory()

getDirectory ( )
abstract

Returns a directory path for the resized image.

Reimplemented in ResizedImage, and Thumbnail.

◆ getFileName()

getFileName ( )

Returns the resized image file name.

Returns
string

◆ getFilePath()

getFilePath ( )

Returns the backend-relative resized image file path.

Returns
string

◆ getImageData()

getImageData ( )

Returns the resized image binary data.

Returns
string binary image date

◆ getMimeType()

getMimeType ( )

Returns the resized image MIME type.

Returns
string

◆ getResourceType()

getResourceType ( )

Returns the resized image resource type.

Returns
ResourceType

◆ getSize()

getSize ( )

Returns the resized image size in bytes.

Exceptions
FilesystemException

◆ getTimestamp()

getTimestamp ( )

Returns a timestamp of the last modification of this resized image.

Returns
int timestamp

◆ load()

load ( )

Loads an existing resized image from a backend.

Exceptions
FilesystemException

◆ readStream()

readStream ( )

Returns image data stream.

Returns
bool|false|resource
Exceptions
CKFinderException

◆ save()

save ( )

Saves the resized image in the backend.

Returns
bool true if saved successfully

◆ setImageData()

setImageData (   $imageData)

Sets the image data.

Parameters
string$imageDatabinary image data

The documentation for this class was generated from the following file: