com\setasign\SetaSite\Controller\Frontend

JsErrorLogger Class AbstractController

File: /SetaSite/src/Controller/Frontend/JsErrorLogger.php

Class hierarchy

  • com\setasign\SetaFramework\Controller\AbstractViewController

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

$viewScript

protected string \com\setasign\SetaFramework\Controller\AbstractViewController::$viewScript

Methods

__construct()

public \com\setasign\SetaFramework\Controller\AbstractViewController::__construct (
\com\setasign\SetaFramework\Http\HttpFactoryInterface $httpFactory,
\com\setasign\SetaFramework\View\View $view
)
Parameters
$httpFactory : \com\setasign\SetaFramework\Http\HttpFactoryInterface
 
$view : \com\setasign\SetaFramework\View\View
 

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

getView()

public \com\setasign\SetaFramework\Controller\AbstractViewController::getView (
void
): \com\setasign\SetaFramework\View\View

Returns the view

indexAction()

public JsErrorLogger::indexAction (
\com\setasign\SetaFramework\Request\ServerRequest $request,
\com\setasign\SetaFramework\Log\ApplicationLogHandler $logHandler,
JsErrorLoggerLimiter $limiter
): void
Parameters
$request : \com\setasign\SetaFramework\Request\ServerRequest
 
$logHandler : \com\setasign\SetaFramework\Log\ApplicationLogHandler
 
$limiter : JsErrorLoggerLimiter
 

renderView()

protected \com\setasign\SetaFramework\Controller\AbstractViewController::renderView (
void
): void
Exceptions

Throws \com\setasign\SetaFramework\View\ViewException

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