Public Member Functions | |
__construct ($newFileName, $fileName, $folder, ResourceType $resourceType, CKFinder $app) | |
getNewFileName () | |
getNewFilePath () | |
setNewFileName (string $newFileName) | |
doRename () | |
isValid () | |
![]() | |
__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 | |
string | $newFileName |
![]() | |
$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' |
The RenamedFile class.
Represents the file being renamed.
__construct | ( | $newFileName, | |
$fileName, | |||
$folder, | |||
ResourceType | $resourceType, | ||
CKFinder | $app | ||
) |
doRename | ( | ) |
Renames the current file.
true
if the file was renamed successfullyException | |
FilesystemException |
getNewFileName | ( | ) |
Returns the new file name of the renamed file.
getNewFilePath | ( | ) |
Returns the new path of the renamed file.
isValid | ( | ) |
Validates the renamed file.
FilesystemException | |
Exception |
setNewFileName | ( | string | $newFileName | ) |
Sets the new file name of the renamed file.
|
protected |
New file name.