| 1 | <?php |
||
| 14 | class AdminUsersMapper extends AbstractTableGateway implements AdapterAwareInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $table = 'admin_users'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Db adapter setter method, |
||
| 23 | * |
||
| 24 | * @param Adapter $adapter db adapter |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | public function setDbAdapter(Adapter $adapter) |
||
| 31 | |||
| 32 | public function get($id) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Get admin user by email. |
||
| 39 | * |
||
| 40 | * @param string $email email |
||
| 41 | * @return array|\ArrayObject|null |
||
| 42 | */ |
||
| 43 | public function getByEmail(string $email) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Updates login data. |
||
| 50 | * |
||
| 51 | * @param string $uuid admin user uuid |
||
| 52 | * @return int number of affected rows |
||
| 53 | */ |
||
| 54 | public function updateLogin(string $uuid) : int |
||
| 58 | |||
| 59 | public function getPaginationSelect($userId) |
||
| 67 | } |
||
| 68 |