Legend of the Green Dragon

Commentary extends AbstractExtension
in package
Uses Commentary, CommentaryModerate

Table of Contents

$color  : mixed
$commentary  : mixed
$commentaryNodeVisitor  : mixed
$onlineStatus  : array<string|int, mixed>
Text for status of online player.
$request  : mixed
$templateCommentaryBlock  : mixed
$textDomain  : string
Default text domain for translator.
$translator  : mixed
$settings  : mixed
__construct()  : mixed
addComment()  : string
Add form for add comment.
commentaryBlock()  : string
Display de commentary block.
commentaryModerateBlock()  : string
Display the commentary moderation block.
displayOneComment()  : string
Display a comment.
displayStatusOnlinePlayer()  : string
Show if status of player (Online, Offline, Nearby).
getCommentaryNodeVisitor()  : mixed
getFunctions()  : mixed
{@inheritdoc}
getName()  : mixed
{@inheritdoc}
getNodeVisitors()  : mixed
{@inheritdoc}
getTokenParsers()  : mixed
{@inheritdoc}
saveComment()  : void
Save comment to data base.
commentaryFormUrl()  : string
Get a valid url to use in commentary form.
getStatusMessages()  : array<string|int, mixed>
Get status messages of player.
statusCommandSingleIcon()  : string|null

Properties

$commentaryNodeVisitor

protected mixed $commentaryNodeVisitor

$onlineStatus

Text for status of online player.

protected array<string|int, mixed> $onlineStatus

$templateCommentaryBlock

protected mixed $templateCommentaryBlock

$textDomain

Default text domain for translator.

protected string $textDomain

Methods

addComment()

Add form for add comment.

public addComment(Environment $env, array<string|int, mixed> $commentary, string $textDomain) : string
Parameters
$env : Environment
$commentary : array<string|int, mixed>

Array with commentary data

$textDomain : string

Text domain for translator

Return values
string

commentaryBlock()

Display de commentary block.

public commentaryBlock(Environment $env, array<string|int, mixed> $commentary, string $textDomain[, string|null $paginationLinkUrl = null ][, bool $showPagination = true ][, bool $canAddComment = true ][, int $limit = 25 ]) : string
Parameters
$env : Environment
$commentary : array<string|int, mixed>
$textDomain : string
$paginationLinkUrl : string|null = null
$showPagination : bool = true
$canAddComment : bool = true
$limit : int = 25
Return values
string

commentaryModerateBlock()

Display the commentary moderation block.

public commentaryModerateBlock(Environment $env, array<string|int, mixed> $commentary, string $textDomain) : string
Parameters
$env : Environment
$commentary : array<string|int, mixed>
$textDomain : string
Return values
string

displayOneComment()

Display a comment.

public displayOneComment(Environment $env, array<string|int, mixed> $comment, string $textDomain, array<string|int, mixed> $commentary) : string
Parameters
$env : Environment
$comment : array<string|int, mixed>
$textDomain : string
$commentary : array<string|int, mixed>
Return values
string

displayStatusOnlinePlayer()

Show if status of player (Online, Offline, Nearby).

public displayStatusOnlinePlayer(array<string|int, mixed> $comment[, string $textDomain = null ]) : string
Parameters
$comment : array<string|int, mixed>
$textDomain : string = null
Return values
string

getCommentaryNodeVisitor()

public getCommentaryNodeVisitor() : mixed
Return values
mixed

getFunctions()

{@inheritdoc}

public getFunctions() : mixed
Return values
mixed

getName()

{@inheritdoc}

public getName() : mixed
Return values
mixed

getNodeVisitors()

{@inheritdoc}

public getNodeVisitors() : mixed
Return values
mixed

getTokenParsers()

{@inheritdoc}

public getTokenParsers() : mixed
Return values
mixed

saveComment()

Save comment to data base.

public saveComment() : void
Return values
void

commentaryFormUrl()

Get a valid url to use in commentary form.

protected commentaryFormUrl() : string
Return values
string

getStatusMessages()

Get status messages of player.

protected getStatusMessages(string $textDomain) : array<string|int, mixed>
Parameters
$textDomain : string
Return values
array<string|int, mixed>

statusCommandSingleIcon()

private statusCommandSingleIcon(array<string|int, mixed> $comment, array<string|int, mixed> $status) : string|null
Parameters
$comment : array<string|int, mixed>
$status : array<string|int, mixed>
Return values
string|null

Search results