diff --git a/resources/classes/settings.php b/resources/classes/settings.php index 77eec854a0..f0105c68a9 100644 --- a/resources/classes/settings.php +++ b/resources/classes/settings.php @@ -160,6 +160,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.