com\setasign\Konquadrat\Controller\Backend\V2
Grid Class Grid
File: /Konquadrat/src/Controller/Backend/V2/Grid.php
Class hierarchy
Implements
Summary
Methods
- __construct()
- addCorsHeaders()
- createExportAction()
- deleteRowsAction()
- errorAction()
- getConfigAction()
- getIdsAction()
- getParam()
- getParams()
- getPermissionControl()
- getRequest()
- getResponse()
- getSession()
- getValuesAction()
- preflightAction()
- renderView()
- resetResponse()
- setParam()
- setParams()
- updateValueAction()
Properties
$config
$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
$gridFinder
$languageManager
$logHandler
$messageList
$objectFinder
$objectManager
$response
$sessionContext
$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
- $gridFinder: \com\setasign\Konquadrat\Grid\GridFinder
- $di: \com\setasign\SetaFramework\Di\Di
addCorsHeaders()
Parameters
- $response: \Psr\Http\Message\ResponseInterface
createExportAction()
\com\setasign\Konquadrat\DirectorySettings $directorySettings,
\com\setasign\Konquadrat\Object\ObjectManager $objectManager,
\com\setasign\Konquadrat\Object\TransactionManager $transactionManager,
\com\setasign\Konquadrat\Task\TaskProcessor $taskProcessor
Parameters
- $languageManager: \com\setasign\Konquadrat\LanguageManager
- $directorySettings: \com\setasign\Konquadrat\DirectorySettings
- $objectManager: \com\setasign\Konquadrat\Object\ObjectManager
- $transactionManager: \com\setasign\Konquadrat\Object\TransactionManager
- $taskProcessor: \com\setasign\Konquadrat\Task\TaskProcessor
Exceptions
Throws \com\setasign\Konquadrat\Exception
Throws \com\setasign\SetaFramework\Permissions\PermissionException
Throws \Throwable
Throws \com\setasign\Konquadrat\Object\ObjectSaveException
Throws \JsonException
deleteRowsAction()
\com\setasign\Konquadrat\Object\TransactionManager $transactionManager
Parameters
- $request: \com\setasign\SetaFramework\Request\ServerRequest
- $transactionManager: \com\setasign\Konquadrat\Object\TransactionManager
Exceptions
Throws \com\setasign\Konquadrat\Exception
Throws \Throwable
getConfigAction()
getIdsAction()
getParam()
mixed $default = null
Returns a param if it exists otherwise this will return $default
Parameters
- $name: string
- $default: mixed
getPermissionControl()
getRequest()
getResponse()
getSession()
getValuesAction()
\com\setasign\SetaFramework\SimpleCache\ApplicationCacheHandler $cacheHandler
Parameters
- $request: \com\setasign\SetaFramework\Request\ServerRequest
- $cacheHandler: \com\setasign\SetaFramework\SimpleCache\ApplicationCacheHandler
Exceptions
Throws \JsonException
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
