Properties

$versionManager

$versionManager : \App\CoreModule\Models\VersionManager

Type

normal — Version manager

$lang

$lang : string

Type

normal — Language

$addFormFactory

$addFormFactory : \App\CoreModule\Forms\UserAddFormFactory

Type

normal — Add a new user form factory

$dataGridFactory

$dataGridFactory : \App\CoreModule\Datagrids\UserDataGridFactory

Type

normal — User data grid factory

$editFormFactory

$editFormFactory : \App\CoreModule\Forms\UserEditFormFactory

Type

normal — Edit an existing user form factory

$componentManager

$componentManager : \App\ConfigModule\Models\ComponentManager

Type

normal — Component manager

$featureManager

$featureManager : \App\CoreModule\Models\FeatureManager

Type

normal — Optional feature manager

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

$userManager

$userManager : \App\CoreModule\Models\UserManager

Type

normal — User manager

Methods

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

checkRequirements()

checkRequirements(mixed  $element) : void

Checks requirements

Parameters

mixed $element

Element

injectComponentManager()

injectComponentManager(\App\ConfigModule\Models\ComponentManager  $componentManager) : void

Injects the component manager

Parameters

\App\ConfigModule\Models\ComponentManager $componentManager

Component manager

injectFeatureManager()

injectFeatureManager(\App\CoreModule\Models\FeatureManager  $manager) : void

Injects the optional feature manager

Parameters

\App\CoreModule\Models\FeatureManager $manager

Optional feature manager

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 —

Translator

createTemplate()

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

Creates an template

Returns

\Nette\Application\UI\ITemplate —

Template

__construct()

__construct(\App\CoreModule\Models\UserManager  $userManager) : mixed

Constructor

Parameters

\App\CoreModule\Models\UserManager $userManager

User manager

Returns

mixed

actionEdit()

actionEdit(int  $id) : void

Renders the form for editing users

Parameters

int $id

User ID

actionDelete()

actionDelete(int  $id) : void

Deletes an user

Parameters

int $id

User ID

createComponentUserAddForm()

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

Creates the add a new user form

Returns

\Nette\Application\UI\Form —

Add a new user form

createComponentUserGrid()

createComponentUserGrid(string  $name) : \Ublaboo\DataGrid\DataGrid

Creates the data grid

Parameters

string $name

Component name

Throws

\Ublaboo\DataGrid\Exception\DataGridColumnStatusException
\Ublaboo\DataGrid\Exception\DataGridException

Returns

\Ublaboo\DataGrid\DataGrid —

Datagrid with users

createComponentUserEditForm()

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

Creates the edit an existing user form

Returns

\Nette\Application\UI\Form —

Edit an existing user form