Response extends Response
Table of Contents
- $doctrine : mixed
- $headTitle : mixed
- $hookManager : mixed
- $params : mixed
- $request : mixed
- $template : mixed
- $translator : mixed
- __construct() : mixed
- pageAddContent() : void
- Add content to response.
- pageDebug() : mixed
- Lets you display debug output (specially formatted, optionally only visible to SU_DEBUG users).
- pageEnd() : void
- Page and send content to browser.
- pageGetContent() : string
- Alias of getContent.
- pageSetContent() : void
- Alias of setContent().
- pageStart() : void
- Start page.
- pageTitle() : void
- Set title for page.
- setCookie() : mixed
- Send a cookie.
- getOutputCharacterStats() : mixed
- Output character stats.
Properties
$doctrine
protected
mixed
$doctrine
$headTitle
protected
mixed
$headTitle
$hookManager
protected
mixed
$hookManager
$params
protected
mixed
$params
$request
protected
mixed
$request
$template
protected
mixed
$template
$translator
protected
mixed
$translator
Methods
__construct()
public
__construct(TranslatorInterface $translator, EntityManagerInterface $doctrine, HeadTitle $headTitle, Environment $template, Request $request, EventManager $hookManager, Params $params) : mixed
Parameters
- $translator : TranslatorInterface
- $doctrine : EntityManagerInterface
- $headTitle : HeadTitle
- $template : Environment
- $request : Request
- $hookManager : EventManager
- $params : Params
Return values
mixed —pageAddContent()
Add content to response.
public
pageAddContent(string|null $value) : void
To overwrite content use pageSetContent($value) or setContent($value).
Parameters
- $value : string|null
Return values
void —pageDebug()
Lets you display debug output (specially formatted, optionally only visible to SU_DEBUG users).
public
pageDebug( $text[, $force = false ]) : mixed
Parameters
- $text :
-
The input text or variable to debug, string
- $force : = false
-
Default is false, if true it will always be outputted to ANY user. If false, only SU_DEBUG will see it.
Return values
mixed —pageEnd()
Page and send content to browser.
public
pageEnd([bool $saveuser = true ]) : void
Parameters
- $saveuser : bool = true
Return values
void —pageGetContent()
Alias of getContent.
public
pageGetContent() : string
Return values
string —pageSetContent()
Alias of setContent().
public
pageSetContent(string|null $value) : void
THIS OVERWRITE ALL CONTENT, to add more content use pageAddContent($value).
Parameters
- $value : string|null
Return values
void —pageStart()
Start page.
public
pageStart([string|null $title = null ][, array<string|int, mixed>|null $parameters = [] ][, string $textDomain = Kernel::TEXT_DOMAIN_DEFAULT ][, string|null $locale = null ]) : void
Parameters
- $title : string|null = null
- $parameters : array<string|int, mixed>|null = []
- $textDomain : string = Kernel::TEXT_DOMAIN_DEFAULT
- $locale : string|null = null
Return values
void —pageTitle()
Set title for page.
public
pageTitle(string $message[, array<string|int, mixed>|null $parameters = [] ][, string $textDomain = Kernel::TEXT_DOMAIN_DEFAULT ][, string|null $locale = null ]) : void
Parameters
- $message : string
- $parameters : array<string|int, mixed>|null = []
- $textDomain : string = Kernel::TEXT_DOMAIN_DEFAULT
- $locale : string|null = null
Return values
void —setCookie()
Send a cookie.
public
setCookie(string $name, string $value[, string $duration = '+120 days' ][, string $path = '' ][, string $domain = '' ][, bool $secure = true ][, bool $httponly = true ]) : mixed
Parameters
- $name : string
- $value : string
- $duration : string = '+120 days'
- $path : string = ''
- $domain : string = ''
- $secure : bool = true
- $httponly : bool = true
Return values
mixed —getOutputCharacterStats()
Output character stats.
private
getOutputCharacterStats() : mixed