UserRepository
in package
FinalYes
Repository.
Table of Contents
Properties
Methods
- __construct() : mixed
- The constructor.
- addTracking() : mixed
- checkPwd() : mixed
- deleteUserById() : void
- Delete user row.
- docDeleteUserById() : void
- existsUserId() : bool
- Check user id.
- getaddress() : mixed
- getDocByEmail() : array<string|int, mixed>
- getPazIDByUserID() : mixed
- getUserById() : Aray
- Get user by id.
- historyAccess() : mixed
- insertDocUser() : int
- Insert user row.
- insertPazUser() : mixed
- pwdUpdate() : mixed
- retrieveCalendar() : mixed
- trackUserList() : mixed
- updateUser() : array<string|int, mixed>
- Update user row.
- updateUserAddr() : array<string|int, mixed>
- updateUserPassword() : array<string|int, mixed>
- toRow() : array<string|int, mixed>
- Convert to array.
Properties
$queryFactory
private
QueryFactory
$queryFactory
Methods
__construct()
The constructor.
public
__construct(QueryFactory $queryFactory) : mixed
Parameters
- $queryFactory : QueryFactory
-
The query factory
addTracking()
public
addTracking(mixed $user_id, mixed $coords, mixed $addr) : mixed
Parameters
- $user_id : mixed
- $coords : mixed
- $addr : mixed
checkPwd()
public
checkPwd(mixed $pwd, mixed $uid) : mixed
Parameters
- $pwd : mixed
- $uid : mixed
deleteUserById()
Delete user row.
public
deleteUserById(int $userId) : void
Parameters
- $userId : int
-
The user id
docDeleteUserById()
public
docDeleteUserById(int $userId) : void
Parameters
- $userId : int
existsUserId()
Check user id.
public
existsUserId(int $userId) : bool
Parameters
- $userId : int
-
The user id
Return values
bool —True if exists
getaddress()
public
getaddress(mixed $coord) : mixed
Parameters
- $coord : mixed
getDocByEmail()
public
getDocByEmail(string $email) : array<string|int, mixed>
Parameters
- $email : string
Return values
array<string|int, mixed>getPazIDByUserID()
public
getPazIDByUserID(mixed $user_id) : mixed
Parameters
- $user_id : mixed
getUserById()
Get user by id.
public
getUserById(int $userId) : Aray
Parameters
- $userId : int
-
The user id
Tags
Return values
Aray —The user
historyAccess()
public
historyAccess(mixed $uid) : mixed
Parameters
- $uid : mixed
insertDocUser()
Insert user row.
public
insertDocUser(UserDataDoc $user) : int
Parameters
- $user : UserDataDoc
-
The user data
Return values
int —The new ID
insertPazUser()
public
insertPazUser(mixed $user_data) : mixed
Parameters
- $user_data : mixed
pwdUpdate()
public
pwdUpdate(mixed $data, mixed $uid) : mixed
Parameters
- $data : mixed
- $uid : mixed
retrieveCalendar()
public
retrieveCalendar(mixed $user_id) : mixed
Parameters
- $user_id : mixed
trackUserList()
public
trackUserList(mixed $uid) : mixed
Parameters
- $uid : mixed
updateUser()
Update user row.
public
updateUser(mixed $userID, UserDataDoc $user) : array<string|int, mixed>
Parameters
- $userID : mixed
- $user : UserDataDoc
-
The user
Return values
array<string|int, mixed>updateUserAddr()
public
updateUserAddr(mixed $userID, mixed $user) : array<string|int, mixed>
Parameters
- $userID : mixed
- $user : mixed
Return values
array<string|int, mixed>updateUserPassword()
public
updateUserPassword(UserDataDoc $user) : array<string|int, mixed>
Parameters
- $user : UserDataDoc
Return values
array<string|int, mixed>toRow()
Convert to array.
private
toRow(UserDataDoc $user) : array<string|int, mixed>
Parameters
- $user : UserDataDoc
-
The user data
Return values
array<string|int, mixed> —The array