public function execute(HTTPRequestCustom $request) { $this->module_id = $request->get_poststring('module_id', ''); $this->id_in_module = $request->get_poststring('id_in_module', ''); $this->topic_identifier = $request->get_poststring('topic_identifier', ''); $this->provider = CommentsProvidersService::get_provider($this->module_id, $this->topic_identifier); $this->provider->set_id_in_module($this->id_in_module); }
private function build_select() { $extensions_point = array_keys(CommentsProvidersService::get_extension_point()); $modules = array(new FormFieldSelectChoiceOption(LangLoader::get_message('view_all_comments', 'admin'), '')); foreach (ModulesManager::get_installed_modules_map_sorted_by_localized_name() as $module) { if (in_array($module->get_id(), $extensions_point)) { $modules[] = new FormFieldSelectChoiceOption($module->get_configuration()->get_name(), $module->get_id()); } } return $modules; }