Class Preview
package |
OCA\Gallery\Controller |
---|
exitController()
getData(integer $fileId, integer $width, integer $height, boolean $keepAspect = true, boolean $animatedPreview = true, boolean $base64Encode = false) : \OCA\Gallery\Controller\array<string,\OC_Image|\OCA\Gallery\Controller\string>
Throws |
|
---|
integer
integer
integer
boolean
boolean
boolean
\OCA\Gallery\Controller\array
getErrorData( $status = \OCP\AppFramework\Http::STATUS_INTERNAL_SERVER_ERROR) : \OCA\Gallery\Controller\array<null|\OCA\Gallery\Controller\int>
\OCA\Gallery\Controller\array
getExceptionData(\OCA\Gallery\Service\ServiceException $exception) : \OCA\Gallery\Controller\array<null|integer|\OCA\Gallery\Controller\string>
getFile(integer $fileId) : \OCA\Gallery\Controller\array<File|integer|\OCA\Gallery\Controller\null>
integer
\OCA\Gallery\Controller\array
getPreviewData(\OCP\Files\File $file, boolean $animatedPreview, integer $width, integer $height, boolean $keepAspect, boolean $base64Encode) : array
\OCP\Files\File
boolean
integer
integer
boolean
boolean
array
getThumbnail(integer $fileId, boolean $square, double $scale) : \OCA\Gallery\Controller\array<string,array|\OCA\Gallery\Controller\string>
The thumbnail is either a resized preview of the file or the original file Thumbnails are base64encoded before getting sent back
integer
the ID of the file of which we need a thumbnail preview of
boolean
whether the thumbnail should be square
double
whether we're allowed to scale the preview up
\OCA\Gallery\Controller\array
prepareEmptyThumbnail(\OCP\Files\File $file, integer $status) : \OCA\Gallery\Controller\array<string,null|\OCA\Gallery\Controller\string>
When we can't even get the file information, we send an empty mimeType
\OCP\Files\File
integer
\OCA\Gallery\Controller\array
urlGenerator : \OCP\IURLGenerator
var |
---|
\OCP\IURLGenerator
configService : \OCA\Gallery\Service\ConfigService
thumbnailService : \OCA\Gallery\Service\ThumbnailService
previewService : \OCA\Gallery\Service\PreviewService
downloadService : \OCA\Gallery\Service\DownloadService
logger : \OCP\ILogger
var |
---|
\OCP\ILogger
download :
type |
bool |
---|---|