Added account public note to the general settings

This commit is contained in:
Pierre
2018-05-05 11:13:40 +02:00
parent 0309d4f880
commit fe10052629
3 changed files with 19 additions and 1 deletions

View File

@ -19,6 +19,7 @@ class GeneralSettings extends BaseUserModel {
private $friendsListPublic;
private $virtualDirectory;
private $personnalWebsite;
private $publicNote;
//Set and get the email address of the user
public function set_email(string $email){
@ -140,4 +141,17 @@ class GeneralSettings extends BaseUserModel {
public function get_personnalWebsite() : string {
return $this->personnalWebsite != null ? $this->personnalWebsite : "null";
}
//Set and get public acccount note
public function set_publicNote(string $publicNote){
$this->publicNote = $publicNote == "" ? null : $publicNote;
}
public function has_publicNote() : bool {
return $this->publicNote != null;
}
public function get_publicNote() : string {
return $this->publicNote != null ? $this->publicNote : "null";
}
}