AdminAccessUserReader

Implements \AdminAccessUserReaderInterface

Class AdminAccessUserReader

category

System

package

AdminAccess

subpackage

Readers

Methods

AdminAccessUserReader constructor.

__construct(\CI_DB_query_builder $queryBuilder, \AdminAccessUserFactoryInterface $userFactory, \AdminAccessRoleReaderInterface $roleReader) 

Arguments

$queryBuilder

\CI_DB_query_builder

Query builder.

$userFactory

\AdminAccessUserFactoryInterface

User factory.

$roleReader

\AdminAccessRoleReaderInterface

Role reader.

Creates a user object by a given array with the user data.

_createAdminUserObject(array $userData) : \AdminAccessUserInterface
Throws
\RoleNotFoundException

Arguments

$userData

array

User data.

Response

\AdminAccessUserInterface

User object.

Returns an user by a given customer ID.

getByCustomerId(\IdType $customerId) : \AdminAccessUserInterface
Throws
\UserNotFoundException

If user not found.

\RoleNotFoundException

Arguments

$customerId

\IdType

Customer ID.

Response

\AdminAccessUserInterface

User object.

Properties

queryBuilder

queryBuilder : \CI_DB_query_builder
var

Type(s)

\CI_DB_query_builder

userFactory

userFactory : \AdminAccessUserFactoryInterface

roleReader

roleReader : \AdminAccessRoleReaderInterface

usersTable

usersTable : string
var

Type(s)

string

usersRolesTable

usersRolesTable : string
var

Type(s)

string