com\setasign\SetaSite\Controller\BackendV2
PageEditor Class Controller Json
File: /SetaSite/src/Controller/BackendV2/PageEditor.php
Class hierarchy
Implements
Summary
Methods
- __construct()
- addCorsHeaders()
- applyHistoryAction()
- applyPagePropertiesAction()
- cancelEditAction()
- errorAction()
- exportBlockAction()
- exportPageAction()
- exportPlaceholderAction()
- getParam()
- getParams()
- getRequest()
- getResponse()
- getSession()
- importBlockAction()
- importPageAction()
- importPlaceholderAction()
- preflightAction()
- renderBlockAction()
- renderPlaceholderAction()
- renderView()
- resetResponse()
- saveAction()
- setParam()
- setParams()
- startEditAction()
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
$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\SetaFramework\Http\HttpFactoryInterface $httpFactory
Parameters
- $sessionContext: \com\setasign\SetaSite\SessionContext
- $config: \com\setasign\SetaFramework\Application\ApplicationConfig
- $httpFactory: \com\setasign\SetaFramework\Http\HttpFactoryInterface
addCorsHeaders()
Parameters
- $response: \Psr\Http\Message\ResponseInterface
applyHistoryAction()
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $pageHistory: \com\setasign\SetaSite\Page\PageHistory
Exceptions
applyPagePropertiesAction()
Veränderung einer Seite; PageProperties
Parameters
Exceptions
Throws \com\setasign\SetaFramework\Permissions\PermissionException
Throws \com\setasign\SetaSite\BlockManager\UnknownBlockException
cancelEditAction()
exportBlockAction()
\com\setasign\SetaSite\Page\DeploymentHelper $deploymentHelper
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $deploymentHelper: \com\setasign\SetaSite\Page\DeploymentHelper
exportPageAction()
\com\setasign\SetaSite\Page\DeploymentHelper $pageLocks,
\com\setasign\SetaSite\Page\DeploymentHelper $deploymentHelper
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $pageLocks: \com\setasign\SetaSite\Page\DeploymentHelper
- $deploymentHelper: \com\setasign\SetaSite\Page\DeploymentHelper
Exceptions
Throws \JsonException
exportPlaceholderAction()
\com\setasign\SetaSite\Page\DeploymentHelper $deploymentHelper
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $deploymentHelper: \com\setasign\SetaSite\Page\DeploymentHelper
getParam()
mixed $default = null
Returns a param if it exists otherwise this will return $default
Parameters
- $name: string
- $default: mixed
getRequest()
getResponse()
getSession()
importBlockAction()
\com\setasign\SetaSite\Page\DeploymentHelper $deploymentHelper
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $deploymentHelper: \com\setasign\SetaSite\Page\DeploymentHelper
importPageAction()
\com\setasign\SetaSite\Page\DeploymentHelper $deploymentHelper
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $deploymentHelper: \com\setasign\SetaSite\Page\DeploymentHelper
Exceptions
Throws \com\setasign\SetaSite\BlockManager\BlockFinalException
Throws \com\setasign\SetaSite\Controller\MultiLangException
Throws \com\setasign\SetaSite\BlockManager\UnknownBlockException
importPlaceholderAction()
\com\setasign\SetaSite\Page\DeploymentHelper $deploymentHelper
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $deploymentHelper: \com\setasign\SetaSite\Page\DeploymentHelper
renderBlockAction()
\com\setasign\SetaSite\Page\Pages $pages,
\com\setasign\SetaFramework\View\View $view
Parameters
- $setaSite: \com\setasign\SetaSite\SetaSite
- $pages: \com\setasign\SetaSite\Page\Pages
- $view: \com\setasign\SetaFramework\View\View
renderPlaceholderAction()
\com\setasign\SetaSite\Page\Pages $pages,
\com\setasign\SetaSite\Page\PlaceholderFinder $placeholderFinder,
\com\setasign\SetaFramework\View\View $view
Parameters
- $setaSite: \com\setasign\SetaSite\SetaSite
- $pages: \com\setasign\SetaSite\Page\Pages
- $placeholderFinder: \com\setasign\SetaSite\Page\PlaceholderFinder
- $view: \com\setasign\SetaFramework\View\View
saveAction()
\com\setasign\SetaSite\Page\PageLocks $pageLocks,
\com\setasign\SetaFramework\Di\Di $di
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $pageLocks: \com\setasign\SetaSite\Page\PageLocks
- $di: \com\setasign\SetaFramework\Di\Di
Exceptions
Throws \Throwable
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
startEditAction()
\com\setasign\SetaSite\Page\Pages $pages,
\com\setasign\SetaSite\Page\PageLocks $pageLocks,
\com\setasign\SetaSite\User\Users $users,
\com\setasign\SetaFramework\Di\Di $di
Parameters
- $db: \com\setasign\SetaFramework\Database\Database
- $pages: \com\setasign\SetaSite\Page\Pages
- $pageLocks: \com\setasign\SetaSite\Page\PageLocks
- $users: \com\setasign\SetaSite\User\Users
- $di: \com\setasign\SetaFramework\Di\Di
Exceptions
Throws \com\setasign\SetaSite\Exception
Throws \com\setasign\SetaFramework\Permissions\PermissionException
Throws \Throwable
