diff --git a/simpleEmail_Projekt/domain/database.php b/simpleEmail_Projekt/domain/database.php new file mode 100644 index 0000000..746d139 --- /dev/null +++ b/simpleEmail_Projekt/domain/database.php @@ -0,0 +1,8 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); +} catch (PDOException $e) { + echo "Verbindung fehlgeschlagen: " . $e->getMessage(); +} +?> \ No newline at end of file diff --git a/simpleEmail_Projekt/domain/genderEnum.php b/simpleEmail_Projekt/domain/genderEnum.php new file mode 100644 index 0000000..fdd2d15 --- /dev/null +++ b/simpleEmail_Projekt/domain/genderEnum.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/simpleEmail_Projekt/domain/user.php b/simpleEmail_Projekt/domain/user.php new file mode 100644 index 0000000..cd8a71f --- /dev/null +++ b/simpleEmail_Projekt/domain/user.php @@ -0,0 +1,63 @@ +firstname = $firstname; + $this->lastname = $lastname; + $this->birthdate = $birthdate; + $this->gender = $gender; + $this->password = $password; + $this->userEmail = new userEmail($username, $password); + } + + + public function getFirstname() { + return $this->firstname; + } + + public function setFirstname($firstname) { + $this->firstname = $firstname; + } + + public function getLastname() { + return $this->lastname; + } + + public function setLastname($lastname) { + $this->lastname = $lastname; + } + + public function getBirthdate() { + return $this->birthdate; + } + + public function setBirthdate($birthdate) { + $this->birthdate = $birthdate; + } + + public function getGender() { + return $this->gender; + } + + public function setGender(Gender $gender) { + $this->gender = $gender; + } + // __toString Methode + public function __toString() { + return "Vorname: {$this->firstname}\n" . + "Nachname: {$this->lastname}\n" . + "Geburtsdatum: {$this->birthdate}\n" . + "Geschlecht: {$this->gender->value}\n" . + "Benutzername: {$this->userEmail->getUsername()}\n"; + } +} + +?> \ No newline at end of file diff --git a/simpleEmail_Projekt/domain/userEmail.php b/simpleEmail_Projekt/domain/userEmail.php new file mode 100644 index 0000000..d52a3d7 --- /dev/null +++ b/simpleEmail_Projekt/domain/userEmail.php @@ -0,0 +1,25 @@ +username = $username; + $this->password = $password; + } + + public function getusername() { + return $this->username; + } + + public function getPassword() { + return $this->password; + } + + public function setPassword($password) { + $this->password = $password; + } + } + + +?> \ No newline at end of file diff --git a/simpleEmail_Projekt/domain/userManager.php b/simpleEmail_Projekt/domain/userManager.php new file mode 100644 index 0000000..a468d32 --- /dev/null +++ b/simpleEmail_Projekt/domain/userManager.php @@ -0,0 +1,15 @@ + diff --git a/simpleEmail_Projekt/gui/css/registerStyle.css b/simpleEmail_Projekt/gui/css/registerStyle.css index a338f89..dbf6379 100644 --- a/simpleEmail_Projekt/gui/css/registerStyle.css +++ b/simpleEmail_Projekt/gui/css/registerStyle.css @@ -97,4 +97,5 @@ body { } .form-container span{ margin: 0px; + font-size: 12px; } \ No newline at end of file diff --git a/simpleEmail_Projekt/gui/html/Register.html b/simpleEmail_Projekt/gui/html/Register.html index 41da47b..fbd6881 100644 --- a/simpleEmail_Projekt/gui/html/Register.html +++ b/simpleEmail_Projekt/gui/html/Register.html @@ -12,7 +12,7 @@