BaseCachedFile
class BaseCachedFile extends BaseAction
Cached file management actions. This class handles file caching in the web space
Basically, files are stored outside the web space (by default in local/media/
In the file cache directory, a subdirectory for files categories (eg. product, category, folder, etc.) is automatically created, and the cached file is created here. Plugin may use their own subdirectory as required.
A copy (or symbolic link, by default) of the original file is created in the cache.
Methods
Toggle visibility for an object
No description
Clear the file cache. Is a subdirectory is specified, only this directory is cleared.
Take care of saving a file in the database and file storage
Take care of updating file in the database and file storage
Deleting file in the database and in storage
No description
No description
Details
in
BaseAction at line 130
mixed
genericToggleVisibility(
ModelCriteria $query,
ToggleVisibilityEvent $event,
EventDispatcherInterface $dispatcher = null)
Toggle visibility for an object
at line 49
__construct(
FileManager $fileManager)
at line 66
clearCache(
CachedFileEvent $event)
Clear the file cache. Is a subdirectory is specified, only this directory is cleared.
If no directory is specified, the whole cache is cleared. Only files are deleted, directories will remain.
at line 199
saveFile(
FileCreateOrUpdateEvent $event)
Take care of saving a file in the database and file storage
at line 239
updateFile(
FileCreateOrUpdateEvent $event)
Take care of updating file in the database and file storage
at line 262
deleteFile(
FileDeleteEvent $event)
Deleting file in the database and in storage