MailController
extends AbstractController
in package
implements
LotgdControllerInterface
Uses
LotgdControllerTrait
Interfaces, Classes, Traits and Enums
- LotgdControllerInterface
- Interface for migrating module to bundle.
Table of Contents
- TRANSLATION_DOMAIN = 'jaxon_mail'
- $avatarRepository : mixed
- $repository : mixed
- $sanitize : mixed
- $settings : mixed
- $systemMail : mixed
- $translator : mixed
- __construct() : mixed
- allowAnonymous() : bool
- Not allow anonymous access.
- delete() : Response
- Delete mail by ID.
- deleteBulk() : Response
- Delete mail in bulk by ID.
- inbox() : Response
- overrideForcedNav() : bool
- Override navs.
- read() : Response
- reply() : Response
- Reply to a message.
- searchAvatar() : JsonResponse
- Undocumented function.
- status() : Response
- Status of mail show in button.
- unread() : Response
- Mark message as unread.
- write() : Response
- Write message for a user.
- addNotification() : never
- Adds a notification to the current session for type.
- renderBlock() : Response
- Renders a view block.
- getParams() : array<string|int, mixed>
- Get default params.
- sanitize() : string
- Filter a string.
- send() : void
Constants
TRANSLATION_DOMAIN
public
mixed
TRANSLATION_DOMAIN
= 'jaxon_mail'
Properties
$avatarRepository
private
mixed
$avatarRepository
$repository
private
mixed
$repository
$sanitize
private
mixed
$sanitize
$settings
private
mixed
$settings
$systemMail
private
mixed
$systemMail
$translator
private
mixed
$translator
Methods
__construct()
public
__construct(MailRepository $repository, Settings $settings, TranslatorInterface $translator, AvatarRepository $avatarRepository, Sanitize $sanitize, SystemMail $systemMail) : mixed
Parameters
- $repository : MailRepository
- $settings : Settings
- $translator : TranslatorInterface
- $avatarRepository : AvatarRepository
- $sanitize : Sanitize
- $systemMail : SystemMail
Return values
mixed —allowAnonymous()
Not allow anonymous access.
public
allowAnonymous() : bool
Return values
bool —delete()
Delete mail by ID.
public
delete(Request $request) : Response
Parameters
- $request : Request
Return values
Response —deleteBulk()
Delete mail in bulk by ID.
public
deleteBulk(Request $request) : Response
Parameters
- $request : Request
Return values
Response —inbox()
public
inbox(Request $request) : Response
Parameters
- $request : Request
Return values
Response —overrideForcedNav()
Override navs.
public
overrideForcedNav() : bool
Return values
bool —read()
public
read(Request $request) : Response
Parameters
- $request : Request
Return values
Response —reply()
Reply to a message.
public
reply(Request $request) : Response
Parameters
- $request : Request
Return values
Response —searchAvatar()
Undocumented function.
public
searchAvatar(Request $request) : JsonResponse
Parameters
- $request : Request
Return values
JsonResponse —status()
Status of mail show in button.
public
status() : Response
Return values
Response —unread()
Mark message as unread.
public
unread(Request $request) : Response
Parameters
- $request : Request
Return values
Response —write()
Write message for a user.
public
write(Request $request) : Response
Parameters
- $request : Request
Return values
Response —addNotification()
Adds a notification to the current session for type.
protected
addNotification(string $type, mixed $message) : never
Parameters
- $type : string
- $message : mixed
Tags
Return values
never —renderBlock()
Renders a view block.
protected
renderBlock(string $view, string $block[, array<string|int, mixed> $parameters = [] ][, Response|null $response = null ]) : Response
Parameters
- $view : string
- $block : string
- $parameters : array<string|int, mixed> = []
- $response : Response|null = null
Return values
Response —getParams()
Get default params.
private
getParams() : array<string|int, mixed>
Return values
array<string|int, mixed> —sanitize()
Filter a string.
private
sanitize(string $string, bool $isSubject) : string
Parameters
- $string : string
- $isSubject : bool
Return values
string —send()
private
send(FormInterface &$form, FormInterface $formEmpty) : void
Parameters
- $form : FormInterface
- $formEmpty : FormInterface