create get methods for domain_uuid and user_uuid

This commit is contained in:
Tim Fry 2024-09-26 19:58:03 -03:00
parent 095d0d836f
commit ad3e5082e2
1 changed files with 22 additions and 0 deletions

View File

@ -144,6 +144,28 @@ class settings {
}
}
/**
* Returns the domain_uuid in this object used to load the settings
* @return string Uuid of the domain used to load the object or an empty string
*/
public function get_domain_uuid(): string {
if (!empty($this->domain_uuid)) {
return $this->domain_uuid;
}
return "";
}
/**
* Returns the user_uuid in this object used to load the settings
* @return string Uuid of the user used to load the object or an empty string
*/
public function get_user_uuid(): string {
if (!empty($this->user_uuid)) {
return $this->user_uuid;
}
return "";
}
/**
* set the default, domain, user, device or device profile settings
* @param string $table_prefix prefix for the table.