com\setasign\Konquadrat\Controller\Backend
Grid Class Grid
File: /Konquadrat/src/Controller/Backend/Grid.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
$gridFinder
$httpFactory
-
$languageManager
$messageList
$objectFinder
$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()
\com\setasign\Konquadrat\Object\MessageList $messageList,
\com\setasign\Konquadrat\Grid\GridFinder $gridFinder,
\com\setasign\Konquadrat\Object\ObjectFinder $objectFinder,
\com\setasign\Konquadrat\LanguageManager $languageManager,
\com\setasign\SetaFramework\Http\HttpFactoryInterface $httpFactory
Parameters
- $sessionContext : \com\setasign\Konquadrat\SessionContext
- $messageList : \com\setasign\Konquadrat\Object\MessageList
- $gridFinder : \com\setasign\Konquadrat\Grid\GridFinder
- $objectFinder : \com\setasign\Konquadrat\Object\ObjectFinder
- $languageManager : \com\setasign\Konquadrat\LanguageManager
- $httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
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()
getFilteredGrid()
mixed $context,
?int $limit,
?int $offset,
&$filter,
&$sort
Parameters
- $gridId : int|string
- $context : mixed
- $limit : ?int
- $offset : ?int
- $filter
- $sort
Exceptions
Throws \JsonException
getGrid()
mixed $context
Parameters
- $gridId : int|string
- $context : mixed
Exceptions
getIdsAction()
Parameters
- $request : \com\setasign\SetaFramework\Request\ServerRequest
Exceptions
Throws \JsonException
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
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
renderView()
-
Exceptions
Throws \JsonException
resetResponse()
-
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
updateValueAction()
Parameters
- $request : \com\setasign\SetaFramework\Request\ServerRequest
