From 19e4eb6e1e0c5a0581812eb4c1c338f341f00030 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 12 Nov 2020 15:33:43 +0100 Subject: [PATCH] Module: Add missing getter for property `jsdir` --- library/Icinga/Application/Modules/Module.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 269666bb0..e8bad9805 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -57,6 +57,13 @@ class Module */ private $cssdir; + /** + * Directory for Javascript + * + * @var string + */ + private $jsdir; + /** * Base application directory * @@ -950,6 +957,26 @@ class Module return $this->cssdir; } + /** + * Get the module's JS directory + * + * @return string + */ + public function getJsDir() + { + return $this->jsdir; + } + + /** + * Get the module's JS asset directory + * + * @return string + */ + public function getJsAssetDir() + { + return join(DIRECTORY_SEPARATOR, [$this->assetDir, 'js']); + } + /** * Get the module's controller directory *