com\setasign\SetaSite\Controller

Error Class Error

File: /SetaSite/src/Controller/Error.php

Class hierarchy

  • com\setasign\SetaFramework\Controller\AbstractController

Implements

  • \com\setasign\SetaFramework\Controller\ControllerInterface

Summary

Properties

$httpFactory

protected \com\setasign\SetaFramework\Http\HttpFactoryInterface \com\setasign\SetaFramework\Controller\AbstractController::$httpFactory

$response

protected ?\Psr\Http\Message\ResponseInterface \com\setasign\SetaFramework\Controller\AbstractController::$response

Methods

__construct()

public \com\setasign\SetaFramework\Controller\AbstractController::__construct (
\com\setasign\SetaFramework\Http\HttpFactoryInterface $httpFactory
)
Parameters
$httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
 

getParam()

public \com\setasign\SetaFramework\Controller\AbstractController::getParam (
string $name,
mixed $default = null
): ?mixed

Returns a param if it exists otherwise this will return $default

Parameters
$name : string
 
$default : mixed
 

getParams()

public \com\setasign\SetaFramework\Controller\AbstractController::getParams (
void
): array

Get all existing params

getResponse()

public \com\setasign\SetaFramework\Controller\AbstractController::getResponse (
void
): \Psr\Http\Message\ResponseInterface

indexAction()

public Error::indexAction (
\com\setasign\SetaFramework\Application\ApplicationConfig $config,
\com\setasign\SetaFramework\Log\ApplicationLogHandler $logHandler,
\com\setasign\SetaFramework\Controller\ControllerDispatcher $controllerDispatcher,
\com\setasign\SetaSite\SessionContext $sessionContext
): void
Parameters
$config : \com\setasign\SetaFramework\Application\ApplicationConfig
 
$logHandler : \com\setasign\SetaFramework\Log\ApplicationLogHandler
 
$controllerDispatcher : \com\setasign\SetaFramework\Controller\ControllerDispatcher
 
$sessionContext : \com\setasign\SetaSite\SessionContext
 
Exceptions

Throws \Throwable

Throws \com\setasign\SetaFramework\Controller\InitControllerException

renderView()

protected Error::renderView (
void
): void
Exceptions

Throws \com\setasign\SetaSite\Exception

resetResponse()

public \com\setasign\SetaFramework\Controller\AbstractController::resetResponse (
void
): void

setParam()

public \com\setasign\SetaFramework\Controller\AbstractController::setParam (
string $name,
mixed $value
): \com\setasign\SetaFramework\Controller\ControllerInterface

Sets a param

Parameters
$name : string
 
$value : mixed
 

setParams()

public \com\setasign\SetaFramework\Controller\AbstractController::setParams (
array $params
): \com\setasign\SetaFramework\Controller\ControllerInterface

Set a array of params

Note: The params will be merged with the existing params!!

Parameters
$params : array