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 | $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 55
listFolderContents($fullPath, $methodName, $recursive = false)
No description
in
MediaLibrary at line 83
listAllFolders($path = null, array $exclude = [])
No description
in
MediaLibrary at line 88
listFolders($path = null, array $exclude = [], $recursive = false)
No description
in
MediaLibrary at line 118
fetchFiles($path, $sortBy = [], $options = null)
No description
in
MediaLibrary at line 138
get($path, $stream = false)
No description
in
MediaLibrary at line 150
put($path, $contents)
No description
in
MediaLibrary at line 158
makeFolder($name)
No description
in
MediaLibrary at line 167
copyFile($srcPath, $destPath)
No description
in
MediaLibrary at line 178
moveFile($path, $newPath)
No description
in
MediaLibrary at line 189
rename($path, $newPath)
No description
in
MediaLibrary at line 200
deleteFiles($paths)
No description
in
MediaLibrary at line 211
deleteFolder($path)
No description
in
MediaLibrary at line 220
exists($path)
No description
in
MediaLibrary at line 228
validatePath($path, $stripTrailingSlash = false)
No description
in
MediaLibrary at line 236
getMediaUrl($path)
No description
in
MediaLibrary at line 246
getMediaPath($path)
No description
in
MediaLibrary at line 254
getMediaThumb($path, $options)
No description
in
MediaLibrary at line 296
getDefaultThumbPath($thumbPath, $default = null)
No description
in
MediaLibrary at line 306
getMediaRelativePath($path)
No description
in
MediaLibrary at line 316
getConfig($key = null, $default = null)
No description
in
MediaLibrary at line 324
getAllowedExtensions()
No description
in
MediaLibrary at line 329
isAllowedExtension($filename)
No description
in
MediaLibrary at line 340
resetCache()
No description
in
MediaLibrary at line 345
folderSize($path)
No description
in
MediaLibrary at line 360
protected
scanFolderContents($fullPath, $methodName, $recursive = false)
No description
in
MediaLibrary at line 379
protected
isVisible($path)
No description
in
MediaLibrary at line 394
protected
sortFiles($files, $sortBy)
No description
in
MediaLibrary at line 420
protected
filterFiles($files, $filterBy)
No description
in
MediaLibrary at line 436
protected
searchFiles($files, $filter)
No description
in
MediaLibrary at line 450
protected
getThumbDirectory()
No description
in
MediaLibrary at line 455
protected
getStorageDisk()
No description
in
MediaLibrary at line 465
protected
initMediaItem($path, $itemType)
No description
in
MediaLibrary at line 485
protected
pathMatchesSearch($path, $words)
No description
in
MediaLibrary at line 501
protected
getMediaThumbFile($filePath, $options)
No description
in
MediaLibrary at line 516
protected
ensureDirectoryExists($path)
No description