Modify Modal handling, adding user-editing forms

This commit is contained in:
Bizarrus committed 2023-11-03 20:43:35 +01:00
1 parent 9d7992e592
commit bc7e971869
13 files changed
+394 -54

No files matched your search

+36
View File
@@ -44,7 +44,43 @@
return $this->id;
}
public function getFirstName() : string | null {
if($this->data == false) {
return null;
}
return $this->data->name_first;
}
public function getLastName() : string | null {
if($this->data == false) {
return null;
}
return $this->data->name_last;
}
public function getPhoneNumber() : string | null {
if($this->data == false) {
return null;
}
return $this->data->phone_number;
}
public function getAddress() : string | null {
if($this->data == false) {
return null;
}
return $this->data->address;
}
public function getFullName() : string | null {
if($this->data == false) {
return '';
}
if(empty($this->data->name_first)) {
return '';
}