From ad3e5082e295ee0919203e2e17e5b6dcafeda74c Mon Sep 17 00:00:00 2001 From: Tim Fry Date: Thu, 26 Sep 2024 19:58:03 -0300 Subject: [PATCH] create get methods for domain_uuid and user_uuid --- resources/classes/settings.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/resources/classes/settings.php b/resources/classes/settings.php index fd70815528..9c7725f9e6 100644 --- a/resources/classes/settings.php +++ b/resources/classes/settings.php @@ -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.