Class FilesController
package |
OCA\Gallery\Controller |
---|
__construct(string $appName, \OCP\IRequest $request, \OCP\IURLGenerator $urlGenerator, \OCA\Gallery\Service\SearchFolderService $searchFolderService, \OCA\Gallery\Service\ConfigService $configService, \OCA\Gallery\Service\SearchMediaService $searchMediaService, \OCA\Gallery\Service\DownloadService $downloadService, \OCP\ILogger $logger)
string
\OCP\IRequest
\OCP\IURLGenerator
\OCA\Gallery\Service\SearchFolderService
\OCA\Gallery\Service\ConfigService
\OCA\Gallery\Service\SearchMediaService
\OCA\Gallery\Service\DownloadService
\OCP\ILogger
download(integer $fileId, string|null $filename = null) : \OCA\Gallery\Http\ImageResponse
NoAdminRequired |
Sends the file matching the fileId |
---|
integer
the ID of the file we want to download
string|null
\OCA\Gallery\Http\ImageResponse
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
integer
the 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
|
---|
string
a path representing the current album in the app
array
the list of supported features
string
the last known etag in the client
array
the list of supported media types
array
<string,array<string,string|int>>|Http\JSONResponse
getHttpStatusCode( $exception) : \OCA\Gallery\Controller\array<null|integer|\OCA\Gallery\Controller\string>
\OCA\Gallery\Controller\array
getList(string $location, string $features, string $etag, string $mediatypes) : array
NoAdminRequired |
Returns a list of all media files available to the authenticated user
|
---|
string
a path representing the current album in the app
string
the list of supported features
string
the last known etag in the client
string
the list of supported media types
array
<string,array<string,string|int>>|Http\JSONResponse
htmlError(\OCP\IURLGenerator $urlGenerator, string $appName, \Exception $exception) : \OCP\AppFramework\Http\RedirectResponse
\OCP\IURLGenerator
string
\Exception
\OCP\AppFramework\Http\RedirectResponse
jsonError(\Exception $exception) : \OCP\AppFramework\Http\JSONResponse
\Exception
\OCP\AppFramework\Http\JSONResponse
urlGenerator : \OCP\IURLGenerator
var |
---|
\OCP\IURLGenerator
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