3 namespace Org\Mxchange\CoreFramework\Manager;
5 // Import framework stuff
6 use Org\Mxchange\CoreFramework\Generic\FrameworkInterface;
7 use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
10 * An interface for managing applications. This can be a lot. E.g.:
12 * - Un-/locking applications
13 * - Creating selectors for the selector-mode
17 * @author Roland Haeder <webmaster@shipsimu.org>
19 <<<<<<< HEAD:framework/main/interfaces/application/class_ManageableApplication.php
20 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team
22 * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2016 Core Developer Team
23 >>>>>>> Some updates::inc/main/interfaces/application/class_ManageableApplication.php
24 * @license GNU GPL 3.0 or any newer version
25 * @link http://www.shipsimu.org
27 * This program is free software: you can redistribute it and/or modify
28 * it under the terms of the GNU General Public License as published by
29 * the Free Software Foundation, either version 3 of the License, or
30 * (at your option) any later version.
32 * This program is distributed in the hope that it will be useful,
33 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 * GNU General Public License for more details.
37 * You should have received a copy of the GNU General Public License
38 * along with this program. If not, see <http://www.gnu.org/licenses/>.
40 interface ManageableApplication extends FrameworkInterface {
42 * 1) Setups application data
46 function setupApplicationData ();
49 * 2) Does initial stuff before starting the application
53 function initApplication ();
56 * 3) Launches the application
60 function launchApplication ();
63 * Handle the indexed array of fatal messages and puts them out in an
66 * @param $messageList An array of fatal messages
69 function handleFatalMessages (array $messageList);
72 * Builds the master template's name
74 * @return $masterTemplateName Name of the master template
76 function buildMasterTemplateName();
79 * Assigns extra application-depending data
81 * @param $templateInstance An instance of a CompileableTemplate
83 * @todo Nothing to add?
85 function assignExtraTemplateData (CompileableTemplate $templateInstance);