GameCore
extends AbstractExtension
in package
Uses
CharacterFunction, CoreFilter, CoreFunction, Mail, News, PageGen, Petition, Source
Table of Contents
- $dispatcher : mixed
- $doctrine : mixed
- $request : mixed
- $sanitize : mixed
- $session : mixed
- $settings : mixed
- $translator : mixed
- __construct() : mixed
- adminPetition() : string
- Get admin petition links.
- affirmationNegation() : text
- Show an affirmation or negation.
- baseUrl() : string
- Add server name to url query.
- characterRace() : string
- Get character race name.
- colorize() : string
- Colorize a string.
- gamePageGen() : string
- Get page gen time.
- gameSource() : string
- Get source link.
- getFilters() : mixed
- {@inheritdoc}
- getFunctions() : mixed
- {@inheritdoc}
- getName() : mixed
- {@inheritdoc}
- getTests() : mixed
- {@inheritdoc}
- highlightFile() : string|null
- Syntax highlighting of a file.
- highlightString() : string|null
- Syntax highlighting of a string.
- isValidProtocol() : bool
- Validating a protocol.
- numeral() : string
- Format a number.
- preventCodes() : string
- Preven to format a LotGD code.
- pvpListSleepers() : string
- Render a count of sleepers for zone.
- pvpListTable() : string
- Render a PvP table list.
- relativedate() : string
- Show a relative date from now.
- sessionCookieName() : string
- Get cookie name.
- showNewsItem() : mixed
- sprintfnews() : string
- Similar to filter "format" but second argument is an array.
- triggerEvent() : mixed
- Activate a hook.
- userPetition() : string
- Get user petition link.
- varDump() : string
- Dump var and return a string.
- yeOldeMail() : string
- Get ye olde mail link.
Properties
$dispatcher
protected
mixed
$dispatcher
$doctrine
protected
mixed
$doctrine
$request
protected
mixed
$request
$sanitize
protected
mixed
$sanitize
$session
protected
mixed
$session
$settings
protected
mixed
$settings
$translator
protected
mixed
$translator
Methods
__construct()
public
__construct(Request $request, Sanitize $sanitize, TranslatorInterface $translator, EventDispatcherInterface $dispatcher, EntityManagerInterface $doctrine, SessionInterface $session) : mixed
Parameters
- $request : Request
- $sanitize : Sanitize
- $translator : TranslatorInterface
- $dispatcher : EventDispatcherInterface
- $doctrine : EntityManagerInterface
- $session : SessionInterface
Return values
mixed —adminPetition()
Get admin petition links.
public
adminPetition(Environment $env) : string
Parameters
- $env : Environment
Return values
string —affirmationNegation()
Show an affirmation or negation.
public
affirmationNegation(int|bool $value[, string $yes = 'adverb.yes' ][, string $no = 'adverb.no' ][, string $textDomain = 'app_common' ]) : text
Parameters
- $value : int|bool
-
Value to check
- $yes : string = 'adverb.yes'
-
Translation key
- $no : string = 'adverb.no'
-
Translation key
- $textDomain : string = 'app_common'
-
Domain for translation
Return values
text —baseUrl()
Add server name to url query.
public
baseUrl(string $query) : string
Parameters
- $query : string
Return values
string —characterRace()
Get character race name.
public
characterRace() : string
Return values
string —colorize()
Colorize a string.
public
colorize(string|null $string) : string
Parameters
- $string : string|null
Return values
string —gamePageGen()
Get page gen time.
public
gamePageGen(Environment $env) : string
Parameters
- $env : Environment
Return values
string —gameSource()
Get source link.
public
gameSource(Environment $env) : string
Parameters
- $env : Environment
Return values
string —getFilters()
{@inheritdoc}
public
getFilters() : mixed
Return values
mixed —getFunctions()
{@inheritdoc}
public
getFunctions() : mixed
Return values
mixed —getName()
{@inheritdoc}
public
getName() : mixed
Return values
mixed —getTests()
{@inheritdoc}
public
getTests() : mixed
Return values
mixed —highlightFile()
Syntax highlighting of a file.
public
highlightFile(string $file) : string|null
Parameters
- $file : string
Return values
string|null —highlightString()
Syntax highlighting of a string.
public
highlightString(string $string) : string|null
Parameters
- $string : string
Return values
string|null —isValidProtocol()
Validating a protocol.
public
isValidProtocol(mixed $url) : bool
Parameters
- $url : mixed
Return values
bool —numeral()
Format a number.
public
numeral(mixed $number, int|null $decimals) : string
Parameters
- $number : mixed
- $decimals : int|null
Return values
string —preventCodes()
Preven to format a LotGD code.
public
preventCodes(string|null $string) : string
Parameters
- $string : string|null
Return values
string —pvpListSleepers()
Render a count of sleepers for zone.
public
pvpListSleepers(Environment $env, array<string|int, mixed> $params) : string
Parameters
- $env : Environment
- $params : array<string|int, mixed>
Return values
string —pvpListTable()
Render a PvP table list.
public
pvpListTable(Environment $env, array<string|int, mixed> $params) : string
Parameters
- $env : Environment
- $params : array<string|int, mixed>
Return values
string —relativedate()
Show a relative date from now.
public
relativedate(mixed $string[, string $default = null ]) : string
Parameters
- $string : mixed
- $default : string = null
Return values
string —sessionCookieName()
Get cookie name.
public
sessionCookieName() : string
Return values
string —showNewsItem()
public
showNewsItem(mixed $item) : mixed
Parameters
- $item : mixed
Return values
mixed —sprintfnews()
Similar to filter "format" but second argument is an array.
public
sprintfnews(string $string, array<string|int, mixed> $arguments) : string
Parameters
- $string : string
- $arguments : array<string|int, mixed>
Return values
string —triggerEvent()
Activate a hook.
public
triggerEvent(string $name[, array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $name : string
- $data : array<string|int, mixed> = []
Return values
mixed —userPetition()
Get user petition link.
public
userPetition(Environment $env) : string
Parameters
- $env : Environment
Return values
string —varDump()
Dump var and return a string.
public
varDump(mixed $var) : string
Parameters
- $var : mixed
Return values
string —yeOldeMail()
Get ye olde mail link.
public
yeOldeMail(Environment $env) : string
Parameters
- $env : Environment