# Class Opencart\Admin\Model\User\User

`extends` | `Model`

Class User

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\User\User

Located at admin\model\user\user.php

Methods
`public` | `addUser(array<string, mixed> $data): int` Add User Add User | #
`public` | `editUser(int $user_id, array<string, mixed> $data): void` Edit User Edit User | #
`public` | `editPassword(int $user_id, string $password): void` Edit Password Edit Password | #
`public` | `editCode(string $email, string $code): void` Edit Code Edit Code | #
`public` | `deleteUser(int $user_id): void` Delete User Delete User | #
`public` | `getUser(int $user_id): array<string, mixed>` Get User Get User | #
`public` | `getUserByUsername(string $username): array<string, mixed>` Get User By Username Get User By Username | #
`public` | `getUserByEmail(string $email): array<string, mixed>` Get User By Email Get User By Email | #
`public` | `getUserByCode(string $code): array<string, mixed>` Get User By Code Get User By Code | #
`public` | `getUsers(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Users Get Users | #
`public` | `getTotalUsers(array<string, mixed> $data = []): int` Get Total Users Get Total Users | #
`public` | `getTotalUsersByGroupId(int $user_group_id): int` Get Total Users By Group ID Get Total Users By Group ID | #
`public` | `getTotalUsersByEmail(string $email): int` Get Total Users By Email Get Total Users By Email | #
`public` | `addLogin(int $user_id, array<string, mixed> $data): void` Add Login Add Login | #
`public` | `deleteLogins(int $user_id): void` Delete User Logins Delete User Logins | #
`public` | `getLogins(int $user_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Logins Get Logins | #
`public` | `getTotalLogins(int $user_id): int` Get Total Logins Get Total Logins | #
`public` | `addAuthorize(int $user_id, array<string, mixed> $data): void` Add Authorize Add Authorize | #
`public` | `editAuthorizeStatus(int $user_authorize_id, bool $status): void` Edit Authorize Status Edit Authorize Status | #
`public` | `editAuthorizeTotal(int $user_authorize_id, int $total): void` Edit Authorize Total Edit Authorize Total | #
`public` | `editAuthorizeTotalByUserId(int $user_id, int $total): void` Reset User Authorizes Reset User Authorizes | #
`public` | `deleteAuthorizes(int $user_id, int $user_authorize_id = 0): void` Delete User Authorizes Delete User Authorizes | #
`public` | `getAuthorize(int $user_authorize_id): array<string, mixed>` Get Authorize Get Authorize | #
`public` | `getAuthorizeByToken(int $user_id, string $token): array<string, mixed>` Get Authorize By Token Get Authorize By Token | #
`public` | `getAuthorizes(int $user_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Authorizes Get Authorizes | #
`public` | `getTotalAuthorizes(int $user_id): int` Get Total Authorizes Get Total Authorizes | #

Methods inherited from Opencart\System\Engine\Model
`__construct(), __get(), __set(), __isset()`

Properties inherited from Opencart\System\Engine\Model
`$registry`

OpenCart API API documentation generated by ApiGen dev-master