com\setasign\Konquadrat\Controller\Frontend
Gui Class Gui
File: /Konquadrat/src/Controller/Frontend/Gui.php
Class hierarchy
- com\setasign\SetaFramework\Controller\AbstractJsonController
Implements
- \com\setasign\SetaFramework\Controller\ControllerInterface
Summary
Properties
$data
-
Result data to convert to JSON.
$encodingOptions
-
Default JSON encoding is performed with the following options, which produces RFC4627-compliant JSON, capable of embedding into HTML.
default value of:
JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_UNESCAPED_SLASHES
$httpFactory
-
$response
-
$textContentType
-
If true the response contentType will be 'text/html; charset=utf-8' instead of 'application/json'.
Needed for the IE. The IE will try to download 'application/json' responses from iframes.
Methods
__construct()
-
Parameters
- $httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
configAction()
\com\setasign\SetaFramework\Application\ApplicationConfig $config,
\com\setasign\SetaFramework\Bootstrap\RequestPathPrefix $requestPathPrefix,
\com\setasign\Konquadrat\Controller\Backend\BackendSsoHelper $ssoHelper,
\com\setasign\Konquadrat\LanguageManager $languageManager
Parameters
- $configLoader : \com\setasign\Konquadrat\Config\Loader
Is only used to trigger the loading of the project languages
- $config : \com\setasign\SetaFramework\Application\ApplicationConfig
- $requestPathPrefix : \com\setasign\SetaFramework\Bootstrap\RequestPathPrefix
- $ssoHelper : \com\setasign\Konquadrat\Controller\Backend\BackendSsoHelper
- $languageManager : \com\setasign\Konquadrat\LanguageManager
getParam()
-
mixed $default = null
Returns a param if it exists otherwise this will return $default
Parameters
- $name : string
- $default : mixed
getParams()
-
Get all existing params
getResponse()
-
indexAction()
Can be used if using konquadrat as standalone application - it will just output an empty page
renderView()
-
Exceptions
Throws \JsonException
resetResponse()
-
serveGuiAction()
Parameters
- $applicationConfig : \com\setasign\SetaFramework\Application\ApplicationConfig
setParam()
-
mixed $value
Sets a param
Parameters
- $name : string
- $value : mixed
setParams()
-
Set a array of params
Note: The params will be merged with the existing params!!
Parameters
- $params : array
