Class SlideImageFileStorage
category |
System |
---|---|
package |
Slider |
subpackage |
Storages |
__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.
deleteImage(\FilenameStringType $filename) : \AbstractFileStorage
deleteThumbnailImage(\FilenameStringType $filename) : \AbstractFileStorage
fileExists(\FilenameStringType $filename) : boolean
Checks if the provided file exists.
boolean
getFileList(\WritableDirectory $directory, array $extensions = array()) : array
array
File extensions (optional).
array
getImages() : array
array
Found files.
getThumbnailImages() : array
array
Found files.
imageExists(\FilenameStringType $filename) : boolean
boolean
Does it exist?
importFile(\ExistingFile $sourceFile, \FilenameStringType $preferredFilename) : string
Saves an image to a writable directory.
Throws |
|
---|
string
The created filename
importImage(\ExistingFile $sourceFile, \FilenameStringType $preferredFilename) : string
Throws |
|
---|
string
Preferred filename
importThumbnailImage(\ExistingFile $sourceFile, \FilenameStringType $preferredFilename) : string
Throws |
|
---|
string
Preferred filename
renameFile(\FilenameStringType $oldName, \FilenameStringType $newName) : \AbstractFileStorage
Renames an existing image file.
Throws |
|
---|
\AbstractFileStorage
Same instance for chained method calls.
renameImage(\FilenameStringType $oldName, \FilenameStringType $newName) : \AbstractFileStorage
Throws |
|
---|
\AbstractFileStorage
Same instance for chained method calls.
renameThumbnailImage(\FilenameStringType $oldName, \FilenameStringType $newName) : \AbstractFileStorage
Throws |
|
---|
\AbstractFileStorage
Same instance for chained method calls.
thumbnailImageExists(\FilenameStringType $filename) : boolean
boolean
Does it exist?
thumbnailImagesDirectory : \WritableDirectory
validExtensions : array
var |
---|
array