diff --git a/library/Icinga/Application/Modules/Module.php b/library/Icinga/Application/Modules/Module.php index 54e23d02c..43862dc99 100644 --- a/library/Icinga/Application/Modules/Module.php +++ b/library/Icinga/Application/Modules/Module.php @@ -102,7 +102,7 @@ class Module /** * Module metadata (version...) * - * @var stdClass + * @var object */ private $metadata; @@ -199,6 +199,30 @@ class Module */ protected $userGroupBackends = array(); + /** + * Create a new module object + * + * @param ApplicationBootstrap $app + * @param string $name + * @param string $basedir + */ + public function __construct(ApplicationBootstrap $app, $name, $basedir) + { + $this->app = $app; + $this->name = $name; + $this->basedir = $basedir; + $this->cssdir = $basedir . '/public/css'; + $this->jsdir = $basedir . '/public/js'; + $this->libdir = $basedir . '/library'; + $this->configdir = $app->getConfigDir('modules/' . $name); + $this->localedir = $basedir . '/application/locale'; + $this->formdir = $basedir . '/application/forms'; + $this->controllerdir = $basedir . '/application/controllers'; + $this->runScript = $basedir . '/run.php'; + $this->configScript = $basedir . '/configuration.php'; + $this->metadataFile = $basedir . '/module.info'; + } + /** * Provide a search URL * @@ -280,30 +304,6 @@ class Module return $this->menuItems[$name]; } - /** - * Create a new module object - * - * @param ApplicationBootstrap $app - * @param string $name - * @param string $basedir - */ - public function __construct(ApplicationBootstrap $app, $name, $basedir) - { - $this->app = $app; - $this->name = $name; - $this->basedir = $basedir; - $this->cssdir = $basedir . '/public/css'; - $this->jsdir = $basedir . '/public/js'; - $this->libdir = $basedir . '/library'; - $this->configdir = $app->getConfigDir('modules/' . $name); - $this->localedir = $basedir . '/application/locale'; - $this->formdir = $basedir . '/application/forms'; - $this->controllerdir = $basedir . '/application/controllers'; - $this->runScript = $basedir . '/run.php'; - $this->configScript = $basedir . '/configuration.php'; - $this->metadataFile = $basedir . '/module.info'; - } - /** * Register module *