Public Member Functions | |
setNewDimensions ($newWidth, $newHeight) | |
isValid () | |
![]() | |
__construct ($fileName, CKFinder $app, $newFileName=null) | |
isValid () | |
getNewFilename () | |
getNewExtension () | |
saveAsNew ($saveAsNew) | |
save ($contents, $filePath=null) | |
setNewContents ($newContents) | |
getNewContents () | |
getWorkingFolder () | |
![]() | |
__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 () | |
![]() | |
__construct ($fileName, CKFinder $app) | |
hasValidFilename () | |
getFilename () | |
getExtension () | |
getExtensions ($newFileName=null) | |
autorename (Backend $backend=null, $path='') | |
isImage () | |
getCache () | |
Protected Attributes | |
$newWidth | |
$newHeight | |
![]() | |
$workingFolder | |
$newFileName | |
$saveAsNew = false | |
$newContents | |
![]() | |
$resourceType | |
$folder | |
$errors = [] | |
$metadata | |
$backend | |
![]() | |
$fileName | |
$config | |
$app | |
Additional Inherited Members | |
![]() | |
static | isValidName ($fileName, $disallowUnsafeCharacters=true) |
static | secureName ($fileName, $disallowUnsafeCharacters=true, $forceAscii=false) |
static | convertToAscii ($str) |
![]() | |
const | NO_EXTENSION = 'NO_EXT' |
![]() | |
areValidDoubleExtensions ($fileName=null) | |
The EditedImage class.
Represents an image file that is edited.
isValid | ( | ) |
Validates the file.
true
if the file passed validationAlreadyExistsException | |
FileNotFoundException | |
InvalidExtensionException | |
InvalidNameException | |
InvalidRequestException | |
InvalidUploadException |
Reimplemented from EditedFile.
setNewDimensions | ( | $newWidth, | |
$newHeight | |||
) |
Sets new image dimensions.
int | $newWidth | |
int | $newHeight |