com\setasign\SetaSite\Controller\Backend
PageEditor Class Controller Json
File: /SetaSite/src/Controller/Backend/PageEditor.php
Class hierarchy
Implements
Summary
Methods
- __construct()
- applyHistoryAction()
- applyPagePropertiesAction()
- cancelEditModeAction()
- exportBlockAction()
- exportPageAction()
- exportPlaceholderAction()
- getParam()
- getParams()
- getRequest()
- getResponse()
- getSession()
- importBlockAction()
- importPageAction()
- importPlaceholderAction()
- renderBlockAction()
- renderPlaceholderAction()
- renderView()
- resetResponse()
- saveAction()
- setParam()
- setParams()
- startEditModeAction()
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
$response
$sessionContext
$setasite
$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.
Static Methods
clearSession()
Parameters
- $session: \com\setasign\SetaFramework\Session\SessionInterface
- $pageId: int
- $language: string
getFromSession()
\com\setasign\SetaSite\Page\Page $page,
bool $allowCleanup = false
Parameters
- $session: \com\setasign\SetaFramework\Session\SessionInterface
- $page: \com\setasign\SetaSite\Page\Page
- $allowCleanup: bool
isEdited()
\com\setasign\SetaFramework\Session\SessionInterface $session,
\com\setasign\SetaSite\Page\Page $page
Parameters
saveToSession()
\com\setasign\SetaSite\Page\Page $page,
bool $forceNewHash = false
Parameters
- $session: \com\setasign\SetaFramework\Session\SessionInterface
- $page: \com\setasign\SetaSite\Page\Page
- $forceNewHash: bool
Methods
__construct()
\com\setasign\SetaFramework\Http\HttpFactoryInterface $httpFactory,
\com\setasign\SetaSite\SetaSite $setasite
Parameters
- $sessionContext: \com\setasign\SetaSite\SessionContext
- $httpFactory: \com\setasign\SetaFramework\Http\HttpFactoryInterface
- $setasite: \com\setasign\SetaSite\SetaSite
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
cancelEditModeAction()
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()
Parameters
Exceptions
Throws \com\setasign\SetaSite\BlockManager\UnknownBlockException
renderPlaceholderAction()
\com\setasign\SetaSite\Page\PlaceholderFinder $placeholderFinder,
\com\setasign\SetaFramework\View\View $view
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $placeholderFinder: \com\setasign\SetaSite\Page\PlaceholderFinder
- $view: \com\setasign\SetaFramework\View\View
Exceptions
Throws \Throwable
renderView()
Exceptions
Throws \JsonException
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
startEditModeAction()
\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
