Legend of the Green Dragon

Motd extends AjaxAbstract Uses Item, Poll

Dialog for MOTD.

Table of Contents

TEXT_DOMAIN  = 'jaxon_motd'
$repositoryMotd  : mixed
$templateMotd  : mixed
addItem()  : Response
addPoll()  : Response
delete()  : Response
Delete a item MOTD.
editItem()  : Response
Edit a MOTD item.
getTextDomain()  : string
Get text domain.
list()  : Response
List all MOTD.
vote()  : Response
Vote in a poll.
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 MOTD.
getParams()  : array<string|int, mixed>
Get default params.
getRepository()  : MotdRepository
Get repository of Motd entity.

Constants

TEXT_DOMAIN

public mixed TEXT_DOMAIN = 'jaxon_motd'

Properties

$repositoryMotd

protected mixed $repositoryMotd

$templateMotd

protected mixed $templateMotd

Methods

addItem()

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

addPoll()

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

delete()

Delete a item MOTD.

public delete(int $id) : Response
Parameters
$id : int
Return values
Response

editItem()

Edit a MOTD item.

public editItem(int $id[, mixed $post = null ]) : Response
Parameters
$id : int
$post : mixed = null
Return values
Response

getTextDomain()

Get text domain.

public getTextDomain() : string
Return values
string

list()

List all MOTD.

public list([int|null $page = 1 ][, int|null $motdPerPage = 5 ][, string|null $month = null ]) : Response
Parameters
$page : int|null = 1
$motdPerPage : int|null = 5
$month : string|null = null
Return values
Response

vote()

Vote in a poll.

public vote(int $id, int $choice) : Response
Parameters
$id : int
$choice : int
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 MOTD.

protected getTemplate() : mixed
Return values
mixed

getParams()

Get default params.

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

Search results