com\setasign\Konquadrat\Controller\Backend\V2
Task Class Controller Json
File: /Konquadrat/src/Controller/Backend/V2/Task.php
Class hierarchy
Implements
Summary
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
$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()
\com\setasign\SetaFramework\Application\ApplicationConfig $config,
\com\setasign\Konquadrat\Object\ObjectFinder $objectFinder,
\com\setasign\Konquadrat\Object\ObjectManager $objectManager,
\com\setasign\Konquadrat\LanguageManager $languageManager,
\com\setasign\Konquadrat\SessionContext $sessionContext,
\com\setasign\Konquadrat\Object\MessageList $messageList,
\com\setasign\SetaFramework\Log\ApplicationLogHandler $logHandler
Parameters
- $httpFactory: \com\setasign\SetaFramework\Http\HttpFactoryInterface
- $config: \com\setasign\SetaFramework\Application\ApplicationConfig
- $objectFinder: \com\setasign\Konquadrat\Object\ObjectFinder
- $objectManager: \com\setasign\Konquadrat\Object\ObjectManager
- $languageManager: \com\setasign\Konquadrat\LanguageManager
- $sessionContext: \com\setasign\Konquadrat\SessionContext
- $messageList: \com\setasign\Konquadrat\Object\MessageList
- $logHandler: \com\setasign\SetaFramework\Log\ApplicationLogHandler
addCorsHeaders()
Parameters
- $response: \Psr\Http\Message\ResponseInterface
createTaskAction()
\com\setasign\Konquadrat\Grid\IdDefinitionResolver $idDefinitionResolver
Parameters
- $taskProcessor: \com\setasign\Konquadrat\Task\TaskProcessor
- $idDefinitionResolver: \com\setasign\Konquadrat\Grid\IdDefinitionResolver
Exceptions
Throws \com\setasign\Konquadrat\Exception
Throws \com\setasign\Konquadrat\Object\ObjectSaveException
Throws \com\setasign\Konquadrat\Task\TaskException
Throws \com\setasign\SetaFramework\Permissions\PermissionException
getParam()
mixed $default = null
Returns a param if it exists otherwise this will return $default
Parameters
- $name: string
- $default: mixed
getPermissionControl()
getRequest()
getResponse()
getSession()
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
updateTaskAction()
Parameters
- $taskProcessor: \com\setasign\Konquadrat\Task\TaskProcessor
Exceptions
Throws \com\setasign\Konquadrat\Object\UnknownObjectException
Throws \com\setasign\Konquadrat\Task\TaskException
Throws \com\setasign\SetaFramework\Permissions\PermissionException
