From b083d687f4f93f1889d7c218f0de662d4d3f956c Mon Sep 17 00:00:00 2001 From: Tim Fry Date: Tue, 26 Nov 2024 02:29:58 -0400 Subject: [PATCH] add domain_uuid and user_uuid methods to return loaded IDs --- resources/classes/settings.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/resources/classes/settings.php b/resources/classes/settings.php index acc348636a..c77d30d3a6 100644 --- a/resources/classes/settings.php +++ b/resources/classes/settings.php @@ -94,6 +94,22 @@ class settings { return $this->database; } + /** + * Returns the domain_uuid that was used to load the settings + * @return string domain_uuid or an empty string + */ + public function domain_uuid(): string { + return $this->domain_uuid; + } + + /** + * Returns the user_uuid that was used to load the settings + * @return string user_uuid or an empty string + */ + public function user_uuid(): string { + return $this->user_uuid; + } + /** * Reloads the settings from the database */