\App\CoreModule\DatagridsUserDataGridFactory

User data grid

Summary

Methods
Properties
Constants
__construct()
create()
changeRole()
changeLanguage()
No public properties found
PREFIX
No protected methods found
No protected properties found
N/A
edit()
$dataGridFactory
$manager
$presenter
N/A

Constants

PREFIX

PREFIX = 'core.user' : 

Translation prefix

Properties

$dataGridFactory

$dataGridFactory : \App\CoreModule\Datagrids\DataGridFactory

Type

normal — Data grid factory

$manager

$manager : \App\CoreModule\Models\UserManager

Type

normal — User manager

$presenter

$presenter : \App\CoreModule\Presenters\UserPresenter

Type

normal — User manager presenter

Methods

__construct()

__construct(\App\CoreModule\Datagrids\DataGridFactory  $dataGridFactory, \App\CoreModule\Models\UserManager  $manager) : mixed

Constructor

Parameters

\App\CoreModule\Datagrids\DataGridFactory $dataGridFactory

Generic data grid factory

\App\CoreModule\Models\UserManager $manager

User manager

Returns

mixed

create()

create(\App\CoreModule\Presenters\UserPresenter  $presenter, string  $name) : \Ublaboo\DataGrid\DataGrid

Creates the user data grid

Parameters

\App\CoreModule\Presenters\UserPresenter $presenter

User presenter

string $name

Data grid's component name

Throws

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

Returns

\Ublaboo\DataGrid\DataGrid —

User data grid

changeRole()

changeRole(string  $id, string  $role) : void

Changes user's role

Parameters

string $id

User ID

string $role

User's role

changeLanguage()

changeLanguage(string  $id, string  $language) : void

Changes user's language

Parameters

string $id

User ID

string $language

User's language

edit()

edit(int  $id, string|null  $username, string|null  $role, string|null  $language) : void

Changes the user

Parameters

int $id

User's ID

string|null $username

Username

string|null $role

User's role

string|null $language

User's language