\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
finishChange()
$dataGridFactory
$entityManager
$presenter
$repository
N/A

Constants

PREFIX

PREFIX = 'core.user' : 

Translation prefix

Properties

$dataGridFactory

$dataGridFactory : \App\CoreModule\Datagrids\DataGridFactory

Type

normal — Data grid factory

$entityManager

$entityManager : \App\Models\Database\EntityManager

Type

normal — Entity manager

$presenter

$presenter : \App\CoreModule\Presenters\UserPresenter

Type

normal — User manager presenter

$repository

$repository : \App\Models\Database\Repositories\UserRepository

Type

normal — User database repository

Methods

__construct()

__construct(\App\CoreModule\Datagrids\DataGridFactory  $dataGridFactory, \App\Models\Database\EntityManager  $entityManager) : mixed

Constructor

Parameters

\App\CoreModule\Datagrids\DataGridFactory $dataGridFactory

Generic data grid factory

\App\Models\Database\EntityManager $entityManager

Entity 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

finishChange()

finishChange(\App\Models\Database\Entities\User  $user) : void

Finishes changes in the user entity

Parameters

\App\Models\Database\Entities\User $user

User entity