/** * fetch the user information * @return bool */ private function getUserInformation() { if ($this->status) { //Gets the current login UserId $this->userId = $this->user->forceGetUserId(); $this->userId = $this->user->decryptField($this->userId); $Object = new UserInformation($this->db, $this->user, $this->connection, $this->status, $this->userId); if ($Object->isFieldsAvailable()) { $this->data = $Object->getData(); return true; } array_push($this->data, ["Status" => "error", "Message" => "Unable to fetch user Information"]); } else { array_push($this->data, ["Status" => "error", "Message" => "Unable to create Connection"]); } return false; }