3 * Configuration entries for this application only
5 * @author Roland Haeder <webmaster@shipsimu.org>
7 * @copyright Copyright (c) 2015 City Developer Team
8 * @license GNU GPL 3.0 or any newer version
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 // Some hub-specific configuration like port hostname where we will listen, etc.
25 $cfg = FrameworkConfiguration::getSelfInstance();
27 /******************************************************************************
29 ******************************************************************************/
31 // CFG: CITY-DEFAULT-MODE (more is coming)
32 $cfg->setConfigEntry('city_default_mode', 'testing');
34 // CFG: NEWS-DOWNLOAD-FILTER
35 $cfg->setConfigEntry('news_download_filter', 'NewsDownloadFilter');
37 // CFG: NEWS-PROCESS-FILTER
38 $cfg->setConfigEntry('news_process_filter', 'NewsProcessFilter');
40 // CFG: NEWS-READER-CLASS
41 $cfg->setConfigEntry('news_reader_class', 'ConsoleNewsReader');
43 // CFG: CITY-INFO-DB-WRAPPER-CLASS
44 $cfg->setConfigEntry('city_info_db_wrapper_class', 'CityInformationDatabaseWrapper');
46 /******************************************************************************
48 ******************************************************************************/
50 // CFG: DEFAULT-HTML-COMMAND
51 $cfg->setConfigEntry('default_html_command', 'home');
53 // CFG: HTML-CMD-HOME-RESOLVER-CLASS
54 $cfg->setConfigEntry('html_cmd_home_resolver_class', 'CityHtmlCommandResolver');
56 // CFG: NEWS-HOME-LIMIT
57 $cfg->setConfigEntry('news_home_limit', 10);
59 // CFG: CITY-HOME-MENU-CLASS
60 $cfg->setConfigEntry('city_home_menu_class', 'CityHomeMenu');
62 // CFG: MENU-TEMPLATE-CLASS
63 $cfg->setConfigEntry('menu_template_class', 'MenuTemplateEngine');
65 // CFG: MENU-TEMPLATE-EXTENSION
66 $cfg->setConfigEntry('menu_template_extension', '.xml');
68 /******************************************************************************
70 ******************************************************************************/
72 // CFG: DEFAULT-CONSOLE-COMMAND
73 $cfg->setConfigEntry('default_console_command', 'main');
75 // CFG: CONSOLE-CMD-MAIN-RESOLVER-CLASS
76 $cfg->setConfigEntry('console_cmd_main_resolver_class', 'CityConsoleCommandResolver');
78 // CFG: CITY-PHP-REQUIREMENTS-FILTER
79 $cfg->setConfigEntry('city_php_requirements_filter', 'CityPhpRequirementsFilter');
81 // CFG: CITY-INITIALIZER-FILTER
82 $cfg->setConfigEntry('city_initializer_filter', 'CityInitializationFilter');
84 // CFG: CITY-ACTIVATION-TASK-HANDLER-INITIALIZER-FILTER
85 $cfg->setConfigEntry('city_activation_task_handler_initializer_filter', 'CityTaskHandlerInitializerFilter');
87 // CFG: CITY-WELCOME-TEASER-FILTER
88 $cfg->setConfigEntry('city_welcome_teaser_filter', 'CityWelcomeTeaserFilter');
90 // CFG: CITY-SHUTDOWN-TASK-HANDLER-FILTER
91 $cfg->setConfigEntry('city_shutdown_task_handler_filter', 'CityShutdownTaskHandlerFilter');
93 // CFG: CITY-SHUTDOWN-CITY-FILTER
94 $cfg->setConfigEntry('city_shutdown_city_filter', 'CityShutdownCityFilter');
96 // CFG: NEWS-MAIN-LIMIT
97 $cfg->setConfigEntry('news_main_limit', 5);