ConfigPublicController

Extends \OCA\Gallery\Controller\ConfigController

Class ConfigPublicController

Note: Type casting only works if the "@param" parameters are also included in this class as their not yet inherited

package

OCA\Gallery\Controller

Methods

Constructor

__construct(string $appName, \OCP\IRequest $request, \OCA\Gallery\Service\ConfigService $configService, \OCP\ILogger $logger) 
inherited

Arguments

$appName

string

$request

\OCP\IRequest

$logger

\OCP\ILogger

get

get(boolean $extramediatypes = false) : array
inherited
NoAdminRequired

Returns an app configuration array

Arguments

$extramediatypes

boolean

Response

array

<string,null|array>

getConfig

getConfig(boolean $extraMediaTypes = false) : array
inherited
NoAdminRequired

Returns an app configuration array

Arguments

$extraMediaTypes

boolean

Response

array

<string,null|array>

Returns an error array

getHttpStatusCode( $exception) : \OCA\Gallery\Controller\array<null|integer|\OCA\Gallery\Controller\string>
inherited

Arguments

$exception

Response

\OCA\Gallery\Controller\array

htmlError

htmlError(\OCP\IURLGenerator $urlGenerator, string $appName, \Exception $exception) : \OCP\AppFramework\Http\RedirectResponse
inherited

Arguments

$urlGenerator

\OCP\IURLGenerator

$appName

string

$exception

\Exception

Response

\OCP\AppFramework\Http\RedirectResponse

Determines if the native SVG feature has been activated

isNativeSvgActivated(array $features) : boolean
inherited

Arguments

$features

array

Response

boolean

jsonError

jsonError(\Exception $exception) : \OCP\AppFramework\Http\JSONResponse
inherited

Arguments

$exception

\Exception

Response

\OCP\AppFramework\Http\JSONResponse

Properties

configService

configService : \OCA\Gallery\Service\ConfigService
inherited

logger

logger : \OCP\ILogger
inherited
var

Type(s)

\OCP\ILogger