UserManager
class UserManager implements UserManagerInterface, BasicEntityManagerInterface, JQGridInterface
Class UserManager is injected as alligator.user_manager service. UserManager handles the logic for managed entity.
Traits
Constants
| USER_MAIL_TEMPLATE |
|
Properties
| protected UserRepository | $repository | ||
| protected UserEventContainer | $eventContainer |
Methods
No description
No description
JQGrid function
Verify captcha
Finds all users in the database.
Find user by id
Finds all users in the database.
Find all users as array
Persist multiple users
Find id and provided field for all users
Check if registration requires mail confirmation
Find email for user that match provided id
Find the user by confirmationToken.
Find the user by confirmationToken.
No description
No description
No description
JQGrid function
JQGrid function
JQGrid function
Find all admin users
Find all users by group
Generate login route
Generate all users route(backend)
Find all users that match provided criteria
Find all users that match provided criteria
No description
Find user by id
Get all admin users
Find provided number of users for dashboard
Find social network links for provided user
Find all users that match provided ids
Retrieve user reference
Find all users that have provided product in wishlist
Dispatch event when user's profile picture have been changed
Dispatch event when user have been changed
Get all groups
Edit user attribute
Find all users that match provided ids
Generate random password
Updating user
Update gdpr confirmed for logged user
Find all users with pagination
Find users by mails
Find user by id
No description
Get number of orders for user
Get all emails for array of ids
No description
Retrieve user financial cards
Find id and erp code of all users
Update account balance
Find all users as array
Check if user for provided code exist
Find all user's shipping address
Re-cache pricelist on user
Re-cache product groups on user
No description
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
at line 442
array
getCountForJQGRID(null $searchParams = null, null $sortParams = null, array $additionalParams = array(), JQGridWrapper $JQGridWrapper = null)
JQGrid function
at line 55
__construct(UserRepository $repository, UserEventContainer $eventContainer)
at line 70
static mixed
verifyResponse(mixed $response, string $captchaSecret)
Verify captcha
at line 94
array
findAllUsers()
Finds all users in the database.
at line 108
User
getUserById(int $userId)
Find user by id
at line 118
array
findAllUserNames()
Finds all users in the database.
at line 128
array
findAllUsersWithSelect()
Find all users as array
at line 140
bool|string
saveMultiple(array $users, int $flushNumber = 30)
Persist multiple users
at line 151
array
getUsersIdsAndCustomFiled(string $field)
Find id and provided field for all users
at line 165
bool
isRequireMailConfirmation()
Check if registration requires mail confirmation
at line 173
User|mixed
saveUser(User $user, bool $backendSave, $currentUserSettings = null)
Save the user to the database.
at line 342
array
getMailFromDb(int $id)
Find email for user that match provided id
at line 357
editUserAddress(Address $address, mixed $id)
Edit address for user with id
at line 365
User|null|object
authenticateUserByToken(string $token)
Find the user by confirmationToken.
at line 375
User|null|object
loadUser(User $user)
Refresh the user. It is primarily used for loading user on each request.
at line 385
User|null|object
findUserByUsername(string $userName)
Find the user by confirmationToken.
at line 393
mixed
findUserByPK(int $id)
at line 401
array
addToWishList(int $id)
at line 418
User|null
removeFromWishListAction(int $id)
at line 455
array
searchForWishlistUserJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array())
JQGrid function
at line 469
array
findAllForWishlistUserJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array())
JQGrid function
at line 482
array
getCountForWishlistUserJQGRID(null $searchParams = null, array $sortParams = array(), array $additionalParams = array())
JQGrid function
at line 492
mixed
getAllAdminUser()
Find all admin users
at line 503
array
getAllUserByGroupName(string $groupName)
Find all users by group
at line 513
string
generateLoginRoute()
Generate login route
at line 523
string
generateAllUsersRoute()
Generate all users route(backend)
at line 539
array
getAllEmails(mixed $param, mixed $page, mixed $offset, mixed $arrayOfUsers = null, bool $admin = false, bool $locked = true)
Find all users that match provided criteria
at line 554
array
getAllUsersWithAdditionalInfo(array $param, int $page, int $offset, array|null $arrayOfUsers = null, bool $admin = false)
Find all users that match provided criteria
at line 562
User|null
getLoggedUser()
at line 575
mixed|null
getLoggedUserAddress(int $userId)
Find user by id
at line 585
array
getAllAdminsEmails()
Get all admin users
at line 596
array
getUsersForDashboard(int $number)
Find provided number of users for dashboard
at line 609
array
getSocialNetworksLinks(int $userId)
Find social network links for provided user
at line 619
generateUpdateAPISuccessEvent(User $user)
Generate new event which will start API user update
at line 630
array
getAllUsersInArray(array $arrayOfUsers)
Find all users that match provided ids
at line 641
User
getUserReference(int $id)
Retrieve user reference
at line 652
mixed
getClientByUserErp(User $user)
Retrieve user from erp by provided code
at line 663
mixed
updateObjects(User $user)
Update block comment when user change profile picture
at line 674
array
getUsersWithProductInWishList(int $productId)
Find all users that have provided product in wishlist
at line 685
UserPictureChangedSignalEvent
dispatchChangePictureSignalEvent(User $user)
Dispatch event when user's profile picture have been changed
at line 696
SidebarReviewsUserEvent
dispatchUserChangedSignal(string $theme)
Dispatch event when user have been changed
at line 706
array
getAllGroups()
Get all groups
at line 719
User
editUserAttributeBySetterName(int $userId, string $setter, mixed $value)
Edit user attribute
at line 733
array
getUsersArray(ArrayCollection $users)
Find all users that match provided ids
at line 749
static string
generatePassword(int $length = 20)
Generate random password
at line 766
string|boolean
removeSocialNetworkAccount(String $network)
Updating user
at line 792
bool|null
updateGdprForLoggedUser()
Update gdpr confirmed for logged user
at line 813
array
getUsersByStringParam(int $page = 1, int $offset = 10, array $params = null)
Find all users with pagination
at line 824
array
findUsersByMails(array $mails)
Find users by mails
at line 835
array
getUserInfoForOrder(int $id)
Find user by id
at line 843
UserSettings
getCurrentUserSettings()
at line 857
User|null
getNumberOfOrdersForUser(int $userId, string $orderState = 'pending')
Get number of orders for user
at line 868
array
getAllEmailsForArrayOfIds(array|null $ids = null)
Get all emails for array of ids
at line 876
User|null
getCurrentUser()
at line 889
Event
getUserFinancialCard(int $page, int $offset, string $userCode = null)
Retrieve user financial cards
at line 899
array
getUserIdErpCodes()
Find id and erp code of all users
at line 910
bool|string
updateAccountBalance(array $data)
Update account balance
at line 919
addUserToNewsletter(User $user, bool $ignoreDuplicate = false)
at line 929
array|null
getUserDataFromErp(User $user)
at line 939
array
getBaseUserDataInArray()
Find all users as array
at line 950
bool
checkUserSecondaryCode(string $code)
Check if user for provided code exist
at line 961
bool
updateAddressErpCode(Address $address)
Update address erp code
at line 971
array
getAllUsersShippingAddresses()
Find all user's shipping address
at line 981
bool|string
reCacheUserPricelistItemsArray()
Re-cache pricelist on user
at line 993
bool|string
reCacheUserGroupDiscountsArray(array $ids = [])
Re-cache product groups on user