CKFinder 3 – PHP Connector Documentation
EditedImage Class Reference
Inheritance diagram for EditedImage:
EditedFile ExistingFile File

Public Member Functions

 setNewDimensions ($newWidth, $newHeight)
 
 isValid ()
 
- Public Member Functions inherited from EditedFile
 __construct ($fileName, CKFinder $app, $newFileName=null)
 
 isValid ()
 
 getNewFilename ()
 
 getNewExtension ()
 
 saveAsNew ($saveAsNew)
 
 save ($contents, $filePath=null)
 
 setNewContents ($newContents)
 
 getNewContents ()
 
 getWorkingFolder ()
 
- Public Member Functions inherited from ExistingFile
 __construct ($fileName, $folder, ResourceType $resourceType, CKFinder $app)
 
 getPath ()
 
 getFilePath ()
 
 hasValidPath ()
 
 getResourceType ()
 
 hasAllowedExtension ()
 
 isHidden ()
 
 hasHiddenPath ()
 
 exists ()
 
 getContentsStream ()
 
 getContents ()
 
 save ($contents, $filePath=null)
 
 addError (int $number)
 
 getErrors ()
 
 deleteThumbnails ()
 
 deleteResizedImages ()
 
 getTimestamp ()
 
 getMimeType ()
 
 getSize ()
 
- Public Member Functions inherited from File
 __construct ($fileName, CKFinder $app)
 
 hasValidFilename ()
 
 getFilename ()
 
 getExtension ()
 
 getExtensions ($newFileName=null)
 
 autorename (Backend $backend=null, $path='')
 
 isImage ()
 
 getCache ()
 

Protected Attributes

 $newWidth
 
 $newHeight
 
- Protected Attributes inherited from EditedFile
 $workingFolder
 
 $newFileName
 
 $saveAsNew = false
 
 $newContents
 
- Protected Attributes inherited from ExistingFile
 $resourceType
 
 $folder
 
 $errors = []
 
 $metadata
 
 $backend
 
- Protected Attributes inherited from File
 $fileName
 
 $config
 
 $app
 

Additional Inherited Members

- Static Public Member Functions inherited from File
static isValidName ($fileName, $disallowUnsafeCharacters=true)
 
static secureName ($fileName, $disallowUnsafeCharacters=true, $forceAscii=false)
 
static convertToAscii ($str)
 
- Public Attributes inherited from File
const NO_EXTENSION = 'NO_EXT'
 
- Protected Member Functions inherited from EditedFile
 areValidDoubleExtensions ($fileName=null)
 

Detailed Description

The EditedImage class.

Represents an image file that is edited.

Member Function Documentation

◆ isValid()

isValid ( )

Validates the file.

Returns
bool true if the file passed validation
Exceptions
AlreadyExistsException
FileNotFoundException
InvalidExtensionException
InvalidNameException
InvalidRequestException
InvalidUploadException

Reimplemented from EditedFile.

◆ setNewDimensions()

setNewDimensions (   $newWidth,
  $newHeight 
)

Sets new image dimensions.

Parameters
int$newWidth
int$newHeight

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