Class AbstractFileStorage
category |
System |
---|---|
package |
Shared |
subpackage |
Storage |
__construct(\WritableDirectory $storageDirectory)
_createAndReturnNewFilename(\FilenameStringType $existingFilename) : string
Checks whether the provided preferred filename already exists and generates one, with appending the next available number, which does not already exist.
Throws |
|
---|
string
The created filename
_validateFile(\ExistingFile $sourceFile) : \AbstractFileStorage
Throws |
|
---|
\AbstractFileStorage
Same instance for chained method calls.
_validateFilename(\FilenameStringType $filename) : \AbstractFileStorage
Throws |
|
---|
\AbstractFileStorage
Same instance for chained method calls.
deleteFile(\FilenameStringType $filename) : \AbstractFileStorage
Deletes an existing file.
\AbstractFileStorage
Same instance for chained method calls.
fileExists(\FilenameStringType $filename) : boolean
Checks if the provided file exists.
boolean
getFileList(\WritableDirectory $directory, array $extensions = array()) : array
array
File extensions (optional).
array
importFile(\ExistingFile $sourceFile, \FilenameStringType $preferredFilename) : string
Saves an image to a writable directory.
Throws |
|
---|
string
The created filename
renameFile(\FilenameStringType $oldName, \FilenameStringType $newName) : \AbstractFileStorage
Renames an existing image file.
Throws |
|
---|
\AbstractFileStorage
Same instance for chained method calls.