Trait Files
| package |
OCA\Gallery\Controller |
|---|
fixPaths(array $files, string $folderPathFromRoot) : array
We only want to keep one folder between the current folder and the found media file /root/folder/sub1/sub2/file.ext becomes /root/folder/file.ext
array
string
array
getDownload(integer $fileId, string|null $filename) : array|false
integerthe ID of the file of which we need a large preview of
string|null
array|false
getFilesAndAlbums(string $location, array $features, string $etag, array $mediatypes) : array
| NoAdminRequired |
Returns a list of all media files and albums available to the authenticated user
|
|---|
stringa path representing the current album in the app
arraythe list of supported features
stringthe last known etag in the client
arraythe list of supported media types
array<string,array<string,string|int>>|Http\JSONResponse
searchFolderService : \OCA\Gallery\Service\SearchFolderService
configService : \OCA\Gallery\Service\ConfigService
searchMediaService : \OCA\Gallery\Service\SearchMediaService
downloadService : \OCA\Gallery\Service\DownloadService
logger : \OCP\ILogger
| var |
|---|
\OCP\ILogger