interface UserManagerInterface

Interface to be implemented by user managers. This adds an additional level of abstraction between application, and the actual repository.

All changes to users should happen through this interface.

Methods

array
findAllUsers()

Finds all users in the database.

User|mixed
saveUser(User $user, bool $backendSave)

Save the user to the database.

editUser(User $user, bool $backendEdit)

Edit the user from database.

User|null|object
authenticateUserByToken(string $token)

Find the user by confirmationToken.

User|null|object
loadUser(User $user)

Refresh the user. It is primarily used for loading user on each request.

User|null|object
findUserByUsername(string $userName)

Find the user by confirmationToken.

editUserAddress(Address $address, mixed $id)

Edit address for user with id

mixed
findUserByPK(int $id)

No description

array
addToWishList(int $id)

No description

User|null
removeFromWishListAction(int $id)

No description

mixed
getAllAdminUser()

No description

Details

at line 29
array findAllUsers()

Finds all users in the database.

Return Value

array The entities.

at line 38
User|mixed saveUser(User $user, bool $backendSave)

Save the user to the database.

Parameters

User $user
bool $backendSave

Return Value

User|mixed

at line 47
User editUser(User $user, bool $backendEdit)

Edit the user from database.

Parameters

User $user
  • User from database
bool $backendEdit
  • is admin editing user

Return Value

User

at line 55
User|null|object authenticateUserByToken(string $token)

Find the user by confirmationToken.

Parameters

string $token

Return Value

User|null|object

at line 63
User|null|object loadUser(User $user)

Refresh the user. It is primarily used for loading user on each request.

Parameters

User $user

Return Value

User|null|object

at line 71
User|null|object findUserByUsername(string $userName)

Find the user by confirmationToken.

Parameters

string $userName

Return Value

User|null|object

at line 78
editUserAddress(Address $address, mixed $id)

Edit address for user with id

Parameters

Address $address
  • Address object
mixed $id
  • Id for user

at line 85
mixed findUserByPK(int $id)

Parameters

int $id

Return Value

mixed

at line 95
array addToWishList(int $id)

Parameters

int $id

Return Value

array

Exceptions

ORMException
OptimisticLockException

at line 102
User|null removeFromWishListAction(int $id)

Parameters

int $id

Return Value

User|null

at line 107
mixed getAllAdminUser()

Return Value

mixed