From cf2869832078feab383bb8974c77b6665d1fa8c0 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Thu, 30 Apr 2026 07:00:36 -0600 Subject: [PATCH] Add category and get_category method --- app/xml_cdr/resources/classes/xml_cdr.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index c0f8a5e47..88fc22c21 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -34,6 +34,7 @@ class xml_cdr { */ const app_name = 'xml_cdr'; const app_uuid = '4a085c51-7635-ff03-f67b-86e834422848'; + const app_category = 'switch'; /** * Domain UUID set in the constructor. This can be passed in through the $settings_array associative array or set @@ -154,6 +155,15 @@ class xml_cdr { $this->uuid_prefix = 'xml_cdr_'; } + /** + * Get the category of this class. + * + * @return string The constant category value. + */ + public static function get_category(): string { + return self::app_category; + } + /** * Saves a log message to the configured logging destination. *