com\setasign\Konquadrat\Controller\Backend
Task Class Controller Json
File: /Konquadrat/src/Controller/Backend/Task.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
-
$messageList
$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\SetaFramework\Http\HttpFactoryInterface $httpFactory
Parameters
- $sessionContext : \com\setasign\Konquadrat\SessionContext
- $messageList : \com\setasign\Konquadrat\Object\MessageList
- $httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
createTaskAction()
\com\setasign\Konquadrat\Task\TaskProcessor $taskProcessor
Parameters
- $objectManager : \com\setasign\Konquadrat\Object\ObjectManager
- $taskProcessor : \com\setasign\Konquadrat\Task\TaskProcessor
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
getParams()
-
Get all existing params
getRequest()
getResponse()
-
getSession()
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
updateTaskAction()
\com\setasign\Konquadrat\Task\TaskProcessor $taskProcessor
Parameters
- $objectFinder : \com\setasign\Konquadrat\Object\ObjectFinder
- $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
