mirror of
https://github.com/fruithost/Panel.git
synced 2026-12-04 14:22:49 +09:00
Modify Modal handling, adding user-editing forms
This commit is contained in:
13 files changed
+394
-54
No files matched your search
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user