Legend of the Green Dragon

Response extends Response
in package

Table of Contents

$buffer  : Buffer
$doctrine  : EntityManager
$eventDispatcher  : EventDispatcherInterface
$headTitle  : mixed
$kernel  : mixed
$pageParts  : mixed
$params  : mixed
$request  : mixed
$template  : mixed
$tool  : Tool
$translator  : mixed
__construct()  : mixed
callController()  : void
Call a controller and add content to response.
pageAddContent()  : void
Add content to response.
pageDebug()  : mixed
Lets you display debug output (specially formatted, optionally only visible to SU_DEBUG users).
pageEnd()  : never
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

$eventDispatcher

private EventDispatcherInterface $eventDispatcher

Methods

__construct()

public __construct(EntityManagerInterface $doctrine, HeadTitle $headTitle, Environment $template, Request $request, Params $params, KernelInterface $kernel, PageParts $pageParts) : mixed
Parameters
$doctrine : EntityManagerInterface
$headTitle : HeadTitle
$template : Environment
$request : Request
$params : Params
$kernel : KernelInterface
$pageParts : PageParts
Return values
mixed

callController()

Call a controller and add content to response.

public callController(string $class[, string $method = 'index' ][, bool $send = false ][, bool $saveUser = true ]) : void
Parameters
$class : string

Fully Qualified Class Name

$method : string = 'index'

Method to call of controller

$send : bool = false

Send content or add to response content

$saveUser : bool = true
Return values
void

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 ]) : never
Parameters
$saveuser : bool = true
Return values
never

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
Return values
mixed

Search results