MCPcopy Create free account
hub / github.com/denho/faved / getUser

Method getUser

models/Repository.php:73–78  ·  view source on GitHub ↗
(int $user_id)

Source from the content-addressed store, hash-verified

71 }
72
73 public function getUser(int $user_id)
74 {
75 $stmt = $this->pdo->prepare('SELECT * FROM users WHERE id = :user_id');
76 $stmt->execute([':user_id' => $user_id]);
77 return $stmt->fetch(PDO::FETCH_ASSOC);
78 }
79
80 public function getUserByUsername(string $username)
81 {

Callers 4

getLoggedInUserFunction · 0.80
__invokeMethod · 0.80
loadDataFunction · 0.80
SettingsAuth.tsxFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected