\App\InstallModule\PresentersCreateUserPresenter

Create the first webapp's user presenter

Summary

Methods
Properties
Constants
injectUserManager()
flashInfo()
flashSuccess()
flashWarning()
flashError()
afterRender()
injectTranslator()
getTranslator()
createTemplate()
$lang
$form
No constants found
startup()
createComponentCreateUserForm()
$userManager
$translator
N/A
No private methods found
No private properties found
N/A

Properties

$lang

$lang : string

Type

normal — Language

$form

$form : \App\CoreModule\Forms\UserAddFormFactory

Type

normal — Create the first webapp's user form

$userManager

$userManager : \App\CoreModule\Models\UserManager

Type

normal — User manager

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

Methods

injectUserManager()

injectUserManager(\App\CoreModule\Models\UserManager  $userManager) : void

Inject user manager

Parameters

\App\CoreModule\Models\UserManager $userManager

User manager

flashInfo()

flashInfo(string  $message) : \stdClass

Saves the info flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashSuccess()

flashSuccess(string  $message) : \stdClass

Saves the success flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashWarning()

flashWarning(string  $message) : \stdClass

Saves the warning flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

flashError()

flashError(string  $message) : \stdClass

Saves the error flash message to template, that can be displayed after redirect or AJAX request

Parameters

string $message

Message

Returns

\stdClass —

Flash message object

afterRender()

afterRender() : void

After template render

injectTranslator()

injectTranslator(\Nette\Localization\ITranslator  $translator) : void

Injects the translator service

Parameters

\Nette\Localization\ITranslator $translator

Translator

getTranslator()

getTranslator() : \Nette\Localization\ITranslator

Returns the translator

Returns

\Nette\Localization\ITranslator —

Transtalor

createTemplate()

createTemplate() : \Nette\Application\UI\ITemplate

Creates an template

Returns

\Nette\Application\UI\ITemplate —

Template

startup()

startup() : void

Starts up an base presenter

createComponentCreateUserForm()

createComponentCreateUserForm() : \Nette\Application\UI\Form

Creates the create the first webapp's user form

Returns

\Nette\Application\UI\Form —

Create the first webapp's user form