Legend of the Green Dragon

Petition extends AjaxAbstract Uses Faq, Report

Dialog for petition for help.

Table of Contents

TEXT_DOMAIN  = 'jaxon_petition'
$repositoryPetition  : mixed
$templatePetition  : mixed
faq()  : mixed
getTextDomain()  : string
Get text domain.
help()  : Response
primer()  : mixed
report()  : Response
checkLoggedIn()  : true|Response
Return true or empty Jaxon\Response\Response.
checkLoggedInRedirect()  : true|Redirect
Return true or redirect to home.php page.
getTemplate()  : mixed
Get template of block for Petition.
emailPetitionAdmin()  : void
If the admin wants it, email the petitions to them.
faqToc()  : array<string|int, mixed>
Creaqte list of faqs.
getParams()  : array<string|int, mixed>
Get default params.
getRepository()  : PetitionsRepository
Get repository of Petitions entity.
processForm()  : mixed

Constants

TEXT_DOMAIN

public mixed TEXT_DOMAIN = 'jaxon_petition'

Properties

$repositoryPetition

protected mixed $repositoryPetition

$templatePetition

protected mixed $templatePetition

Methods

faq()

public faq([int|null $faq = null ]) : mixed
Parameters
$faq : int|null = null
Return values
mixed

getTextDomain()

Get text domain.

public getTextDomain() : string
Return values
string

help()

public help([array<string|int, mixed>|null $post = null ]) : Response
Parameters
$post : array<string|int, mixed>|null = null
Return values
Response

primer()

public primer() : mixed
Return values
mixed

report()

public report(int $playerId, string $message[, array<string|int, mixed>|null $post = null ]) : Response
Parameters
$playerId : int
$message : string
$post : array<string|int, mixed>|null = null
Return values
Response

checkLoggedIn()

Return true or empty Jaxon\Response\Response.

protected checkLoggedIn() : true|Response
Return values
true|Response

checkLoggedInRedirect()

Return true or redirect to home.php page.

protected checkLoggedInRedirect() : true|Redirect
Return values
true|Redirect

getTemplate()

Get template of block for Petition.

protected getTemplate() : mixed
Return values
mixed

emailPetitionAdmin()

If the admin wants it, email the petitions to them.

private emailPetitionAdmin(string $name, array<string|int, mixed> $post) : void
Parameters
$name : string
$post : array<string|int, mixed>
Return values
void

faqToc()

Creaqte list of faqs.

private faqToc() : array<string|int, mixed>
Return values
array<string|int, mixed>

getParams()

Get default params.

private getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>

processForm()

private processForm(mixed &$form, mixed $formClone, mixed $repository, mixed $response) : mixed
Parameters
$form : mixed
$formClone : mixed
$repository : mixed
$response : mixed
Return values
mixed

Search results