com\setasign\SetaSite\Controller\Frontend
Page Class Page
File: /SetaSite/src/Controller/Frontend/Page.php
Class hierarchy
- com\setasign\SetaFramework\Controller\AbstractViewController
Implements
- \com\setasign\SetaFramework\Controller\ControllerInterface
Summary
Constants
EVENT_AFTER_RENDER
Will be triggered after a page was rendered.
Type: PageEvent
Note: The rendering of the error-pages isn't included.
Cancelable: Can be canceled by throwing a HttpErrorException.
extraParams:
'sessionContext' => SessionContext
'pageSettings' => PageSettings
'response' => ResponseInterface
EVENT_BEFORE_RENDER
Will be triggered before a page will be rendered.
Type: PageEvent
Note: The rendering of the error-pages isn't included.
Cancelable: Can be canceled by throwing a HttpErrorException.
extraParams:
'sessionContext' => SessionContext
'pageSettings' => PageSettings
'params' => &string[]
EVENT_ON_PAGE_NOT_FOUND
Will be triggered if the requested page couldn't be found. It's possible to throw a ForceResponseException here.
Type: Event
Cancelable: Can be canceled.
extraParams:
'sessionContext' => SessionContext
'pageSettings' => PageSettings
'path' => string
'language' => string
'page' => &null|Page If this isn't null this page will be used instead
Properties
$applicationConfig
$httpFactory
-
$pageRenderer
$renderedPage
$response
-
$viewScript
-
Methods
__construct()
\com\setasign\SetaFramework\View\View $view,
\com\setasign\SetaSite\SetaSite $setasite,
\com\setasign\SetaSite\Page\Pages $pages,
\com\setasign\SetaSite\Page\PageRenderer $pageRenderer
Parameters
- $httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
- $view : \com\setasign\SetaFramework\View\View
- $setasite : \com\setasign\SetaSite\SetaSite
- $pages : \com\setasign\SetaSite\Page\Pages
- $pageRenderer : \com\setasign\SetaSite\Page\PageRenderer
callBlockAction()
Parameters
- $page : \com\setasign\SetaSite\Page\Page
- $blockUid : string
- $action : string
Exceptions
Throws \com\setasign\SetaSite\Block\ForceResponseException
Throws \setasign\SetaSso\ForceResponseException
Throws \com\setasign\SetaFramework\Bootstrap\MaintenanceException
Throws \Throwable
clearCookie()
Parameters
- $response : \Psr\Http\Message\ResponseInterface
errorAction()
\com\setasign\SetaSite\SessionContext $sessionContext
This action will try to display the error page.
Parameters
- $logHandler : \com\setasign\SetaFramework\Log\ApplicationLogHandler
- $sessionContext : \com\setasign\SetaSite\SessionContext
getControllerParams()
Parameters
- $page : \com\setasign\SetaSite\Page\Page
- $path : string
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
getResponse()
-
getView()
-
Returns the view
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
showAction()
\com\setasign\SetaFramework\EventManager\EventManager $eventManager,
\com\setasign\SetaFramework\Log\ApplicationLogHandler $logHandler,
\com\setasign\SetaSite\Page\PagePathAndLanguageNegotiator $pagePathAndLanguageNegotiator,
BackendPageInformationHelper $backendPageInformationHelper
Parameters
- $sessionContext : \com\setasign\SetaSite\SessionContext
- $eventManager : \com\setasign\SetaFramework\EventManager\EventManager
- $logHandler : \com\setasign\SetaFramework\Log\ApplicationLogHandler
- $pagePathAndLanguageNegotiator : \com\setasign\SetaSite\Page\PagePathAndLanguageNegotiator
- $backendPageInformationHelper : BackendPageInformationHelper
Exceptions
Throws \com\setasign\SetaSite\Exception
Throws \com\setasign\SetaSite\HttpErrorException
Throws \JsonException
Throws \Throwable
