com\setasign\SetaSite\Controller\BackendV2
Page Class Controller Json
File: /SetaSite/src/Controller/BackendV2/Page.php
Class hierarchy
Implements
Summary
Methods
- __construct()
- addCorsHeaders()
- copyAction()
- createAction()
- deleteAction()
- errorAction()
- getAnchorsAction()
- getFiles()
- getPagePathAction()
- getPageTreeAction()
- getPagesPathsAction()
- getParam()
- getParams()
- getRequest()
- getResponse()
- getSession()
- getSubpagesTreeAction()
- getTree()
- moveAction()
- preflightAction()
- renderView()
- resetResponse()
- setParam()
- setParams()
Properties
$config
protected AbstractController::$config
$data
protected mixed \com\setasign\SetaFramework\Controller\AbstractJsonController::$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
protected ?\Psr\Http\Message\ResponseInterface \com\setasign\SetaFramework\Controller\AbstractController::$response
$sessionContext
protected AbstractController::$sessionContext
$textContentType
protected bool \com\setasign\SetaFramework\Controller\AbstractJsonController::$textContentType = false
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()
public AbstractController::__construct (
\com\setasign\SetaSite\SessionContext $sessionContext,
\com\setasign\SetaFramework\Application\ApplicationConfig $config,
\com\setasign\SetaFramework\Http\HttpFactoryInterface $httpFactory
)\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()
public AbstractController::addCorsHeaders (
\Psr\Http\Message\ResponseInterface $response
): \Psr\Http\Message\ResponseInterfaceParameters
- $response: \Psr\Http\Message\ResponseInterface
copyAction()
createAction()
deleteAction()
public Page::deleteAction (
\com\setasign\SetaSite\Page\Pages $pages,
\com\setasign\SetaSite\Page\PageLocks $pageLocks,
\com\setasign\SetaFramework\EventManager\EventManager $eventManager,
\com\setasign\SetaFramework\Di\Di $di
): void\com\setasign\SetaSite\Page\PageLocks $pageLocks,
\com\setasign\SetaFramework\EventManager\EventManager $eventManager,
\com\setasign\SetaFramework\Di\Di $di
Löschen einer Seite
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $pageLocks: \com\setasign\SetaSite\Page\PageLocks
- $eventManager: \com\setasign\SetaFramework\EventManager\EventManager
- $di: \com\setasign\SetaFramework\Di\Di
Exceptions
Throws \Throwable
getAnchorsAction()
getFiles()
Parameters
- $filesystemManager: \com\setasign\SetaSite\FileSystem\FilesystemManagerInterface
- $path: ?string
Exceptions
getPageTreeAction()
public Page::getPageTreeAction (
\com\setasign\SetaSite\Page\Pages $pages,
\com\setasign\SetaSite\Page\PageLocks $pageLocks,
\com\setasign\SetaSite\User\Users $users,
\com\setasign\SetaSite\FileSystem\FilesystemManagerInterface $filesystemManager
): void\com\setasign\SetaSite\Page\PageLocks $pageLocks,
\com\setasign\SetaSite\User\Users $users,
\com\setasign\SetaSite\FileSystem\FilesystemManagerInterface $filesystemManager
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $pageLocks: \com\setasign\SetaSite\Page\PageLocks
- $users: \com\setasign\SetaSite\User\Users
- $filesystemManager: \com\setasign\SetaSite\FileSystem\FilesystemManagerInterface
Exceptions
getParam()
public \com\setasign\SetaFramework\Controller\AbstractController::getParam (
string $name,
mixed $default = null
): ?mixedmixed $default = null
Returns a param if it exists otherwise this will return $default
Parameters
- $name: string
- $default: mixed
getRequest()
protected AbstractController::getRequest (
void
): \com\setasign\SetaFramework\Request\ServerRequestgetResponse()
public \com\setasign\SetaFramework\Controller\AbstractController::getResponse (
void
): \Psr\Http\Message\ResponseInterfacegetSession()
protected AbstractController::getSession (
void
): \com\setasign\SetaFramework\Session\SessionInterfacegetSubpagesTreeAction()
getTree()
protected Page::getTree (
\com\setasign\SetaSite\Page\Pages $pages,
\com\setasign\SetaSite\Page\PageLocks $pageLocks,
\com\setasign\SetaSite\User\Users $users,
string $language,
?int $rootNode
): array\com\setasign\SetaSite\Page\PageLocks $pageLocks,
\com\setasign\SetaSite\User\Users $users,
string $language,
?int $rootNode
Parameters
- $pages: \com\setasign\SetaSite\Page\Pages
- $pageLocks: \com\setasign\SetaSite\Page\PageLocks
- $users: \com\setasign\SetaSite\User\Users
- $language: string
- $rootNode: ?int
moveAction()
setParam()
public \com\setasign\SetaFramework\Controller\AbstractController::setParam (
string $name,
mixed $value
): \com\setasign\SetaFramework\Controller\ControllerInterfacemixed $value
Sets a param
Parameters
- $name: string
- $value: mixed
setParams()
public \com\setasign\SetaFramework\Controller\AbstractController::setParams (
array $params
): \com\setasign\SetaFramework\Controller\ControllerInterfaceSet a array of params
Note: The params will be merged with the existing params!!
Parameters
- $params: array
