Generates templates for the landing page from within ownCloud, the public gallery and error pages
package |
OCA\Gallery\Controller |
---|
__construct(string $appName, \OCP\IRequest $request, \OCA\Gallery\Environment\Environment $environment, \OCP\IURLGenerator $urlGenerator, \OCP\IConfig $appConfig)
string
\OCP\IRequest
\OCA\Gallery\Environment\Environment
\OCP\IURLGenerator
\OCP\IConfig
addContentSecurityToResponse(\OCP\AppFramework\Http\TemplateResponse $response)
\OCP\AppFramework\Http\TemplateResponse
errorPage(integer $code) : \OCP\AppFramework\Http\TemplateResponse
PublicPage | |
---|---|
NoCSRFRequired | |
Guest |
Generates an error page based on the error code |
integer
\OCP\AppFramework\Http\TemplateResponse
getIndexParameters( $appName) : \OCA\Gallery\Controller\array<string,string>
\OCA\Gallery\Controller\array
getServer2ServerProperties() : \OCA\Gallery\Controller\array<bool,string>
\OCA\Gallery\Controller\array
index() : \OCP\AppFramework\Http\TemplateResponse
NoAdminRequired | |
---|---|
NoCSRFRequired |
Shows the albums and pictures at the root folder or a message if there are no pictures. This is the entry page for logged-in users accessing the app from within ownCloud. A TemplateResponse response uses a template from the templates folder and parameters provided here to build the page users will see |
\OCP\AppFramework\Http\TemplateResponse
publicIndex(string $token, null|string $filename) : \OCP\AppFramework\Http\TemplateResponse|\OCA\Gallery\Http\ImageResponse|\OCP\AppFramework\Http\RedirectResponse
PublicPage | |
---|---|
NoCSRFRequired |
Shows the albums and pictures or redirects to the download location the token gives access to |
string
null|string
\OCP\AppFramework\Http\TemplateResponse|\OCA\Gallery\Http\ImageResponse|\OCP\AppFramework\Http\RedirectResponse
showPublicPage( $token) : \OCP\AppFramework\Http\TemplateResponse
\OCP\AppFramework\Http\TemplateResponse
environment : \OCA\Gallery\Environment\Environment
urlGenerator : \OCP\IURLGenerator
var |
---|
\OCP\IURLGenerator
appConfig : \OCP\IConfig
var |
---|
\OCP\IConfig