\Colibri\Security\AdaptersDataAdapter

Класс адаптера для работы с базой данных

Summary

Methods
Properties
Constants
__construct()
Check()
Create()
Dispose()
Users()
Roles()
UpdateRole()
UpdateUser()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_dataPoint
$_sourceUsers
$_sourceRoles
N/A

Properties

$_sourceUsers

$_sourceUsers : string

Таблица пользователей

Type

string

$_sourceRoles

$_sourceRoles : string

Таблица ролей

Type

string

Methods

__construct()

__construct(string  $datapoint, string  $usersTable, string  $rolesTable) 

КОнструктор

Parameters

string $datapoint
string $usersTable
string $rolesTable

Check()

Check() : boolean

Проверить необходимость установки

Returns

boolean

Create()

Create() : void

Создать источники данных

Dispose()

Dispose() : void

Удаление источников данных

Users()

Users() : array<mixed,\Colibri\Security\User>

Возвращает список пользователей

Returns

array<mixed,\Colibri\Security\User>

Roles()

Roles() : array<mixed,\Colibri\Security\Role>

Возвращает список ролей

Returns

array<mixed,\Colibri\Security\Role>

UpdateRole()

UpdateRole(\Colibri\Security\Role  $roleData, integer  $id = false) : integer

Обновляет данные роли

Parameters

\Colibri\Security\Role $roleData
integer $id

Returns

integer

UpdateUser()

UpdateUser(\Colibri\Security\User  $userData, integer  $id = false) : integer

Обновляет данные пользователя

Parameters

\Colibri\Security\User $userData
integer $id

Returns

integer