private function loadUserInfo() { $user = $this->db->getUserInfo($this->userId); if ($user) { $this->name = $user["username"]; $this->email = $user["email"]; $this->picture = $user["picture"]; $this->rights = $user["rights"]; $this->cypher = $user["info"]; $this->keyName = $user["key"]; $this->logged = true; } }