From b7189382fb8055140deac3a831b913c5a38db2f6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 12 Nov 2015 19:52:51 +0100 Subject: [PATCH] Module: add getNamespace() method --- library/Icinga/Application/Modules/Module.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index e8c99ad56..2090ab51f 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -590,6 +590,16 @@ class Module return $this->name; } + /** + * Get the module namespace + * + * @return string + */ + public function getNamespace() + { + return 'Icinga\\Module\\' . ucfirst($this->getName()); + } + /** * Get the module version *