requestParam = $requestParam; } public function getPluginName() { $pluginName = Common::getRequestVar($this->requestParam, null, 'string'); $this->dieIfPluginNameIsInvalid($pluginName); return $pluginName; } private function dieIfPluginNameIsInvalid($pluginName) { if (!Plugin\Manager::getInstance()->isValidPluginName($pluginName)){ throw new Exception('Invalid plugin name given'); } } }