CKFinder 3 – PHP Connector Documentation
MovedFile Class Reference
Inheritance diagram for MovedFile:
CopiedFile ExistingFile File

Public Member Functions

 __construct ($fileName, $folder, ResourceType $resourceType, CKFinder $app)
 
 doMove ()
 
- Public Member Functions inherited from CopiedFile
 __construct ($fileName, $folder, ResourceType $resourceType, CKFinder $app)
 
 getTargetFolder ()
 
 getFileName ()
 
 setCopyOptions (string $copyOptions)
 
 hasAllowedExtension ()
 
 hasAllowedSize ()
 
 autorename (Backend $backend=null, $path='')
 
 doCopy ()
 
 getTargetFilename ()
 
 getSourceFilename ()
 
 getTargetFilePath ()
 
 getSourceFilePath ()
 
 isValid ()
 
- 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 ()
 

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 Attributes inherited from CopiedFile
 $targetFolder
 
string $copyOptions
 
string $sourceFileName
 
- Protected Attributes inherited from ExistingFile
 $resourceType
 
 $folder
 
 $errors = []
 
 $metadata
 
 $backend
 
- Protected Attributes inherited from File
 $fileName
 
 $config
 
 $app
 

Detailed Description

The MovedFile class.

Represents the moved file.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $fileName,
  $folder,
ResourceType  $resourceType,
CKFinder  $app 
)

Constructor.

Parameters
string$fileNamesource file name
string$foldersource file resource type relative path
ResourceType$resourceTypesource file resource type
CKFinder$appapp

Reimplemented from CopiedFile.

Member Function Documentation

◆ doMove()

doMove ( )

Moves the current file.

Returns
bool true if the file was moved successfully
Exceptions

Exception


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