com\setasign\SetaSite\Controller\Backend
Page Class Page
File: /SetaSite/src/Controller/Backend/Page.php
Class hierarchy
- com\setasign\SetaFramework\Controller\AbstractJsonController
Implements
- \com\setasign\SetaFramework\Controller\ControllerInterface
Summary
Methods
- __construct()
- copyAction()
- createAction()
- deleteAction()
- exportPageAction()
- getAnchorsAction()
- getFiles()
- getPageInfoAction()
- getPagePathAction()
- getPagePropertiesAction()
- getPageTreeAction()
- getPagesPathsAction()
- getParam()
- getParams()
- getRequest()
- getResponse()
- getSession()
- getSubpagesTreeAction()
- getTemplateFilesAction()
- getTree()
- moveAction()
- rebuildPathOrderAction()
- renderView()
- resetResponse()
- setParam()
- setParams()
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
-
$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.
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
copyAction()
Parameters
- $pages : \com\setasign\SetaSite\Page\Pages
- $di : \com\setasign\SetaFramework\Di\Di
Exceptions
Throws \Throwable
createAction()
Seite erstellen
Parameters
- $pages : \com\setasign\SetaSite\Page\Pages
- $di : \com\setasign\SetaFramework\Di\Di
Exceptions
Throws \Throwable
deleteAction()
\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
exportPageAction()
WARNING: This method is marked as deprecated!
Only used by old gui versions
\com\setasign\SetaSite\Page\DeploymentHelper $deploymentHelper
Parameters
- $pages : \com\setasign\SetaSite\Page\Pages
- $deploymentHelper : \com\setasign\SetaSite\Page\DeploymentHelper
Exceptions
Throws \JsonException
getAnchorsAction()
getFiles()
Parameters
- $filesystemManager : \com\setasign\SetaSite\FileSystem\FilesystemManagerInterface
- $path : ?string
Exceptions
getPageInfoAction()
Parameters
- $pages : \com\setasign\SetaSite\Page\Pages
- $users : \com\setasign\SetaSite\User\Users
getPagePathAction()
Parameters
- $pages : \com\setasign\SetaSite\Page\Pages
getPagePropertiesAction()
Parameters
- $pageProperties : \com\setasign\SetaSite\Config\PageProperties
getPageTreeAction()
\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
getPagesPathsAction()
Parameters
- $pages : \com\setasign\SetaSite\Page\Pages
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()
getSubpagesTreeAction()
getTree()
\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()
Parameters
- $pages : \com\setasign\SetaSite\Page\Pages
- $di : \com\setasign\SetaFramework\Di\Di
Exceptions
Throws \Throwable
rebuildPathOrderAction()
\com\setasign\SetaSite\Page\Pages $pages,
\com\setasign\SetaFramework\Application\ApplicationConfig $config
Parameters
- $db : \com\setasign\SetaFramework\Database\Database
- $pages : \com\setasign\SetaSite\Page\Pages
- $config : \com\setasign\SetaFramework\Application\ApplicationConfig
Exceptions
Throws \Throwable
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
