MediaManager deprecated
class MediaManager extends MediaLibrary
deprecated
MediaManager Class
Traits
Singleton trait.
Properties
static protected | $instance | from Singleton | |
static protected | $cacheKey | from MediaLibrary | |
protected | $storageDisk | from MediaLibrary | |
protected | $storagePath | from MediaLibrary | |
protected | $storageFolder | from MediaLibrary | |
protected | $ignoreNames | from MediaLibrary | |
protected | $ignorePatterns | from MediaLibrary | |
protected | $storageFolderNameLength | from MediaLibrary | |
protected | $allowedExtensions | from MediaLibrary | |
protected | $config | from MediaLibrary |
Methods
Constructor.
Details
in
Singleton at line 18
final static
instance()
Create a new instance of this singleton.
in
Singleton at line 28
final static
forgetInstance()
Forget this singleton's instance if it exists
at line 17
__construct()
Constructor.
in
Singleton at line 44
protected
initialize()
Initialize the singleton free from constructor parameters.
in
Singleton at line 48
__clone()
No description
in
Singleton at line 53
__wakeup()
No description
in
MediaLibrary at line 56
listFolderContents($fullPath, $methodName, $recursive = FALSE)
No description
in
MediaLibrary at line 85
listAllFolders($path = null, array $exclude = [])
No description
in
MediaLibrary at line 90
listFolders($path = null, array $exclude = [], $recursive = FALSE)
No description
in
MediaLibrary at line 120
fetchFiles($path, $sortBy = [], $search = null)
No description
in
MediaLibrary at line 135
get($path, $stream = FALSE)
No description
in
MediaLibrary at line 147
put($path, $contents)
No description
in
MediaLibrary at line 155
makeFolder($name)
No description
in
MediaLibrary at line 164
copyFile($srcPath, $destPath)
No description
in
MediaLibrary at line 175
moveFile($path, $newPath)
No description
in
MediaLibrary at line 186
rename($path, $newPath)
No description
in
MediaLibrary at line 197
deleteFiles($paths)
No description
in
MediaLibrary at line 208
deleteFolder($path)
No description
in
MediaLibrary at line 217
exists($path)
No description
in
MediaLibrary at line 225
validatePath($path, $stripTrailingSlash = FALSE)
No description
in
MediaLibrary at line 233
getMediaUrl($path)
No description
in
MediaLibrary at line 240
getMediaPath($path)
No description
in
MediaLibrary at line 248
getMediaThumb($path, $options)
No description
in
MediaLibrary at line 290
getDefaultThumbPath($thumbPath, $default = null)
No description
in
MediaLibrary at line 300
getMediaRelativePath($path)
No description
in
MediaLibrary at line 310
getConfig($key = null, $default = null)
No description
in
MediaLibrary at line 318
getAllowedExtensions()
No description
in
MediaLibrary at line 323
isAllowedExtension($filename)
No description
in
MediaLibrary at line 334
resetCache()
No description
in
MediaLibrary at line 339
folderSize($path)
No description
in
MediaLibrary at line 354
protected
scanFolderContents($fullPath, $methodName, $recursive = FALSE)
No description
in
MediaLibrary at line 373
protected
isVisible($path)
No description
in
MediaLibrary at line 388
protected
sortFiles($files, $sortBy)
No description
in
MediaLibrary at line 414
protected
searchFiles($files, $filter)
No description
in
MediaLibrary at line 428
protected
getThumbDirectory()
No description
in
MediaLibrary at line 433
protected
getStorageDisk()
No description
in
MediaLibrary at line 443
protected
initMediaItem($path, $itemType)
No description
in
MediaLibrary at line 463
protected
pathMatchesSearch($path, $words)
No description
in
MediaLibrary at line 479
protected
getMediaThumbFile($filePath, $options)
No description
in
MediaLibrary at line 494
protected
ensureDirectoryExists($path)
No description